01-20-2011 07:49 PM
Hi,
I'm implementing JTAG protocol API for NI PXI6552 using C api (niHSDIO_xxxxx) and need some help. Looking at the examples, I figured out how to generate the TMS/TDO/TCK signals. However, I'm having trouble figuring out how to acquire the data coming back from the target device.
How can I trigger the acquisition to happen exactly when the generation of the signal happens? All the generation and acquisition samples I see requires signals to be looped back from the connector. It that the only way to acquire data while generating signals at the same time?
I'd appreciate any help. I've seen JDW sample vi but I'm not sure how it works since I'm not familiar with LabView.
Thanks
Brian
01-21-2011 06:26 PM
Hello Brian,
To further support you, can you specify what examples you have been using? I am assuming you are using the JTAG Digital Waveform Library.
01-21-2011 06:50 PM
Hello Roman,
I'm writing my code using C. So, the example I used are DynamicGenerationWithExportedClocks.c and DynamicAcqAndGen-SourceSynchronous.c The AcqAndGen example uses external wire to loop back a signal. Is there a way to synchronize the generation and acquisition without using an external loopback?
Thanks.
Brian
01-24-2011 05:59 PM - edited 01-24-2011 06:00 PM
Hello Brian,
Thank you for responding. The synchronization of digital generation and acquisition, in particular for JTAG, requires the use of an external loop-back. This is crucial for system synchronization since data, clock, and start trigger are sent simultaneously to help account for propagation delay and to share timing resources with the JTAG device.
01-24-2011 06:11 PM
Thank you for your reply.
I was told by Raajit Lall, that it's possible to send out the trigger signal to the PXI chassis and use that to trigger the acquisition. Is that possible?
I attached the e-mail correspondences Raajit Lall from NI. I also attached by project since I'm getting error when trying to export the event trigger to PXI TRIG0 signal.
Thanks.
01-26-2011 10:43 PM - edited 01-26-2011 10:44 PM
Hello Brian,
05-19-2011 07:10 AM
Howdy, folks...
I'm trying to do some JTAG using LabWindows/CVI. I've downloaded the JTAG waveform library, but I see it is for LabView. Any words on compatibility? Can I load ".vi" files for use into CVI?
05-20-2011 05:45 PM
tomii,
VI files are for use with LabVIEW and will not work in CVI (which is a C programming environment).
Regards,
Aaron
05-23-2011 09:53 AM
figured as much. Is there any equivalent library available for CVI, or am I going to have to roll my own?
05-24-2011 03:26 PM
tomii,
Unfortunately, the JTAG Digital Waveform Library is only available in LabVIEW.