LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with Case structure

Solved!
Go to solution

case III: calculating --> when i press "ok" botton it works for the first time (calculating the value by recieving from case I)

but the second time i press OK botton with new offset value (this must be recalculate by the new offset) but i don't know why the just bring the offset value replace the result instend of the new results

how can i fix this

0 Kudos
Message 1 of 5
(2,641 Views)

hello..

 

I can't open your codes but i think your problem is quite simple. Can you give me screenshot of that VI?

 

regards,

Ludz

0 Kudos
Message 2 of 5
(2,635 Views)
i also attached the old file source which if you open it then now you can open my Project xx.vi
Download All
0 Kudos
Message 3 of 5
(2,627 Views)
Solution
Accepted by topic author NuMetal

I don't quite understand your description, very confusing!

 

Sorry, I don't have IMAQ, but a few things don't quite seem right. For example:

 

  • In the third case ("[2] OK button: value changed"), you don't wire the cluster back out into the feedback node, thus resetting it back to defaults. The next time the event is executed, the X and Y will both be zero.
  • Your loop condition is set to continue if true and some events don't have it wired, meaning they default to FALSE. If any of these event execute, your VI will stop.
0 Kudos
Message 4 of 5
(2,626 Views)
got it already tnx a lot
Message Edited by NuMetal on 01-09-2010 02:59 AM
0 Kudos
Message 5 of 5
(2,624 Views)