ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

what i see in the voltmeter is not what the computer displays

i am using a very simple VI that reads in continously a voltage. I am using AI acquire Waveform.vi function. However, the value displayed on the computer through this vi is not the same as that read by a voltmeter. When I test the DAQ card via the Measurement and Acquisition software using the Test Panel, and with the data mode "continuous" with a sample rate of 1000Hz, the voltage shown in the Test Panel agrees with the voltmeter. Therefore, I am assuming the problem is in the VI that I built,a nd probably in setting up the Acquire Waveform.vi function. Any suggestions?
0 Kudos
Message 1 of 11
(3,771 Views)
Hi
Is there the same method of wire between test panel and Acquire Waveform.vi ??
I mean Differential, RSN, NRSN
====================
●LV Version:LabVIEW7.1
●OS:WindowsXP(SP1)
●Hardware:PCI-7344, PCI-6602, PCMCIA 6024E
0 Kudos
Message 2 of 11
(3,767 Views)
the channel is set as referenced single ended, and this is displayed both in the channel in the vi as well as in the Measurement & Acquire Test Panel
0 Kudos
Message 3 of 11
(3,760 Views)
Hi,
 
would you paste your vi on the websit~
====================
●LV Version:LabVIEW7.1
●OS:WindowsXP(SP1)
●Hardware:PCI-7344, PCI-6602, PCMCIA 6024E
0 Kudos
Message 4 of 11
(3,759 Views)
i attach the vi as well as a picture
Download All
0 Kudos
Message 5 of 11
(3,740 Views)
The first thing you should do is get rid of those AI Sample Channel functions. Each time you're calling them, it does an AI Config. What you should do at the beginning of the program is explicitly call AI Config and explicitly set the configuration for all channels to RSE. Then, inside the program, do an AI Single Scan for all channels - not a separate one for each channel. You should also do something similar to the AO Update Channel.
0 Kudos
Message 6 of 11
(3,732 Views)
I see what you are saying, but since I am a beginner, I cannt really get the wires to not be broken. I create an AI Config outside the loop and connect to it an I/O DAQ Name but the wire is broken. Also, when I replace the Sample Channel by the AI Single Scan, all my wires break. Suggestion? Thanks
0 Kudos
Message 7 of 11
(3,722 Views)
If you are beginning to use LabVIEW at the first time
maybe you could use DAQmx which is easy to use to measure analog signal
====================
●LV Version:LabVIEW7.1
●OS:WindowsXP(SP1)
●Hardware:PCI-7344, PCI-6602, PCMCIA 6024E
0 Kudos
Message 8 of 11
(3,717 Views)
My guess is that you are getting broken wires because the lower level functions like AI Config require an array input for Channels.  Look at the attached vi.  I got rid of the high level functions and replace with low level functions.  This way, the DAQ gets initialized once, before the loop.  Inside the loop, all that is called are the actual read and write to/from the DAQ.  No need to re-config on every loop iteration.
If you move your mouse over the broken wire, a pop-up box displays a message about why the wire is broken.  Use this info to fix the problem.
- tbob

Inventor of the WORM Global
0 Kudos
Message 9 of 11
(3,709 Views)

thanks for the vi. However, I couldn't open it since I only have version 6.1 and you saved it in v7.1. Can you save it in v6.1 and re attach it?

 

Thanks

 

0 Kudos
Message 10 of 11
(3,702 Views)