12-13-2006 06:46 PM - edited 12-13-2006 06:46 PM
Message Edited by radhika on 12-13-2006 06:51 PM
12-13-2006 07:37 PM
12-13-2006 07:46 PM
Hi
I am using Labview 7.1.
I also tried using case structures , but my difficulty is from one case structure the control should go out to the main and again return to the other case structure.
I will send simplified form of my VI later.
thanks for your help.
radhika venkataraman
12-13-2006 08:40 PM - edited 12-13-2006 08:40 PM
Hi
Here is my sample vi which explains my difficulty.
thanks & regards,
radhika
Message Edited by radhika on 12-13-2006 08:42 PM
12-13-2006 10:54 PM - edited 12-13-2006 10:54 PM
Hi radhika, Christian,
Please forgive me for barging-in - saw a pattern radhika's original description and thought the attached VI might give him an idea. I looked at your VI, radhika, and noticed the comment about changing Control 1 after checking Control 3? You original description implies that Control 1 and Control 2 are in range before checking Control 3(?)
Also, arrays (data 1 and data 3) are wired into the for-loop (auto-indexed), but "N" is also wired (=10.) The number of iterations will be the smaller of: N, length(Data 1), or length(Data 3.)
Cheers!
Message Edited by tbd on 12-13-2006 10:55 PM
12-13-2006 11:16 PM
12-14-2006 12:09 AM
@Nishant wrote:
I have tried to execute your VI, but the main thing is the counts of your for loop were not running first of all i dont know why?
Simple explanation:
The number of iterations depend on whatever is smallest: (1) the number wires to N or (2) the array size of the smallest autoindexing array input. Arrays data1 and data3 have size zero and are autoindexing, thus the FOR loop does not iterate at all.
radhika:
I don't quite understand your VI. Why are data1 and data3 arrays? You should populate them with reasonable inputs, then make the current values default before attaching so we can play with real data. Also your FOR loop (even if it would do 10 iteration) would be over in a few nanoseconds and you would not be able to see what's happening. Can yo explain in a few more words what it should do?
12-14-2006 12:46 AM
Christian:
Good one Christian, i really dont know this n just came to know, thanks very much.
Radhika:
As Christian also told you, you should put atleast some delay in your VI, to see whats happening? otherwise you '' always see the last iteration result generated by the For Loop, and tell what are your exact requirements?
Thanks,
Nishant
12-14-2006 01:32 PM
Hi all,
Thanks for all your suggestions.
i have attached my algorithm .I hope that explains my requirement.
i have edited the program also.added some time delay and given some data values.Now the program runs .
currently i am trying my algorithm by using nested cases example.hope it works.
thanks
radhika venkataraman.
12-15-2006 02:14 PM
Hi altenbach,
I didnt quite understand what you have said , populate the data and give current values default before attaching so that i can get real values.
can u explain me that in detail.