02-26-2013 10:07 AM
Hi everyone, I want to run a VI with the following function: in the true case, it runs 30s and then switch to false case and run 30s automaticlly and run true case for 30s, and then false case 30s, just keeping switching between these two cases automaticlly. So far, I put a boolon control to switch true and false case manually. Any idea how I can complete this function within Labview? Thanks 🙂
02-26-2013 10:10 AM
You can store the state of the case structure in a shift register. Have some way to keep track of how long you have been running. After 30s, invert the value in the shift register.
02-26-2013 10:14 AM
can you say sth with more details? i know only for loop has shift register, how it comes with case loop structure? Thanks
02-26-2013 10:25 AM
The case structure is not a loop. Only for and while loops are available in LV. Place the case structure inside a while loop with a shift register for your boolean.
Lynn
02-26-2013 10:40 AM
You have to put the case structure inside of a while structure. How else are you going to run it for 30s?
02-26-2013 10:57 AM - edited 02-26-2013 11:15 AM
please take the labview tutorials to understand what is being said here...
here is what's being described to you....