Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter Triggered Daqmx simultaneous signal generation and aquisition

Solved!
Go to solution

I am writing a vi that collects data of a specific length (1000 points) while writing data of the same length to a different port on the same card (PCI-6052e). The collection and generation are both triggered by a pulse from a counter on another board (PCI-6711). I am able to trigger both successfully, but not at the same rates, and not at the desired resoultion. The waveform generation and collection should be 8 msec in duration. I have attached the vis. Any ideas would be appreciated.

 

Thanks,

 

Jordan

0 Kudos
Message 1 of 5
(3,556 Views)

Just to clarify, the problem I'm getting is that the generated waveform isnt long enough in duration. I think the problem is that my sample rate for the output drivers is just setting the buffer size. Is there a way to control the rate of the generated waveform? Do I just need to switch to finite samples?

 

Thanks,

 

Jordan

0 Kudos
Message 2 of 5
(3,550 Views)

Hi Jordanyorg,

 

I would definitely try running this with finite generation.  The way that you have the program written now, everything is running continuously and this program will run until you hit stop.

Regards,
Jim Schwartz
0 Kudos
Message 3 of 5
(3,521 Views)
Here is another version of the vi to consider.
0 Kudos
Message 4 of 5
(3,508 Views)
Solution
Accepted by topic author Jordanyorg

Ended up running at continuous generation, but moving the write waveform DAQmx vi out of the loop (just before the start vi), and this fixed the timing.

0 Kudos
Message 5 of 5
(3,463 Views)