LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I can't get the voltage measured by voltmeter.

Solved!
Go to solution

Hello,

 

When I use the VI "Cont Acq&Graph Voltage - Write Data to File (TDMS).vi" to show the voltage from NI PCI6251, the voltage is around -5V. However, the voltage I measured by voltmeter from the chanels on PCI 6251 is around 0.3. Also, when I use other VI to show the voltage, it is around -5V too. I don't know what is the problem. Thanks a lot.

0 Kudos
Message 1 of 19
(3,544 Views)

There can be a number of things at play here, including scaling, how the DAQ device is connected, what the "signal" looks like. Do you have the Measurement and Automation Explorer (MAX) installed. If you are using National Instruments DAQ hardware that is almost a certainty. If so, click on it and look for your device. There will be screens that allow you to run the device to make measurements without a LabVIEW program. Running this can reveal a lot of interesting "stuff" like whether the connection method is allowing a large amount of "noise", which the meter, with a slow response wouldn't display. Is the signal supposed to be a DC level? Give MAX a try and report back the results. A screen capture of the MAX, saved as a ".png" file might be helpful too.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 19
(3,536 Views)
Have you done any of the basic trouble shooting mentioned in similar posts? Did you look at similar posts?

You could have a wiring error. You don't mention the channel or the physical pins you are using. You also don't mention the input configuration (RSE/DIFF) and whether you tried changing that.
0 Kudos
Message 3 of 19
(3,533 Views)

I ran PCI6251 in MAX. When input configration is RSE, the voltage showed is around 0.3 v similar with the voltmeter. But when input configration is Differential, it is -10v, this is neither labview value nor voltmeter value.

When I use labview VI, the voltage is around -5v.

 

What can I do now? Can I change the input configration in Labview?

Thanks a lot.

0 Kudos
Message 4 of 19
(3,523 Views)

Of course you can change the configuration. Don't you have Context Help turned on? Have you even looked at the inputs for the DAQmx Create Channel function.

0 Kudos
Message 5 of 19
(3,502 Views)

Hi Jshen,

 

both MAX pics show "differential" measurements, regardless how you named the pics...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 19
(3,500 Views)

Sorry. This is the RSE. I not good at programing. Could you tell where should I change in program? Or if there is an example? Thanks.

0 Kudos
Message 7 of 19
(3,487 Views)

Hi Jshen,

 

configure a DAQ assistent with the same settings as those in MAX. It should give the same outputs.

 

When the DAQ assistent runs fine you can open it's front panel to convert it in a "standard" VI. Then you can look at the block diagram to see the internals...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 19
(3,484 Views)

I changed the input channel configration into RSE. But it said two terminals are not match. Where else can I change?

0 Kudos
Message 9 of 19
(3,478 Views)

Hi Jshen,

 

I would clean up those broken wires... Doh! Do you read what the error message says?

 

Btw. where did you change to RSE?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 19
(3,473 Views)