10-25-2008 01:10 PM
10-25-2008 01:56 PM
10-25-2008 04:58 PM
You probably want to create a boolean array with as many elements as you have cases. Place it into a shift register and wire it across all cases. In each case turn the associated element true. If all elements are true, all cases have executed at least once.
Are you changing the tabs from the front panel or programmatically? With the tab control, you can do something similar as above. Of course a tab does not "execute" in the same sense. You could keep track of whenever the tab changes and do the same thing as above.
10-26-2008 01:08 AM
Thank u 4 the reply.....
The scenario is, I have a tab control with 5 pages, with each page outputting a string, which i want to concatenate outside of the case structure for the tab control....
The problem is I do not want to do this concatenation unless I have manually (not programatically) selected each page...
I could'nt find any property for the case structure which says --- "all cases executed atleast once".....
Also, I'm not sure how I can add a shift register to a case structure to solve this problem, simply bcoz I'm not able to add a shift register to a case structure???
Anyway, after a lot of trial and error, I finally came up with a solution that works... I have attached it...
But I don't know whether it is a neat way of solving the problem... If anybody have any better ideas please feel free to edit the attached vi and state your point....
10-26-2008 05:32 AM
I made some change, let me know if it fit your requirement
10-26-2008 08:55 AM
sorry jjcimon, I am unable to open your vi since I'm using Labview 8.5....
it would be great if u can post it as an image.... thank u 4 responding......
10-26-2008 12:52 PM - edited 10-26-2008 12:53 PM
10-27-2008 12:49 AM
I'm sorry altenbach!!!! I'm unable to follow what ur saying.....
Can u please edit the vi I posted in my previous post, and show me what exactly ur indicating at....
10-27-2008 01:58 AM
OK, here's a quick draft. See if it makes sense.
The first case structure is not needed. The controls retain all values, so there is no need to copy them over to an indicator just to later read from a value property node. Right?
Of course you don't even need the integer math (blue shift register), because you could use the output from "all done" for the second case structure instead of cheching for x1F. I left both alternatives in (green shift register + blue shift regsiter), but of course you only need one of the two.
It would make more sense to use an event structure or "wait for FP activity" instead of constantly spinning the loop. I have not implemented this.