LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple read with rs232

Hi all,

how can i match such a function? I get an input hex-sting with 8 elements, like ffff 0fff. You can change it in a byte array like: 1111 1111 1111 1111 0000 1111 1111 1111
For every "1" in this array i'll send "Read" to the µC over the rs232. For every "0" i'll send "Jump" to the µC. So i'll send 32 times Read or Jump.

Is there any solution possible?

Thanks Tommy
0 Kudos
Message 1 of 3
(2,566 Views)
It isn't entirely clear what your attempting to do, but if you are just trying to use the 1's and 0's in your byte array to determine whether to send certain commands one way might be to just pass the resulting boolean array into a FOR loop with autoindexing, pass the individual values to a case statement that contains your commands to the uC

If this isn't what your attempting then give us a little more information


P.M.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 3
(2,556 Views)
HI Lv_Pro,

yes this is what i mean! Thank you very much!

Cu Thomas
0 Kudos
Message 3 of 3
(2,553 Views)