From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of cluster or vice versa ? Help !

Please take a look at the attached VI.
Its purpose is to transfer datas stored in 9 deported automatons (each one
symbolized by a letter : A,E,F...).
For this I must send an interrupt on the serial port of the PC (a char
string like "AAA", "EEE"... in fact 3 times the letter of the automatom to
transfer).
How can I handle easily the selection of the different automatoms chosen by
the user ???
Please help !!



[Attachment Transfert.vi, see below]


[See first answer for additional information]
0 Kudos
Message 1 of 3
(2,476 Views)
[Attachment(s) for question]
0 Kudos
Message 2 of 3
(2,476 Views)
Renevier:

If you wish to keep the large boolean controls on the front panel, you
could place them all in a cluster and wire it to a "cluster to array"
function. Wire the boolean array output to a "boolean array to number"
function and then wire this function's integer ouput to a case
structure. You'll then need to set the case values to powers of 2 to
make your selections (0 (default) = no selection). However, you will
be able to send only one command at a time with this setup.


* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
0 Kudos
Message 3 of 3
(2,476 Views)