LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure with indicators

I want active the event with indicator, this beacause I am using a floating window where I change the datas and send it to main front panel, and I need active the event structure when the values change, I can't change the case structure by the main VI.

0 Kudos
Message 1 of 9
(1,697 Views)
Message 2 of 9
(1,679 Views)

Also take a look at the fllowing document on recommendations when using events:

https://www.ni.com/docs/en-US/bundle/labview/page/lvhowto/caveatsrecmndtnsevnts.html#:~:text=Avoid%2....

 

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

As a 'rule of thumb' of event structures for beginners - an event should only be defined by a "user event."  Meaning the user did something.  If the data changes due to things you're monitoring - that should NOT trigger an event.  But a new state of a 'state machine' or queue up a case of a data handler.

0 Kudos
Message 4 of 9
(1,646 Views)

@BaSs_Garrido wrote:

I want active the event with indicator, this beacause I am using a floating window where I change the datas and send it to main front panel, and I need active the event structure when the values change, I can't change the case structure by the main VI.


Pass control references of the controls (or indicators) on the main's FP. Then use a value (signaling) in the sub VI.

 

Alternatively, the floating window could be just a front panel (no loops, event structures). The main could start it and the main could register for it's (control) events.

0 Kudos
Message 5 of 9
(1,597 Views)

@BaSs_Garrido wrote:

I want active the event with indicator, this beacause I am using a floating window where I change the datas and send it to main front panel, and I need active the event structure when the values change, I can't change the case structure by the main VI.


I guess most have no problem understanding this and offer solutions.

 

I need to know more first:

 

So you have a caller and a subVI that has the panel open (not sure what else a "floating window" could be) and you want an event to fire when an indicator changes.

 

  • Where is that indicator (caller or subVI)?
  • Where is the event structure (caller or subVI)?
  • Where is the case structure you mention
  • How are you "changing datas".
  • How is the subVI called? 
  • etc.

Maybe if you could attach a small example program, I can give more advice. I have the gut feeling that you don't even need an event structure and are way overcomplicating things. Instead of telling us how you want to do something, tell us in more general terms what you are trying to achieve.

0 Kudos
Message 6 of 9
(889 Views)

@altenbach wrote:

@BaSs_Garrido wrote:

I want active the event with indicator, this beacause I am using a floating window where I change the datas and send it to main front panel, and I need active the event structure when the values change, I can't change the case structure by the main VI.


I guess most have no problem understanding this and offer solutions.

 

I need to know more first:

 

So you have a caller and a subVI that has the panel open (not sure what else a "floating window" could be) and you want an event to fire when an indicator changes.

 

  • Where is that indicator (caller or subVI)?
  • Where is the event structure (caller or subVI)?
  • Where is the case structure you mention
  • How are you "changing datas".
  • How is the subVI called? 
  • etc.

Maybe if you could attach a small example program, I can give more advice. I have the gut feeling that you don't even need an event structure and are way overcomplicating things. Instead of telling us how you want to do something, tell us in more general terms what you are trying to achieve.


I completely agree.  When the question is a rather odd one like this, sometimes knowing "why" is more important than knowing "what", since the real solution might be something completely different - and easier - to implement.

 

But then, we are responding to a post made last year.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 9
(878 Views)

@billko wrote:
But then, we are responding to a post made last year.

Interesting. My reading got triggered by looking at a recent post from the same user that was equally vague, then checking what else he asked. I guess they did not advance much in a year. 😄

 

I only saw the 05-26 and stopped reading there, figuring it was recent. 😄 Bad form for a "numbers guy"....

 

0 Kudos
Message 8 of 9
(860 Views)

@altenbach wrote:

@billko wrote:
But then, we are responding to a post made last year.

Interesting. My reading got triggered by looking at a recent post from the same user that was equally vague, then checking what else he asked. I guess they did not advance much in a year. 😄

 

I only saw the 05-26 and stopped reading there, figuring it was recent. 😄 Bad form for a "numbers guy"....

 


I do that ALL THE TIME.  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 9 of 9
(848 Views)