LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I have to disable objects?

Hello,

I'am making a time-switch in Labview. The timeswitch (with just only 1 program) works properly but i have 1 problem Smiley Sad
I can't make it work with all the three programs. My intention is that when I click the upper boolean (program 1) that only the two upper time stamps can be adjusted. The other four time stamps should be disabled, but I can't  disable them????? Also when I want to run program 2 or 3 it is the intention that the other timestamps will be disabled. Does anyone know a method for my problem. I have tried some case structures but this still doesn't work. Ik have added my VI to this message. I hope that anyone can help me.....


0 Kudos
Message 1 of 12
(3,492 Views)

Disabling a control is done with a property node. Right click on a control and select Create>Property Node. Then you right click on the property, choose Change to Write, right click again and choose Propertier>Disabled. By wiring a 0 to it, the control is enabled, 1 is disabled, and 2 is disabled and greyed out. What's unclear to me is how you want to handle the program select Booleans and your "Lamp" indicator. Do you want only one to be able to selected or is any combination valid? Are you planning on having three separate "Lamp" indicators or do you want only one?

Your VI doesn't really do anything unless you run it in continuous mode and that's not they way you want to run a VI. All of what you need to do can be done with a while loop and an event structure. Also, if you only want to be able to select a single program, you might want to use the radio buttons control.

Message 2 of 12
(3,479 Views)
Thnx U!
With the property node i have made it done Smiley Happy

Another question,, maybe you know this:

Does Labview have a component that acts like a adjustable count down timer??? En where can I find this in Labview?

0 Kudos
Message 3 of 12
(3,465 Views)
Not sure exactly what you mean. In the context of your example VI, I assume you want to set a target time and as the VI runs, count down to zero. The time stamps are numbers that you can manipulate with the regular numeric functions. Before you run, get the current time (Get Date/Time in Seconds), add the run time in seconds, in a loop, subtract the current time from that. There's also the Elapsed Time function on the time palette. It outputs the number of seconds that have elapsed. You could subtract that from the target time.
Message 4 of 12
(3,456 Views)
A count down timer is succeeded Smiley Happy thank U.



Is it possible to change the "get time/date object". So i can adjust the minutes, hours, seconds??
If not,
Is there an object  like the "get time/date object" but then that I can fill in my own time. I ment not the "time stamp control" because this object will not run on himself.
Thanks in advance
0 Kudos
Message 5 of 12
(3,441 Views)
Get Date/Time in Seconds always returns the current date. To generate a time of your choosing, you can use a numeric (set formatting to absolute time), time stamp constant/control, or Date/Time to Seconds. I don't know what you mean by "not the "time stamp control" because this object will not run on himself".
Message 6 of 12
(3,421 Views)


Get Date/Time in Seconds always returns the current date. To generate a time of your choosing, you can use a numeric (set formatting to absolute time), time stamp constant/control, or Date/Time to Seconds. I don't know what you mean by "not the "time stamp control" because this object will not run on himself".




- Can you maybe explain what you exacly mean with: "you can use a numeric (set formatting to absolute time), time stamp constant/control, or Date/Time to Seconds"
Wich object is this and where can i find this??


- I ment by:
"not the "time stamp control" because this object will not run on himself" That i'm looking for a object wich displays the time and run on hisself but wich i can adjust with a button..


0 Kudos
Message 7 of 12
(3,416 Views)
You want an indicator that displays the current time and then you want to be able to change it so it starts to increment from a new abritrary time? Look at the attached VI and see if this is what you're looking for.
Message 8 of 12
(3,405 Views)
Thank You! This was exacly what i needed! Smiley Very Happy
Regards Bert
0 Kudos
Message 9 of 12
(3,401 Views)
One little question...

Is it possible to see the time on a 'time stamp indicator' outsite the while loop?? Ik have tried to connect a 'time stamp indicator' to the little brown triangle of the while loop, but it doesn't display the time on my indicator.


0 Kudos
Message 10 of 12
(3,396 Views)