Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

write - read superfluous response NI-MAX Owon oscilloscope xds2102a

 

 

There is a problem:

when communicating with NI-MAX using SCPI commands I got response that cannot be automatically treated:

 

I do "write" NI-MAX via to the oscilloscope to measure cursor rms value: :MEASU:CH1:CURS?

 

Then I do "read" and the  the oscilloscope returns:

"CR : 510mV ->\n"

 

Me labview system cannot work with this format. It can deal only with the namber "510".

 

 

Anybody knows how to get rid off this superfluous "CR :" and "mV ->"?

 

 

 

0 Kudos
Message 1 of 2
(961 Views)

have a look at the string functions.

e.g. use something like in this snippet.read string with other chars.png

greetings from the Netherlands
0 Kudos
Message 2 of 2
(917 Views)