Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use subset string on read visa

Hi everybody,

please help me, i have problem about how to pick some string on String indicator (Display Hex)

please see pict below :

HASIL.jpg

 

look at read buffer indicator, how to pick them one by one (Volt, Ampere, Watt, kVar, Cosphi) ? i wanna convert it to decimal. please help me

 

THANKS~

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

Just use String Subset to pull out parts you need.  For voltage, you will want index to be 2 with a length of 4.  You can then do the conversion however you need to.


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 3
(4,260 Views)
Or use the String to Byte Array function to get U8 values. Then you can merge and typecast.
0 Kudos
Message 3 of 3
(4,250 Views)