03-01-2024 11:25 AM
Hello,
My program is attached.
I am transferring waveform data points from an oscilloscope to LabVIEW. Using the VISA read, the waveform data points are sent out through a read buffer to a string. The data points are not in the units of the oscilloscope, but represent digitizing levels. For my set up, there are 25 digitizing levels for one vertical division. Therefore, 25 DLs for 1 milliamp for my case.
How could I convert the data from DLs to miliamps using the conversion factor and output it to the front panel as before?
03-01-2024 12:10 PM
What oscilloscope are you getting this data from? I'm certain you can get the data in the format you want straight from the oscilloscope instead of worrying about converting it on the PC side.
03-01-2024 12:20 PM - edited 03-01-2024 12:20 PM
A Tektronix DPO 3012
03-01-2024 12:45 PM
If your plot is in DLs (it currently shows -50 to 50) and you want to scale the Y axis in mA (25 DLs = 1 mA, or 1 DL = 0.04 mA), right-click the Waveform Graph (if the X axis is "time" and the points are arriving at equally-spaced time intervals, you may want to use a Chart instead of a Graph), choose "Y Scale", "Properties", and set the Scaling Factor Multiplier to 0.04.
Bob Schor
03-01-2024 01:25 PM
Here is something I just put together based on my code for a Tektronix MDO5 series oscilloscope. I did not dive into the DPO manual, but the commands you are using look to be the same. There are two major updates I did: 1) Read the header in a very specific order so you easily know which parameter is what and 2) reading the data block is kind of an involved process.
03-08-2024 11:09 AM
That worked for my graph, thank you! But how could I do the same for a string indicator on my front panel that outputs the read buffer of the VISA read from the oscilloscope. It simply outputs the digitizing levels between -50 to 50. I would like it in Amps.
03-08-2024 11:10 AM
I tried researching this, but was not able to find a way. Do you know by chance to change this on the oscilloscope side?
03-08-2024 11:38 AM
@Daacos30 wrote:
That worked for my graph, thank you! But how could I do the same for a string indicator on my front panel that outputs the read buffer of the VISA read from the oscilloscope. It simply outputs the digitizing levels between -50 to 50. I would like it in Amps.
Why do you need a string indicator? If you want to see the values, use a numeric array.