07-30-2009 05:58 AM
Hi every1,
I am working on a VI which is related to changing points in graph. Almost I completed my VI but the thing is the array values what
iam using here(Y array) are not set to default value when i stop the vi. When i stop and run the vi again the lastly stored values of
array Y are set. One more thing is when i click the stop button it is not coming to an end.The VI stops only when the stop button goes high
and then to low. I mean for stopping two times the stop button is to be clicked. Here is my VI. Help me to know my mistake here in this
VI..........
Solved! Go to Solution.
07-30-2009 06:11 AM - edited 07-30-2009 06:13 AM
I cant see your VI, as I dont have LV as of now...
But what I can understand from your sentence, "I mean for stopping two times the stop button is to be clicked", I think your stop button has been assigned with Switching action. Or, maybe if you have kept that terminal outside of its event case.
Next, your array values WONT be set to default automatically, when you stop your VI; you need to code it using invoke node or property node.
07-30-2009 06:28 AM
Hi parthe,
You ae r8.The conditional terminal is outside the event. The VI is not supporting when i place that stop in event.
Give me some solution 4 this.......
07-30-2009 06:41 AM
pani wrote:
The conditional terminal is outside the event. The VI is not supporting when i place that stop in event.
I didnt mean this terminal. This means the red color terminal in the while loop. What I meant was to keep the BD terminal of the Stop button inside its Value Change event case (in case, if you have NOT configured one).
Try it out & post back here if you still have trouble.
Probably both the VI & a snapshot, since I dont have LV installed...
07-30-2009 06:59 AM
07-30-2009 07:07 AM - edited 07-30-2009 07:12 AM
Aah, I guessed it correctly!
Remove the local var of the Stop button & place the terminal itself inside the inner while loop & directly wire it to the conditional terminal of the outer while loop.
Please see the attached pic...
07-30-2009 07:14 AM
Gr8 Parth. U r r8. One Prob is solved. Thanks dude. Nw can u suggest a solution to make the array Y values to be default.
When i stop and run program again the previously used Y values are set. Instead of that when i run program again the array
should be initialized to zero.
07-30-2009 07:20 AM
07-30-2009 07:24 AM
07-30-2009 07:31 AM - edited 07-30-2009 07:31 AM
Sorry, from your first post I see the O/P array if Y.
So, did you try connecting an empty cluster to it as I suggested in my earlier reply?