08-05-2008 01:35 PM
08-06-2008 04:44 PM
08-07-2008 08:06 AM
08-08-2008 01:57 PM
MXI Master
I have been working putting the TTL pulses in a single task, however I am not good with DAQmx. Do you know of any sample code out there using DAQmx to do this. I have tried modifying the code generated by the DAQ assistant, but they always run sequencially, so if the one waits, the rest are dependant on the delay of the previous triggers. If I can get all the triggers into a single task, I should be able to finish this VI without too much trouble.
Thanks
Chris O.
08-11-2008 09:38 AM - edited 08-11-2008 09:38 AM
08-11-2008 09:56 AM
Marahall,
Thanks for the reply, I do know that the DAQ assistant can handle multiple channels, but I havent been able to find a way to delay each pulse with a front panel control. I have tried to convert the DAQ assistant to code and use case structures with a tick count to do this, but have encountered two problems.
1. The TTL's need to be delayed with respect to the running of the VI. The problem is that they will not always be ran sequencially - in other words sometimes port0/line0 would need to run first then port0/line7. but maybe in another instance they would be opposite.
2. I don't know if this would be considered a problem, but the triggers need to be ran while acquiring analog input, and the two need to be fairly accurate with each other. It will be unlikely that we will be sampling over 100 Hz, so I am assuming that this won't be much of a problem.
Thanks
Chris
08-11-2008 10:09 AM
p.s. Although we are using a USB-6008 right now, we are planning to upgrade soon (probably a M series USB-6212 or 6221), I am assuming these boards would be better for our applications.
08-11-2008 01:42 PM
08-12-2008 04:35 PM
08-13-2008 03:12 PM
Thanks, this is what I came up with, am I correct in thinking that this is the best way to do it using the USB 6008, and will the acquisition be accurate with the timing of the while loop?
Thanks
Chris O