NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read bit number of a binary string

Hi

I have this binary string as an output of my code in Teststand

111011111111111110110001000100

 

How can I read the first bit on the far right or any bit (at any position) in the string on teststand?

Thanks

0 Kudos
Message 1 of 2
(3,676 Views)

Mid("111011111111111110110001000100",2,1) would do the trick.

Len("111011111111111110110001000100") can be used to find the last bit.

E.g. Mid("010101",Len("010101")-1,1)

 

hope that helps

0 Kudos
Message 2 of 2
(3,649 Views)