02-28-2013 10:40 AM
I try to use a case structure with the following function. For example:in the true case, it runs 20s and then switch to false case and run 30s automaticlly and run true case for 20s,then to false case for 30s,like this periodically switch.with another threads found i a simple example in my posted code:every 30s switch case between true and false,but i don‘t konw how to modify it for periodically swtiching,f anyone can give me some ideas about case switch periodically that would be appreciated.
Note:Labview 2009
Solved! Go to Solution.
02-28-2013 10:44 AM
Have the cases output how long the Elapsed Time should count for.
02-28-2013 11:21 AM
@crossrulz wrote:
Have the cases output how long the Elapsed Time should count for.
thank you.is your means two case structurs inside Loop.one of them has output how long the Elapsed Time?
02-28-2013 11:33 AM
You only have 1 case structure. In the case structure, have each case output a time to elapse. Thinking about this further, you should store that time in a shift register since you want the elasped time on the next iteration to get that value.
02-28-2013 01:03 PM - edited 02-28-2013 01:20 PM
@jetfire wrote:
I try to use a case structure with the following function. For example:in the true case, it runs 20s and then switch to false case and run 30s automaticlly and run true case for 20s,then to false case for 30s,like this periodically switch.with another threads found i a simple example in my posted code:every 30s switch case between true and false,but i don‘t konw how to modify it for periodically swtiching,f anyone can give me some ideas about case switch periodically that would be appreciated.
Note:Labview 2009
something like this? BTW, that was my VI you used....
02-28-2013 01:21 PM
@apok wrote:
@jetfire wrote:
I try to use a case structure with the following function. For example:in the true case, it runs 20s and then switch to false case and run 30s automaticlly and run true case for 20s,then to false case for 30s,like this periodically switch.with another threads found i a simple example in my posted code:every 30s switch case between true and false,but i don‘t konw how to modify it for periodically swtiching,f anyone can give me some ideas about case switch periodically that would be appreciated.
Note:Labview 2009
something like this? BTW, that was my VI you used....
thanks for your code,it is very helpful for me。