12-15-2021 11:19 AM - edited 12-15-2021 11:22 AM
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
12-15-2021 11:45 AM
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.
12-15-2021 01:15 PM
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.