LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating an event on indicator

Solved!
Go to solution

I am developing a program in which i have to generate an event on indicator, the project is like that we are giving 4 inputs  to LabVIEW vi from hardware, since these 4 controls are through hardware i can't generate events on them so i am trying to generate an event on indicators of these controls, but the the event structure is not responding when i am using value change event on indicator. After doing some search i came to know that we can use value(Signaling) property for generating events on indicator, but i am not getting how to use it.

 

Below is the vi in which i am trying, this is not the original project vi, this is just the vi for learning how to generate events on indicator.

 

Thanking You

 

 

 

 

0 Kudos
Message 1 of 9
(3,401 Views)

Can you not use a case structure with the popup vi inside the true case?

If you have to use events, I would suggest using user events, the example in the link has string data type but that can be any data type, in your case a boolean.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 9
(3,393 Views)
Solution
Accepted by topic author RChoudhary

You create a signaling value thusly: Right click the boolean and choose Create >> Property Node >> Value (Signaling)

If you now send a value to this terminal an event will be triggered.  See picture for example:

 

New Bitmap Image.png

Message 3 of 9
(3,392 Views)

use a dynamic event....

0 Kudos
Message 4 of 9
(3,364 Views)

Sorry for the late reply

 

@ ace Yes i can use case structure also but in that case vi is becoming complex and i also want to learn how to generate events on indicator

 

I don't know much about user events, if you can explain little about what are user events and how to use them, it would be really helpful.

 

 

0 Kudos
Message 5 of 9
(3,327 Views)

@ Don-Philips

 

I tried byt he method you have mentioned by using the value signaling property but still no event is generated when the indicator led is on 

0 Kudos
Message 6 of 9
(3,326 Views)

@apoK

 

I have read about dynamic events also but i am not getting how to use them and as per my understanding of dynamic events we can use them only if we want to control our event generation means if we want to switch on and off our event in the vi i dont know weather we can use them for generating events on indicator, if you can explain something more about dynamic events that how to use them for the same.

0 Kudos
Message 7 of 9
(3,322 Views)

@Ritu wrote:

Sorry for the late reply

 

@ ace Yes i can use case structure also but in that case vi is becoming complex and i also want to learn how to generate events on indicator

 

I don't know much about user events, if you can explain little about what are user events and how to use them, it would be really helpful.

 


You will need a case structure in any case, as you need to trigger an action only when the signal is true. You could wire it to trigger regardless of the value, but then you will need to filter the data inside the event case, so the code isnt necessarily less complex. So you might as well have the pop-up vi inside the true case.

 

Using a complex solution just because it exists does not make good programming sense as far as I am concerned. Keeping it short & simple helps.

 

If you want to learn about dynamic/user events, look at these examples:

  • Programmatically Fire Events VI: labview\examples\general\dynamicevents.llb
  • Dynamically Monitor VI's VI: labview\examples\general\dynamicevents.llb

PS: @Don_Phillips's method will work too, make sure you use the value change event of the indicator.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 8 of 9
(3,311 Views)

@aCe

 

Thankyou , because you mentioned that Don-Philips method will work, so i checked it again and it worked, earlier was missing that case structure in Don-Philips solution now i noticed that it's case structure to which we have to wire the control value. Thanks once again.

 

 

0 Kudos
Message 9 of 9
(3,299 Views)