Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use GPIB on given example.

How could I use the Continuous Current Measurement.VI provided in Examples(LabVIEW 7.1) with a GPIB intead of the devise given in the program?
0 Kudos
Message 1 of 6
(4,576 Views)
You can't except for the basic display. The example is for an NI DAQ board and that's a completely different animal than a GPIB instrument. Go to the Instrument Driver Network and do a search for the particular instrument that you have. If you can find it, download to your instr.lib folder. Most drivers ship with a high level example that shows you how it can be used. If you can't find a driver, then you can use the Instrument I/O Assistant to setup and query the instrument or you can use the VISA Read and Write functions to do the same thing. To use the example, delete all of the DAQ functions and controls and replace with your GPIB code.
Message 2 of 6
(4,574 Views)
Ok, how about the GPIB example. I am running it but I can't get nothing from it.
0 Kudos
Message 3 of 6
(4,569 Views)
Is the address correct? Is the command correct? What's the instrument and what command are you sending? Can you send a command and see the instrument change? Does MAX see the instrument? Do you get an error? What's the error code?
Message 4 of 6
(4,565 Views)

Now I am using the Keithley24xx Read setup VI and Keithley24xx Read VI. The data elements are successfully obtain but I need to display a V vs. I graph. I tried to work on the Block Diagram but it is too advanced for me. How  can I use the test data results for a V vs. I graph?

0 Kudos
Message 5 of 6
(4,533 Views)
What block diagram are you talking about? What driver are you using? There's plug&play and an old GPIB driver. In either case, you probably shouldn't be messing with the driver VIs. If you are able to successfully read the current and voltage, then what you need to do is wire the values to an XY graph. I'm going to assume that you have some type of loop that is acquiring the data. The current and voltage readings can be wired out of the loop and an array of each will be created. If you're using a for loop, this is automatic. If you're using a while loop, right click on the exit tunnel and select Enable Indexing. Now, all you have to do is bundle the two arrays together and then wire the output of the bundle to the XY graph. There is a shipping example on the basics of an XY graph that you should look at. You can also post your VI for someone to look at. Be sure to go to Save with Options>Development Distribution to create an LLB that has your main VI and all subVIs.
0 Kudos
Message 6 of 6
(4,517 Views)