10-26-2012 08:45 AM
hello,
In my main system i am using power supply which is connected with different instruments like data logger ,GSM,GPS....
In my main vi all the subvi of power system ,gsm etc...are conected with each other.
now I want to make some changes,
for example when i run my vi then it should seems pop up msg like Make sure your power supply is on.
and if suppose its not on then display the pop up msg that your power supply is off, then system should be off,means no need to do further operation.
here i attach my vi in that i made some logic regarding to this,in that when i run my main vi i get msg for make sure that power supply is on.
but when power supply is off then i got error msg like your power supply is off and after cliking on ok error vi is open that i dont want,that all i attached here.
i only want msg that your power supply is off and then system should be off,nothing more.
will you please guide me that what king of changes i needed for that.
thank you very much in advance.
Solved! Go to Solution.
10-26-2012 09:01 AM - edited 10-26-2012 09:02 AM
There's no need for the while loops. What you really want is a case structure from the error cluster in order to decide whether or not to show the error dialog.
10-26-2012 09:01 AM
10-27-2012 04:59 AM
Thank you very much .I ll try with this soution.thanks again..
10-29-2012 06:14 AM - edited 10-29-2012 06:24 AM
Thank you for reply..
that solution is ok ,but I need that when my power supply is off then after displying message that power supply is off and when we click on ok , it should ask again that turn on the power supply .means my loop shoud not break its runs contineously until power supply is on.
will you please suggest logic for that.here in attachment i attach my vi with my logic, in that after doing my power supply on even though my loop is running in the while stucture.mens its not going forward to the next step.
thank you very much in advance.
10-29-2012 06:20 AM
You just have to examine the error code and if it is a power supply error ignore it.
This example may be of help: https://decibel.ni.com/content/docs/DOC-22465
10-29-2012 06:32 AM
Thanks,
this solution is ok but in my case i need initially its seems the msg that turn on power supply if suppose its not on then its pop up error msg that power supply is off,after giving ok to this msg,it should be ask me again to turn on the power supply my loop should not be finish.and when i trun on the power supply then all procedure should be go ahed.
10-29-2012 06:50 AM
You just need to put it in a while loop with a suitable delay.
Something like this would work:
10-29-2012 07:21 AM
hii,
as u told i made same changes ,but still even my power supply is off ,instead of asking me again for power supply on,its go to the error msg and its not run continuesly.did you get me??
here i attach the snap shot of my screen.
10-29-2012 07:48 AM
hiii,thank you for your time.
finally i got solved.i have to make only small cahnges in that stop button in while loop.here in attachment i have put that solution.