LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to multiple the output data from VISA Read to string

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? 

0 Kudos
Message 1 of 8
(659 Views)

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.


GCentral
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 8
(640 Views)

A Tektronix DPO 3012

0 Kudos
Message 3 of 8
(633 Views)

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

Message 4 of 8
(612 Views)

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.


GCentral
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 5 of 8
(603 Views)

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.

0 Kudos
Message 6 of 8
(491 Views)

I tried researching this, but was not able to find a way. Do you know by chance to change this on the oscilloscope side?

0 Kudos
Message 7 of 8
(490 Views)

@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.


GCentral
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 8 of 8
(470 Views)