LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to read data from an Tektronic oscillscope DPO 3012 using the read VISA on LabVIEW

Hello,

 

I am trying to read and record a signal displayed on my oscilloscope to LabVIEW. I am trying to use a read VISA to read data and try to output the raw data and output a waveform chart on the VI. I am a beginner and still learning. The end goal is to measure current from a circuit and I want the data transferred from the oscilloscope to Lab VIEW through a waveform or values if possible. Any help would be greatly appreciated!   

0 Kudos
Message 1 of 6
(873 Views)

I installed the drives and tried to use them with the oscilloscope, but there were too many errors. So I tried to make a simple program to read the data. But I am not sure if I'm using the VISA read correctly. Is there a way to correct my current program to work?

(I am getting timeout errors)

 

0 Kudos
Message 3 of 6
(862 Views)

The VI you uploaded contains only a Read VI, not a Write VI.  You need to use Write to send a command first, then interpret the data you get back.

 

I would also recommend using the VIs Gregory mentioned.  If you get "too many errors" then you should post what those errors are here.  

0 Kudos
Message 4 of 6
(853 Views)

So I can't use a VISA read by itself to receive data from an oscilloscope? I have to first write a command then read that command? Where would the data from the oscilloscope come into play?

 

0 Kudos
Message 5 of 6
(841 Views)

The instrument doesn't know to send anything unless you tell it that you want something.  In this case, there is a command to specifically ask for the waveform data.  You must write that and then you can read the data from the instrument.  You then have to interpret the data accordingly.

 

OR

 

You can just use the supplied drivers that should do all of this for you.  There are usually examples with the drivers to show how to do something.  If you are getting errors, show us the VI you have written and tell us what errors you are running into.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 6
(829 Views)