From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,672 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,645 Views)