Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

asynchronous HSDIO

We need to send out datawords  with a clock speed of 5MHz and pole for reply from a black box with the same clock rate, but not necessarily synch'd.
I do not see any examples of this type, or perhaps I am mis-interpreting the examples.
Can anyone provide some insight to this?
thanx

lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 5
(3,786 Views)
Good afternoon lmd2,
Thanks for contacting National Instruments with your issue, we'll try and get you up and running as soon as possible. 
 
Since you didn't specify which language you're programming in our which HSDIO card you're using, I'll try and be as general as possible.
 
If you're using LabVIEW, have a look at the Dynamic Acquisition Hardware Start Trigger.vi and Dynamic Generation.vi examples.  Combining these two examples should get you started. 
 
These can be located by going to Help > Find Examples > Hardware Input and Output > Modular Instruments > and then select Dynamic Acquisition or Dynamic Generation > Non-Scripted.
 
These examples can also be found for C and CVI by going to Start > Programs > National Instruments > NI-HSDIO > Examples.
 
Does your blackbox have the capability to output a trigger once it replied to the datawords it receives from your HSDIO card?
 
If not you can route your dataline to the line configured to be the hardware trigger as well.  Is there a particular reason why you want to pole for a reply rather than have it triggered?  The polling would be done in the software domain which would make it slower to respond.
 
Please let me know if you have any further questions regarding this issue.
 
Sincerely,
Minh Tran
Applications Engineering
National Instruments
0 Kudos
Message 2 of 5
(3,772 Views)
thanks for the reply
you are right triggering is the way to go, I'm still new to this high speed DIO
I'll work with the example and see how things go
thanks again


Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 5
(3,767 Views)
OK here is the scenario
when the black box is in idle (ready mode) it continuously send out a particular word.
We would like to check this continuous output to confirm the ready state, and then as needed, send a one time event (some command, there are numerous possible commands) and check the response. The black box utilizes one of a possible dozen different output lines depending on the function invoked.
So we need to (a) check a continuous stream before continuing, then (b) read a specific response to a specific command.
[for what it is worth, we are an Aliance member, Automation Laboratory Experts, in NY]
any  direction you can give me would be very helpful, and greatly appreciated
TIA
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 4 of 5
(3,747 Views)
To continously read the output and confirm the ready state you can niHSDIO Read Waveform LabVIEW VI, in a loop, the data can then be verified to confirm the ready state.  You can then use the Pattern Match Start Trigger to send a trigger when that pattern does not match, using the Trigger When input node set to Pattern Does Not Match.  This trigger can then be sent to the blackbox and the response read by another niHSDIO Read Waveform. 
 
Have a look at the NI Digital Waveform Generator/Analyzer Help, it's located at:
Start > Programs > National Instruments > NI-HSDIO > Documentation
 
It's a great resource for the many capabilities of NI's HSDIO devices.
 
Best of luck on your project.

Sincerely,
Minh Tran
Applications Engineering
National Instruments
0 Kudos
Message 5 of 5
(3,720 Views)