Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

ViSA read buffer Search

Hi, using VISA read, I get my data from serial port and should wait until I get the  ! Sign (Hex Sting, 21).

All my tries to compare this with what I get from read buffer has bin failed.

 

I can simply find the  ! sign, but the result of  the comparison of this with constant Hex String is always false.(I use equation for comparison)

 

I also tried to convert the read buffer string first to byte U8 then get the number and check this with 33 bud didn't work as well.

I appreciate any help.

0 Kudos
Message 1 of 3
(3,227 Views)

What you probably need is the Search/Split String.  Can you supply some code so we can figure out what you are trying to do?


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
(3,221 Views)

Probably you also can look at this example....

https://decibel.ni.com/content/docs/DOC-14111

0 Kudos
Message 3 of 3
(3,183 Views)