LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a not User Event

lets clairify this!  some poeple are presenting wrong infromation (sorry guys, Lynn and Y/ are both wrong or are being unintentionally confusing)

 

Value Changed events are thrown by any Gobject that has a value property.  Both controlls and indicators have Value properties.

 

The real question is what causes, or does not cause, the Value changed event to fire!!!

I will give examples:

  • Use a Local variable to write "Value" to a control or indicator... No value changed event fires
  • Use a Global varialble to write "Value" to a control or indicator... No value changed event fires
  • Data arrives on a wire going into an indicators terminal. .. No value changed event fires
  • Use a property node "Value" to write "Value" to a control or indicator... No value changed event fires
  • Use a property node "Value (Signaling)" to write "Value" to a control or indicator...Value changed event DOES fire EVEN if the new value is the same as the old value!
  • Use a user (yup, that quadruped thing between the keyboard and chair that pounds on those square thingies with letters on them) to change the value of a control or indicator and then press either the check box next to the run arrow or the enter key...Value changed event DOES fire EVEN if the new value is the same as the old value!
  • Press an increment or decrement arrow on a numeric type control..Value changed event DOES fire.

I hope that helped


"Should be" isn't "Is" -Jay
Message 11 of 21
(1,012 Views)

Jeff,

 

Thanks for the clarifications. My apologies to anyone I may have confused or misled.

 

How can the user change the value of an indicator on a running VI? It does not work for me.  I can select the current value, but cannot change it. The Check box is not visible while running. Enter does not trigger a Value Changed event.

 

Lynn

0 Kudos
Message 12 of 21
(1,004 Views)

You can still have a value change event for indicators, but only through the Value (signalling) property.  Obviously the User is not capable of triggering the value change event since they can not change the value of the indicator directly while the VI is running.  I think you hanging up on semantics.

0 Kudos
Message 13 of 21
(1,000 Views)

That is the way I understand it.  Jeff seemed to suggest that the user could trigger a value change event on an indicator in the next to last bullet point.

 

Lynn

0 Kudos
Message 14 of 21
(997 Views)

You're right.  He did say that in the next to last bullet point with "Use a user ... to change the value of a control or indicator and then press either the check box next to the run arrow or the enter key..."

 

I was reading it by what I'm sure he meant "use a user to change the value of a control." rather than what he typed.

 

(Now reading that closer, I don't know what he is referring to by the "check box next to the run arrow".)

0 Kudos
Message 15 of 21
(993 Views)

That check box is in the toolbar of a VI in edit mode.  It disappears when the VI is running.

 

Lynn

0 Kudos
Message 16 of 21
(987 Views)

Okay.  Now I see it. When the cursor is in the control or indicator.

 

I had never noticed it before.

0 Kudos
Message 17 of 21
(984 Views)

swear I deleted " or indicator" in that bullet point when I copied n pasted!Smiley Embarassed


"Should be" isn't "Is" -Jay
Message 18 of 21
(972 Views)

OPs last post seems to indicate it's about DaqMX-events, which is another beast. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 21
(960 Views)

@gantarone wrote:

I wanted to take only the events that have changed in daqmx

 


Can you clearify and elaborate on this statement some more?  I don't understand your goal.  Some more context would help as well.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 21
(940 Views)