Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

Random space line in read buffer with VISA

$
0
0

I have been changing the pattern of a machine program, which originally built with flat sequence structures, to a state machine form. However, I have faced a problem like shown below. As you see in the picture, the old version and the new version have the same set, but the results are different. I assume that the space(it is empty space in the picture but sometimes it comes with "%" character) before the value gives me "0" but I have no idea where that space from or how to get rid of the space. Please help me!

 

Old VersionOld Version

New VersionNew VersionSub VI 2Sub VI 2

Old versionOld versionOld Version resultOld Version resultNew versionNew versionNew version valueNew version value


Viewing all articles
Browse latest Browse all 5565

Trending Articles