LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Read maintains at one value

The confusion I had is with the name of the physical channel control. The channel is changing, not the I/P name.

Your front panel shows an empty array. What you need to do is actually run the VI until you get some data and then take the image. Expand the artsy indicator so several elements are visible. It does not help to just show element 0.
0 Kudos
Message 11 of 17
(287 Views)

a.png

that my front panel when I run this vi. remains like this.

0 Kudos
Message 12 of 17
(275 Views)
I don't see how you have only a single sample. You don't have the error wires connected. Do that and see if you are getting an error.

You still have not provided the info on your configuration. Differential or rse? Sample rate? Range? Number of samples?

Were you getting reasonable values with the daq assistant?
0 Kudos
Message 13 of 17
(266 Views)

error wires? you mean the yellow one? I wired this but it shows no error.

 

blockdiragm.png

 

With daq assistance it can get resonable values and I set it to continuous samples, 1 sample to read, 1 Hz Rate. RSE

 

and for DAQmx I set to RSE. 

 

daqmxvirtualchannel.png

daqmxread.png

0 Kudos
Message 14 of 17
(258 Views)

Hi Ame,

 

you missed an important point: Configure once, use often, close once!

 

In your loop you create an I/P DAQmxTask in each iteration without closing it. This will fail in the 2nd iteration…

 

Go through the DAQmx example VIs coming with LabVIEW. They explain how to configure such basic measurements!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 15 of 17
(254 Views)
You didn't wire the error in/out of the read.
0 Kudos
Message 16 of 17
(246 Views)

Why do you keep creating different threads for the same issue?  As I told you before, mimic EXACTLY what I did with the output with the input.  The only difference is you need to configure the channel as an AI voltage and use the DAQmx Read.  But the setup and the closing of the task should be EXACTLY the same.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 17 of 17
(227 Views)