LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQdx and NI 9221

I'm acquiring signal on module 9221 (voltage) with NI cDAQ...

 

If there is connected signal on module everything working OK, measured voltage is OK. But if I don't have connected anything on channels, then my results jumping for example:

 

-0,000549, -0,00002 .....

 

What I must add or change to show this result as zero (0), because I'm logging all data;

 

thanks

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 12
(3,545 Views)

If you having any open connection you will get a sine wave pattern if you want to avoid this better not to read the values else have programming mechanism to override the values with zeros for the channels that are open.

-----

The best solution is the one you find it by yourself
Message 2 of 12
(3,544 Views)

And how can I "override this values with zeros"? I need automatic solution, when not measuring anything(there is also no cable on module), result is 0 value, otherwise when measuring show correct value.

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 3 of 12
(3,541 Views)

That you need to have a control in the software ( May be a boolean status ) If you are connecting any hardware make it true so that it reads the actual values else make it false so you will read zero. Make sure that you have seperate boolean for each channels. Am searching any property node that tells whether the channel is used.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 12
(3,539 Views)

Well maybe I can add for each channel "switch" (to acquire or not), but I used DAQ Assistant for all channel. See picture.

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 5 of 12
(3,536 Views)

My suggestion would be is : Do not use DAQ assistant in applications they are just for practice once you understand Data acquisition go for the low level vi's in LabVIEW you have example for that just check it out. Also you are not using the signals as waveforms so better configure them as DBL values.

-----

The best solution is the one you find it by yourself
Message 6 of 12
(3,527 Views)

Hmm what you mean with this:

 

"Also you are not using the signals as waveforms so better configure them as DBL values."

 

You can see on my picture that I convert dynamic data to double...

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 7 of 12
(3,524 Views)

Yes but that is not required if you are directly configure that as DBL.?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 12
(3,521 Views)

Sorry, but I don't know where can I configure signal as DBL. Maybe you think that I use just one "convert to dynamic data..." ?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 9 of 12
(3,517 Views)

Just check the following quick example on Low level vi data acquisition. Note: You need to configure the task in MAX and use it here.

 

1D DBL Config-Daq.png

Good Luck

 

-----

The best solution is the one you find it by yourself
Message 10 of 12
(3,512 Views)