01-31-2006 09:51 AM
01-31-2006 09:57 AM
01-31-2006 10:03 AM
Your question is confusing to me. A toggle switch is already an "input". If you want to display the status of a bit, you need an indicator. For eight bits, you need 8 boolean indicators unless you add a control to select which bit you want to display.
Where do the eight bits come from? Are they e.g. an array of eight booleans or e.g. an U8 variable?
01-31-2006 10:10 AM - edited 01-31-2006 10:10 AM
Hi Kasper
Maybe something like this...
Its an array of 8 toggle switch controls to create an number to write to your port.
David
Message Edited by David Crawford on 01-31-2006 10:10 AM
01-31-2006 10:19 AM
01-31-2006 10:31 AM - edited 01-31-2006 10:31 AM
Just use an array with only 3 switches, the rest will fall into place ;).
(If you don't want the three low order bits, rotate the array accordingly.)
Message Edited by altenbach on 01-31-2006 08:36 AM
01-31-2006 10:32 AM
It's called Build Array.
You might want to think about taking a LabVIEW basics course. There are a varieth of options besides the NI classes, including some on-line tutorials. Check your options at http://www.ni.com/devzone/lvzone/fundamentals.htm.
01-31-2006 10:34 AM
You can use the Build Array element with two inputs. Right-click and select Concatenate Inputs.
One of the inputs would come from an array with three toggle switches.
The other input would be an array constant.
01-31-2006 02:59 PM