08-10-2011 12:41 AM
Hi All!
I have a tricky task to do 🙂
I get binary string from serial port – 00000000
Then I increase voltage and see if any bit changed its state.
So if I see something like 10000100 I can write:
Bit3 and Bit7 become 1 at 2.5 volt.
How can I do it?
Thank you.
Solved! Go to Solution.
08-10-2011 12:58 AM
Hi John,
At what stage of the task are you in?
Do you get the reading from the serial port? If not, what did you try?
Once you have the string it's a simple task, you can manipulate strings using Functions->Programming-> Strings....
I'll try to help more once you have a more specific question.
08-10-2011 02:40 AM - edited 08-10-2011 02:40 AM
08-10-2011 05:06 AM
simply_me - I have nice clean string from serial port.
GerdW - Look nice but how can i track index of a bit that was set?
08-10-2011 05:56 AM - edited 08-10-2011 05:58 AM
Hi John,
use Search1DArray repeatedly to get indices of TRUE bits...
Or use a FOR loop to index through the resulting boolean array!