完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用HP54620A逻辑分析仪(GPIB)读取SPIbus上的一些消息。
我能够将逻辑分析仪的每个通道解码成相等长度的单独阵列。 54620A向PC发送4096个数据点,其中所有数据点都转换为逻辑分析仪的每个通道的1和0。我正在将通道2与通道3上的数据进行比较,我正在尝试解码十六进制消息 由微观计时。 我遇到的问题是逻辑分析仪将数据发送回电脑,我的数据的每个“位”得到7或8个数据点,所以我不能简单地读取每个第7或第8个点。 因此,我需要解析查找转换点的数据,然后使用这些点将通道2与通道3进行比较,以确定我的位是高还是低。 我希望我需要解码4条消息。 每个位是500ns,在消息之间大约有15-18个。我使用min / max函数来逐步通过数组来找到下一个过渡点。 但这需要一个重复,直到破坏对象,这是非常s-l-o-w。 有没有人知道更快的解析数组的方法?或者有人更好地了解如何直接从54620A读取十六进制消息?ThanksTom MitchellAutoliv ---您目前订阅vrf为:r***@soco.agilent.comTo 订阅发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。要向此发送消息 邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 I'm using a HP54620A logic analyzer (GPIB) to read some messages on a SPI bus. I'm able to decode each channel of the logic analyzer into seperate arrays of equal length. The 54620A sends 4096 data points to the PC, of which, all are converted to one's and zero's for each of the channels of the logic analyzer. I'm comparing channel 2 to the data on channel 3, and I'm trying to decode the hex message being clocked by the micro. The problem that I have is the way the logic analyzer sends the data back to the pc, I get either 7 or 8 data points for each 'bit' of my data so I cannot simply read every 7th or 8th point. So I need to parse through the data looking for the transition points, then use these points to compare channel 2 to channel 3 to determine if my bit is high or low. I expect 4 messages to be returned to me that I need to decode. Each bit is 500ns, with about 15-18 us between the messages. I've use the min/max function to step trough the array to find the next transition point. But This required a repeat until break object which is very s-l-o-w. Does anyone know a faster way to parse through the array? Or does someone have a better idea on how to read the hex messages directly from the 54620A? Thanks Tom Mitchell Autoliv --- You are currently subscribed to vrf as: r***@soco.agilent.com To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@it.lists.it.agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
相关推荐
2个回答
|
|
>有没有人知道通过数组解析更快的方法?>或者是否有人更好地了解如何从54620A直接读取十六进制消息?请参阅波形子系统文档。
使用二进制波形数据传输来获得您选择的任何格式的固定块长度.La HammerVice PresidentComplete TestPO Box 6Loveland,CO 80539Les.Hammer@CompleteTest.comwww.completetest.com---您目前订阅了vrf:r*** @ soco .agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送一封空白电子邮件至“leave-vrf@it.lists.it.agilent.com”。 发送邮件至此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 > Does anyone know a faster way to parse through the array? > Or does someone have a better idea on how to read the hex messages directly > from the 54620A? Refer to the waveform subsystem documentation. Use the binary waveform data transfer to get a fixed block length of whatever format you choose. Les Hammer Vice President Complete Test PO Box 6 Loveland, CO 80539 Les.Hammer@CompleteTest.com www.completetest.com --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@it.lists.it.agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
|
|
汤姆 - 这是我头脑中的一个快速...如果你只是想找到一种方法“跳转”到时钟的下一个转换,你可以做一个maxindex,当时钟为0时,抓取值,剁
当时钟很高时,关闭阵列然后minindex。 然后你可以关闭阵列并循环下一个时钟周期。 这仍然是循环,但听起来你在4 k阵列中有一个合理的位数。 所以它不应该太糟糕。另一种选择,但不太经过深思熟虑的是不同时钟,然后使用它作为掩码来获取非零点的数据。 目前虽然我没有看到如何在没有循环的情况下拉出你想要的点数。 也许使用比较器对象来表示非零的所有点,并使用失败点列表来获取所有位值...我希望这些建议有所帮助,但您可以自行决定是否需要填充。 请告诉我们.lBill ---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白 发送电子邮件至“leave-vrf@it.lists.it.agilent.com”。要发送邮件到此邮件列表,请发送电子邮件至“vrf@it.lists.it.agilent.com”。 如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。 以上来自于谷歌翻译 以下为原文 Tom - This is a quicky off the top of my head... If you are just looking for a way to "jump" to the next transition in the clock, you can do a maxindex, when clock is 0, grab the value, chop off the array then minindex when clock is high. Then you can chop off the array and loop through the next clock cycle. This is still looping, but it sounds like you have a reasonable number of bits in the 4 k array. So it should not be too bad. Another alternative, but less well thought out is to differentate the clock and then use that as a mask to grab the data at the non-zero points. At the moment though I'm not seeing how to pull out just the points you want without looping. Perhaps using a comparator object to test all the points that are non-zero and using the list of failed points to grab all the bit values... I hope the suggestions help, but you are on your own to decide what exactly fills you need. Let us know. lBill --- You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email] To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com". To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com". To send messages to this mailing list, email "vrf@it.lists.it.agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com". |
|
|
|
只有小组成员才能发言,加入小组>>
1288 浏览 0 评论
2375 浏览 1 评论
2194 浏览 1 评论
2064 浏览 5 评论
2951 浏览 3 评论
1116浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
755浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
929浏览 0评论
1289浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 10:31 , Processed in 1.377548 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号