LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constructing a VI

I'm trying to construct a VI in LabVIEW 8.5 to read out voltages from a PXI6238 multifunction DAQ. I've searched through examples included with LabVIEW but have failed to find anything very useful. Any help that could be offered would be greatly appreciated.
0 Kudos
Message 1 of 4
(2,706 Views)
 

Loadcell,

The PXI-6238 is a current measurement device, so you cannot directly take voltage measurements with it based on what I'm reading on the product page:
https://www.ni.com/en-us/support/model.pxi-6238.html
For examples on taking current measurements, take a look at the following VIs in the Example Finder (browse to Hardware Input and Output >> DAQmx >> Analog Measurements >> Current):

Acq 0-20mA Current Sample.vi
Cont Acq 0-20mA Current Samples-Int Clk.vi
Cont Acq 0-20mA Current Samples-SW Timed.vi

-Chris M

0 Kudos
Message 2 of 4
(2,676 Views)
That was the undergraduate working with me (get your own name!) but thank you for pointing out some good examples.  I had actually constructed a simple program using the DAQ Assistant, as you can see attached.  However, this setup is redundant because the Dynamic Data line already holds timestamp information, so I do not need to create my own time stamp.  How do I get this information out so that I can write it to a file?  I've tried working with functions under Express >> Signal Manipulation without any luck.  any suggestions?
0 Kudos
Message 3 of 4
(2,650 Views)
You've made a couple of mistakes. First, you wire the dynamic data to Format Into String function. This takes all of your samples and removes all but one. It also removes the timestamp information. The simplest way to log your data is to just take your dynamic data and wire it to Write to Measurement File function.
 
You also don't need to convert the dynamic data to an array before wiring it to a graph.
0 Kudos
Message 4 of 4
(2,643 Views)