LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting and graphing Oscilloscope Data GPIB&DAQ

Hello,

 

I am currently working on a code in labview that allows a user to collect  luminescence lifetime data from an oscilloscope based on the commands that they input. The user should be able to change the time and voltage settings of the oscilloscope and how many acquisitions to average. So far I have been able to connect the oscilloscope to my computer using a GPIB interface. Now I am having a hard time sending  a vertical scale and time scale to the oscilloscope, utilizing a case structure. Then a string needs to be set up to send back the data from the oscilloscope to labview. Once in labview ,the data should be curve fit into the equation attached and graphed. Then it should be able to calculate the natural logarithm of the data displayed on a second graph.  I have attached the Vi to show what I have done so far.

Thank you in advance

 

Download All
0 Kudos
Message 1 of 3
(1,712 Views)

1. What oscilloscope are you using?  Every oscilloscope out there have different command sets.  So we need to make sure we are sending the right commands.

 

2. I recommend avoiding the GPIB API.  Change to using VISA.  That way, if you decide to use Ethernet instead of GPIB, all of your code stays the same other than the initialization.

 

3. You should consider making a library that does nothing but handle the commands for the oscilloscope.  We tend to call this a driver.  Then you can start working on the rest of the program.



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 2 of 3
(1,696 Views)

You are in for a long ride here using those old GPIB primitives and SCPI commands...

 

What oscilloscope are you using?

 

Most major brands have LabVIEW drivers available. In these drivers there will usually be VI's for setting all the vertical, horizontal, triggering, and etc. Along with some sample code to get you started. 

 

Go to the scope manufacturers website and see if they have LabVIEW drivers for your scope.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(1,670 Views)