Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HOW TO READ SERIAL DATA WITH SYNCHRONIZATION

Solved!
Go to solution

Another note to my first answer: You should include some boundary conditions to the shiftregister. If, due to a different setup, no match is found your shiftregister string will grow and grow.

Check the lengh and when it's longer than two times the 'match', quit with an error or warning..

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 11 of 13
(1,412 Views)
Solution
Accepted by SERDARSOYLU
And I zoomed your image and saw that your indicator is a U8. That explains why you are not seeing the correct value.
Message 12 of 13
(1,400 Views)

Thank you so much all. Now the code is working great. I'll certainly implement some sort of an error loop to make sure the the shift register does not grow in size.

Best Regards

Serdar 

0 Kudos
Message 13 of 13
(1,383 Views)