02-19-2008 05:15 AM
02-19-2008 06:07 AM
Hi Kabanga,
if the function "GetPointsRemaining" returns 0 then it is ok that the while loop ends. Because 0=0 -> true, not true = false -> and your loop condition is set to run if true.
Mike
02-19-2008 06:39 AM
Hi Mike,
thanks for your answer.
Your are right: the while loop ends when one sweep is finished (means, 61 points has been measured).
Now how to restart it again so that it does another sweep automatically?
So what I want to do is:
1)- Start Labview
2)-Set the number of sweeps
3)-Call the external application
4)-Do all sweeps
5)-After all sweeps is finished,stop the measurements
Thanks for your help
Kabanga
I set the number of sweeps on the Front Panel
02-19-2008 06:47 AM
Hi Kabanga,
do you want something like this? See the attachment with the additional while loop.
Mike
02-19-2008 08:20 AM
Hi Mike,
thank you very much. It's exactly what I want !!!
I tried to put a Case Stucture, so that the application starts when the user hit a button on the Front Panel, but it's not working.
Any other idea how I can start the application by hitting a button on the Front Panel?
Best regards
Kabanga
02-19-2008 08:21 AM
Hi Kabanga,
you could use an Event Structure for that.
Mike
02-20-2008 06:26 AM
Hi Mike
I used an event structure but it's just calling my application once and I'm having problem to stop LV by hitting "stop"
What should I change in my code so that my external application is called as many times as the user set it?
Best regards
Kabanga
02-20-2008 06:28 AM
Hi Kabanga,
can you attache your vi?
Mike
02-20-2008 07:11 AM
Hi Mike
here are my VI and a demo version of the application I'm calling using LV.
I cleaned up the VI so that you find it user friendly....there is still a lot to do, but I'm trying first to make it run before care about user interface
Best regards
Kabanga
02-20-2008 07:39 AM
Hi Kabanga,
create an Event for the Stop Button. It helps.
Mike