LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text & picture ring as an indicatior and event generator

Hello everybody
I would like to have an array of booleans (16) which shows if the
line (from 1..16) pass some test. When test is passed the lamp is
green and when fails is red. After the test within the same
program I would like to click on the failed lamp and run the same
test only for this line as many times as I would like to. Could
you give me some hints how to do this.
I am not sure if I put myself clearly, and if though I will
explain with more details.
thank you in advance.

PP
0 Kudos
Message 1 of 4
(2,433 Views)
Hi,
I have written an example which does practically what you want. This is a state machine which compares the state of boolean array on different iterations of while loop. If someone has changed the bolean array (clicked on the lamp) it shows the message box with the number of the lamp. Also there is a button which allows you to test (in my program there is a simulation of this test) all lines.
The program is in LV6i

Hope it helps.

Oleg Chutko
0 Kudos
Message 2 of 4
(2,433 Views)
>
> Hi,
> I have written an example which does practically what you want. This
> is a state machine which compares the state of boolean array on
> different iterations of while loop. If someone has changed the bolean
> array (clicked on the lamp) it shows the message box with the number
> of the lamp. Also there is a button which allows you to test (in my
> program there is a simulation of this test) all lines.
> The program is in LV6i
>
> Hope it helps.
>
> Oleg Chutko
>
> -----------------------------------------------------------------
> Name: Untitled.vi
> Untitled.vi Type: LabVIEW Instrument (application/x-unknown-content-type-LabVIEWInstrument)
> Encoding: base64
> Descripti
on: How to select the item from array

Hi Oleg
Thank you very much, this will help a loooooooot, thanks.

best regards
PP
0 Kudos
Message 4 of 4
(2,433 Views)
> I would like to have an array of booleans (16) which shows if the
> line (from 1..16) pass some test. When test is passed the lamp is
> green and when fails is red. After the test within the same
> program I would like to click on the failed lamp and run the same
> test only for this line as many times as I would like to. Could
> you give me some hints how to do this.
> I am not sure if I put myself clearly, and if though I will
> explain with more details.
> thank you in advance.
>


I'm not sure what you would like help with, but the
first thing is to build the red and green Boolean button.
Place the button in an array and wire it to show the value of
your tests. For the user input, I'd recommend making a copy
of the array, make it a control, and go about
making it transparent.
You will need to color multiple pieces in order to accomplish this
and it might be easiest to drag the button out, color, then place it
back. Finally, overlap the visible with the invisible and group them
together if you like.

Greg McKaskle
0 Kudos
Message 3 of 4
(2,433 Views)