LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Improper use of prop node?

Hey folks, 

 

I dealing with some property nodes that don't seem to be functional... I was wondering if you guys have dealt with this or if there's something I'm doing wrong.

 

I'll attach a png of the case that executes the code in quiestion.

 

Probing the input to the prop nodes shows that they are receiving the "enable/disable and gray" data, but only two of them appear to be executing (actually disabling and graying the control).  "Current Altitude" is a numeric that works fine as a prop node, as does "alt up" which is a bool button.  

 

The others, are bool buttons and a listbox (Altitude(ft))...

 

Ive tried explicit and implicit... with a ref...   anyone see what im doinng wrong here?  or is there features/properties of the individual controls I should look into?

 

thanks for any thoughts

-pat

 

 

edit: I've noticed I've goofed up somehow and I have two usernames for the forums here- who do I talk to or contact to delete one of them?

0 Kudos
Message 1 of 10
(3,708 Views)

Is there an error being thrown?  Are these properties edited somewhere else (possible race condition)?


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
Message 2 of 10
(3,697 Views)

Nothing looks wrong from a simple picture.  What makes you say they are not functional?  What are they doing wrong?  Could you have an error on the wire that is preventing later property nodes from executing?

 

Post a simplified VI that demonstrates the problem so that we can poke at it.

Message 3 of 10
(3,695 Views)

@plyons wrote:

 

 

edit: I've noticed I've goofed up somehow and I have two usernames for the forums here- who do I talk to or contact to delete one of them?


Jordan (She will probably contact you via PM or E-mail to clairify )


"Should be" isn't "Is" -Jay
Message 4 of 10
(3,683 Views)

@crossrulz - I have an error handler that will report any propagated errors (even probing it I see no errors)

 

@RavensFan- The controls do not become disabled and do not gray out, I will tyr to make a small vi to post up - maybe it will work in the small VI but not the larger UI ive built

 

thanks!

0 Kudos
Message 5 of 10
(3,670 Views)

Don't make a VI.  Make a copy of the one you have.  Then strip out everything unrelated to the problem at hand.

Message 6 of 10
(3,646 Views)

Ok, well I've made a small VI with implicit.... or is it explicit... I can never remember those two... I made a VI that has prop nodes for each control (without the refs wired in haha) and it works fine... which means that the problem is in my much larger code...  it's an old 'framework' of spaghetti code... ugh this will not be easy...

 

I guess I shouldve done this before even posting- thanks for the suggestions

 

-pat

 

edit: ravesfan- I missed you last post- the code it's in is super sloppy, confusing, and old (compared to the framework Im using now), there's ~5 state machines in one vi.  To quote a reddit user's description of some LV code, it looks like a unicorn threw up colored spaghetti haha...

0 Kudos
Message 7 of 10
(3,639 Views)

@RavensFan wrote:

Don't make a VI.  Make a copy of the one you have.  Then strip out everything unrelated to the problem at hand.


And after you delete something, make sure your problem is still there.  That's usually a good way to widdle down to the source of your problem.

 

If you aren't having an error, then you either A) have a race condition or B) have multiple controls with the same name and you are looking at the wrong controls.


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
Message 8 of 10
(3,637 Views)

(Maybe you accidentally used an "improperty node" instead?) 😄

 

Waiting to see some code .....

Message 9 of 10
(3,620 Views)

haha yea, if an improperty node are two canceling nodes back to back Smiley Wink- Sry to dissapoint, the issue I had was far more typical than I thought-  turned out to be a race condition...  There were so many property nodes for some of these controls I had missed a few that were being executed almost right after the 'disable' nodes were executed- Had I run it in highlight exec. mode I'm sure I would have caught it earlier...  n00b mistake, thanks for the help though! and kudos to you guys.

 

-pat

0 Kudos
Message 10 of 10
(3,573 Views)