Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Sample program for oscilloscope data sharing with GPIB

Hi guys, I am a Master student from Texas and I am learning how to use LabView without any help from no one, and I am getting desperate. My actual problem is that I need to write a program to acquire data from an oscilloscope and save them on the computer as a data file or waveform file. Does anyone has a sample file that dous that and the instructions how to use it?
To be more specific, I need a program that asks for a file name and save the files from the oscilloscope on the harddisk of the computer with that name upon request.
Hope you all are doing great and that you can help me a little.
Sincerely, Federico.
0 Kudos
Message 1 of 3
(4,010 Views)
Hi Frederico,

NI provides an instrument driver network where you can search for drivers for specific instruments. It's at

http://www.ni.com/devzone/idnet/default.htm

Hopefully you will find your oscilloscope listed here. If not try to find a similar model at least. Assuming you find your model or similar the included drivers will have an example program along with many usefull vi's for developing your own applications. As far as saving files goes Labview has examples of this listed under the "Help" menu. Select "Find Examples.."

Cheers,

--Russ
0 Kudos
Message 2 of 3
(4,004 Views)
First, go to the Instrument Driver Network, click the Search Drivers link and look for a driver for the make and model of the scope. Most drivers come with an example VI that can help get you started. Functions and controls are usually documented. You should turn Context Help on in LabVIEW to see this. Second, there are numberous functions for saving data. Depending on which LabVIEW version you have and how you want it saved, there are Write to Spreadsheet File and Write LabVIEW Measurement File on the File I/O palette. The Write LabVIEW Measurement File has an input called Enable that you can wire to a front panel control and if true, will prompt for a file name (if configured to do so), and then save the data. Look through the shipping examples (Help>Find Examples) for File functions. There are a lot to look at. Which one you might be able to modify will also depend on the type of data returned from the scope (i.e. dbl array or waveform). The task you are atttempting is pretty simple and I'm sure that you can get it done with a little help from the forum.
0 Kudos
Message 3 of 3
(4,003 Views)