Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining a Incrementing Counter From an Analog Input Channel Timing Issue

Hello all,

 

I have a question regarding a basic channels that is run on a cDAQ 9179 using a 9205 card. Im using the daqmx tools in labview to do this. This channels basic function is to switch from around 0-5 vdc using a switch, the problem I'm having is creating an indicator that will increment by 1 every time the switch is high (5 volts) at a 600hz sampling rate. I'm currently using the threshold detector vi to detect the high to increment and that seems to be working, but when I send it to record it doesn't record at the same sampling rate as the ordinal switching channel. The TDMS file shows it sampling 200 times less than the other channels. Not sure if this is the right approach, how do I get the incremented value to match with the original channel?

 

Any help would be appreciated.

0 Kudos
Message 1 of 2
(2,366 Views)

Hi ssd1,

 

 I have a few preliminary questions for you:

 

  1. When you say that the TDMS file shows that it is sampling 200 times less, do you mean that you are only getting data at 3 Hz?
  2. When during your code do you write data to the TDMS file?
  3. What version of LabVIEW and DAQmx are you using?
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,327 Views)