Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ACQUIRE SIGNAL FROM OSCIILOSCOPE

hello

 

i am new at labview and i am doing one project.

i want to acuired a signal from oscilloscope using gpib-usb-hs cable.

so what to do first. installation of driver is complited now in programming side which thing i have to do for acquire signal.

 

thanks

0 Kudos
Message 1 of 16
(5,413 Views)

First, you have to setup your GPIB bus.  The Initialize VI may do this for you.  After that, think about how you would manually setup the scope to acquire your waveform.  Then do it in the software.  There is likely a VI in the drivers to get the desired waveform.  Finally, when you are all done, close out the bus (likely a Close VI in the drivers to do this as well).



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
0 Kudos
Message 2 of 16
(5,409 Views)

Hi thanks for reply

 

could you elaborate that how to  set the gpib bus and next thing is that I am using 4-channel oscilloscope so for different channel I want to read waveform in different graph in labview.

 

Thanks

0 Kudos
Message 3 of 16
(5,387 Views)

If the drivers have an initialize VI, that usually will have the bus setup in it.

 

You should be able to read whichever waveform you want (one at a time).  But it really depends on the driver set.

 

Do you have already have drivers for this scope?  What is the model?



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
0 Kudos
Message 4 of 16
(5,382 Views)

To add a bit more.   You should try to talk to your scope using MAX.  This will help you pick the driver VI's to use in your code.

 

 

If you can plug in your GPIB cable and run a sample VI from the driver set, then you are good to move forward.  Often, there are small details, in that the example code usually doesn't do what you want, but at least you know your equipment is running.

 

Using MAX will allow you to get familiar with the steps you want the scope to go through.  It involves using the instrument commands.  The driver VI's usually are one or a small set of these commands wrapped into a VI.

 

One technique you can use is to run the driver VI's one at a time, start with init, then move on.  Don't forget to close at the end.  This can be more tricky, because you have to keep track of several VI's open.  This is similar to using MAX to send commands, except you don't have to type the actual commands.  Also, you have to the same com port (or GPIB address, or reference) on all the VI's.

 

Another suggestion is to write one VI with the driver VI's in order, as subVI's.   This way you can prove out your measurement.  Then if you want to write your actual VI, you have a working copy of the order of commands and the results.  Of course, if you are only interested in running and getting a measurement, you only need the string of VI's.   I would guess you will want to save data in a file, maybe perform analysis, and perhaps have some action buttons for different init's or inputs.  But at least you have a working copy of how the instrument process the commands in the order you desire.

 

 

 

 

 

-------
Mark Ramsdale
-------
0 Kudos
Message 5 of 16
(5,376 Views)

model of oscilloscope is tds3034c

 

0 Kudos
Message 6 of 16
(5,354 Views)

Do you already have drivers?  If not, download them from the NI Driver Finder (Find Instrument Drivers from the LabVIEW startup screen).



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
0 Kudos
Message 7 of 16
(5,346 Views)

Hello

I found problem and that is I don't have library vi file of Tektronix scope .

So, for that what I have to do?

 

Thanks

0 Kudos
Message 8 of 16
(5,327 Views)

There should be some VI files on the CD that came with the scope.  If not, visit tektronix website, and download the driver disk.

0 Kudos
Message 9 of 16
(5,310 Views)

Or use the LabVIEW interface.  Via the Welcome screen, there should be a link.

LabVIEW 2011



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
0 Kudos
Message 10 of 16
(5,308 Views)