LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Function In Last Page In Running VI And Re-Enable It

Hello Friends ,

 

Check This VI

 

I Want To Disable The Log Readings Button On Page 6 After Getting First Reading And Re-enable It On Page 1 Again For Second Reading and Again Disable It On Last Page After 2nd Reading I Guess I Have To Use Property Node Disable Function But When I Am Disabling It Is Not Working For Me ... Help Me Where I Am Wrong .

 

 

                                                                                                                      Regards

                                                                                                                      Harmeet Singh

0 Kudos
Message 1 of 4
(2,691 Views)

Why did you capitalize every word of your message?Smiley Surprised

 

Your property node is outside of your while loop.  It will not execute under your program ends.

0 Kudos
Message 2 of 4
(2,679 Views)

First, try shrinking your code down to fit on a single screen of your monitor. This thing is massive and most of it is white space. It is very difficult to follow the code when you can only look at a very small portion of it. (BTW, I'm running on a monitor with 1600x1200 resolution and I barely see any of this VI).

 

As for your specific question use a shift register on the outer while loop. Use this to specify when logging is enabled or disabled. Change the state of the logging when and where appropriate and when you invoke "Page 6" you will have the correct state for the logging.

 

You may also want to consider naming your states to something more meaningful. "Page n" has very little meaning and has the potential to get very confusing if you need to insert new states.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,677 Views)

@Ravens Fan wrote:

Why did you capitalize every word of your message?Smiley Surprised


It cOuld bE a kEYbOarD mAlfUnCtIoN.

 

 

Spoiler

Example_VI_BD.png

 

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 4
(2,667 Views)