LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Route signal in Daq-mx and ni-daq: AO sample clock vs AOupdate

I have a pci mio-16e-4 board and im trying to run a simultaneous AO operation and counter operation. I have been able to do this with regular NI-daq functions but havent been successful with daqmx. I believe the problem lies in routing the signal. With regular DAQ i was able to route the AO update signal to PFI 5 and then use that for the counter gate. With DAQ-mx, i assumed the AO update name was changed to AO sample clock, so i routed that to PFI 5. However, when i run the program i get an error (in the counter part) that says i cannot select sample clock and must choose implicit, or on demand. This error (code:-200300) occurs in the daq-mx read vi after the sample clock has already been selected?! I guess another question would be is the sample clock vi analogous with the gate.vi from the older version. Thanks in advance for any help.
0 Kudos
Message 1 of 11
(4,053 Views)
err....bump
0 Kudos
Message 2 of 11
(4,039 Views)
Hello:

DAQmx and Traditional DAQ work considerably differently from each other. If you could give me some more information about your counter application I might be able to point you to an example program that already does what you are trying to accomplish.

Thanks.
0 Kudos
Message 3 of 11
(4,027 Views)
Hi,

The counter application is for a photon counter. Basically, while the AO operation runs a laser, the photon counter analyzes fluorescence. The problem is these two operations need to be perfectly in sync because the timing turns out to be the counts per pixel when the data are displayed visually. To do this in the past, (with traditional ni-daq) i was able to route the ao update signal and use that for the gate of the counter. But i am unclear as to how to do that with daqmx. Thanks. Also here are both the new and old programs i am using. I left notes in the block diagram to direct you to the problem. Sorry about the mess in the tradionaldaq.vi i didnt make that one from scratch.
0 Kudos
Message 4 of 11
(4,022 Views)
hmm is there a way to post more than one file at a time. anyway you'll need the libraries as well to open the vi's. thanks again.
0 Kudos
Message 5 of 11
(4,019 Views)
0 Kudos
Message 6 of 11
(4,018 Views)
Could you attach your VI as a .llb file? Right now I am unable to access most of your Sub VIs.
0 Kudos
Message 7 of 11
(4,017 Views)
0 Kudos
Message 8 of 11
(4,012 Views)
I am a bit confused.

Are you using the counters on your DAQ board to do the counting or do you have some sort of external counter?
0 Kudos
Message 9 of 11
(3,982 Views)
we are using the counters on the daq board to count ttl pulses from the external photon counter.
0 Kudos
Message 10 of 11
(3,980 Views)