Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get V vs. I graph from this vi.?

Query's the 2400 for a single reading depending on which function is set . The data returned is the reading, the time stamp and the status.
function: 0= dc volt, 1= res, 2= dc curr. Is it possible to get a I vs. V graph out of it?  
0 Kudos
Message 1 of 5
(4,399 Views)

You'll have to use this in a loop to actually get a graph. In the loop, you'll increment something (either the voltage or the current), take a reading, convert the string result to a floating point number.  As I said before, if you pass the values out of a loop with indexing enabled, you will create an array of current and voltage readings. Bundled together, the two arrays can be wired to an XY graph.

Your commands will probably work but doing a reset of the instrument every time you want to take a reading is very ineffecient. And, if you're using the instrument as both the source and measurement device, that won't work at all since you'll be resetting the source every time you call this.

There is a shipping example called Frequency Response that I think you should look at. It's a little different in that it simulates generating a frequency and taking a voltage reading but the principal is the same if I understand what you really want to do. Replace the simulated frequency gen function with the code for providing the stimulus in your project. Then, replace the demo DMM unction with the code for your measurement instrument.

Message 2 of 5
(4,395 Views)
What DAQ do I need for this VI?
0 Kudos
Message 3 of 5
(4,368 Views)
In the example finder, you should see a box in the lower right corner. This lists all of the hardware that can run the software. For current measurements with a DAQ board, you'll also have to provide the resistors across each channel.
0 Kudos
Message 4 of 5
(4,362 Views)
I will try with the NI PCI-6220, M Series DAQ(16 Analog Inputs, 24 Digital I/O).
0 Kudos
Message 5 of 5
(4,336 Views)