05-08-2009 09:35 AM
Hi ppl.
I was hopping someone could help me with a sync problem:
a) I want to output a counter (pulse train) using the USB-6289 board internal counter (clock);
b) I want to output a boolean array (data);
c) The outputs should be in sync, and the 16-bit word should output in full;
I have got the a) and b) parts working, I believe, however the c) part, when I run the vi in continuous mode, the pulse train with the counter works fine, but the boolean
array just assumes the "1" value (I see this in my Logic Analyzer) and maintains this value throughout the whole time...What am I doing wrong in this part?
I have attached my vi and a printscreen of the boolean data and code.
Thanks in advance fot the reply.
Hardware: USB-8289
LabVIEW v8.5
Cheers
05-08-2009 03:51 PM
Anyone?
Sure could use some advice....
05-08-2009 11:34 PM
1. Wire up your error wires.
2. Don't ever use Run Continuous. It is only there for debugging purposes. Put a while loop around your code and use a Stop button to stop the while loop. Any code that should happen only at the beginning such as creating tasks or clocks should occur before the while loop. Code that should occur on at the end such as clearing tasks should occur after the while loop.
3. Perhaps you want to use continuous samples rather than finite?
4. Look through all the DaqMX examples. There might be one that better describes how to link the timing of one task to another. I'm not an expert in DAQ, so I'm not sure if everything is set up properly.