LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

View oscilloscope signal using GPIB

Hello! I want measure a sine wave with an oscilloscope (Keysight 2000 X-Series), and be able to plot the resulting graph on the Front Panel of my VI. How should I do this most effectively, when using GPIB? I have started with my code (see the file below), but I assume it's in need of improvment. 

0 Kudos
Message 1 of 6
(3,463 Views)

Hi Wilar, I can't view your code because I'm on LabVIEW 2016. As a first step I recommend making sure you can establish communication in NI MAX. Then look for the LabVIEW drivers for your instrument. Take a look at the VI Tree and examples for what is available to you, and you should be well on your way.

0 Kudos
Message 2 of 6
(3,369 Views)

Thank you! However, I want to do this without using any Instrument Drivers, only with GPIB (or VISA). See my block diagram (so far) in the picture below.

0 Kudos
Message 3 of 6
(3,355 Views)

LabVIEW 3rd party Instrument drivers are just VIs that have been written to wrap up most of the functionality of the instrument. At least download them and take a look to see what you're doing wrong.

0 Kudos
Message 4 of 6
(3,318 Views)

In essence you have the right idea:

  1. Read the manual it should have all the SCPI commands you will need.
  2. Use VISA read and write NOT the low level GPIB commands
  3. Consider at least looking at the LabVIEW  "drivers" as most driver are simply a set of VI's somebody else has made using the SCPI commands. And they probably have an example of how to do this.
  4. Use a proper programming architecture!!!!!
    1. The FLAT SEQUENCE should NEVER be used to begin with. Except for one or two very rare circumstances
    2. Think data flow
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 6
(3,252 Views)

I worked with this Oscilloscope and I did not managed to do it. I was capable to control the Oscilloscope via LabView but when I wanted to transfer data I was stucked...

 

The most advanced think that I managed to do was to insert an USB key, and say to the Oscilloscope via LabView when I wanted to save the data.

 

If finally you manage to do it, please put your VI 🙂

0 Kudos
Message 6 of 6
(3,169 Views)