LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

my alarm doesn't ring

Can anyone help me on this part of the program my version is using 6i and i wanna make the led light up when the result is all "0" ...i only got the sound but not the light
0 Kudos
Message 1 of 5
(2,988 Views)
Hi Keeper

Your code checks for zero OK but you don't have an indicatior to display the result. You modify the cluster to turn the light on, but untill you connect this to an indicator you won't see it. Right cliuck on the tunnel coming out of the loop and create an indicator, this should then show what you want. Alternatively if you wanted the control on the left of your diagram to be changed use a local variable instead of the indicator.
0 Kudos
Message 2 of 5
(2,983 Views)
I think keeper wants to use the indicator inside the cluster for alarm indication. In that case, simply create a local variable of the cluster and wire this to the output of the loop, as IanW said in his alternative method.
- tbob

Inventor of the WORM Global
0 Kudos
Message 3 of 5
(2,969 Views)
There are several things "wrong" with you block diagram. First, your cluster is an array of clusters, but you have turned off the indexing ability and you aren't displaying multiple elements in the array. It would appear that you just need a cluster input. If that's the case then you also don't need the for loop. This will clean your program up quite a bit.

Now with regard to your indicator light you could use a local variable as has already been suggested. However, it appears to me that the numeric elements in your cluster will always be used as controls and the boolean light will always be an indicator. I would suggest that you move the boolean light out of the cluster and make it a separate indicator. This will make the cluster such that you can convert to an array and use the summation rather than manually adding all of the elements. This makes your code become more versatile.


There are other things which could be done to make it more efficient also. I would suggest that you use an event structure to only run the code when the cluster value has changed.

I have implemented all of these changes to your vi in the attached vi.

You might also include code which only updates the "Error Light 9" indicator when its value has changed if your application required the highest efficiency.
0 Kudos
Message 4 of 5
(2,956 Views)
Thx guys ...all yr solutions have given new ideas
0 Kudos
Message 5 of 5
(2,948 Views)