LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Example of how to modify a control using a property node

Hello, I am new to labview and I would like to be able to modify a front panel control in the block diagram. From reading up on this I realize I need to use property nodes but I am having a hard time getting this to work.
 
I would like to have select action ring change from Hard Reset to Idle when the loop finishes running. I think I am on the right track but at this point I am stuck and an example of how to do this would be greatly appreciated. The VI is attached.
0 Kudos
Message 1 of 3
(2,538 Views)
No, LabVIEW is EASY! 😄
 
All you need is write to a local variable if the control.
 
I assum you want to reset whenever the loop iterates. If you only want to reset after the loop finishes at the end of the run, you would do it in a sequence frame after the loop.
 
 
Some notes:
  1. your shift register is completly useless, because the carried value is never used by your code.
  2. Your idle case spins the main loop at an infinite rate, using all CPU while not doing anything useful. (place an indicator on the iteration count to see. 😉
  3. Use an event structure to spin the loop only if it needs to.

Here's a quick draft:



Message Edited by altenbach on 06-26-2008 01:07 PM
Download All
0 Kudos
Message 2 of 3
(2,531 Views)
Labview is easy? That might be easy for you to say, I'm still trying to wrap my head around this :).
 
Thank you so much for doing that. I have to step out of the office right now but I will try your code and get back to you, it looks great from the screen shot. And the shift register was left over from when I was trying to tackle this a different way, my apologies that I didn't clean this up before posting it.


Message Edited by Pawel Kowalski on 06-26-2008 03:27 PM
0 Kudos
Message 3 of 3
(2,519 Views)