LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get only error message which i want to display.

Solved!
Go to solution

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.

Download All
0 Kudos
Message 1 of 10
(3,037 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 10
(3,030 Views)

Thank you very much .I ll try with this soution.thanks again..

0 Kudos
Message 4 of 10
(3,001 Views)

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.

0 Kudos
Message 5 of 10
(2,972 Views)

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


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 6 of 10
(2,969 Views)

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.

0 Kudos
Message 7 of 10
(2,966 Views)

You just need to put it in a while loop with a suitable delay.

Something like this would work:

error.png


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 8 of 10
(2,958 Views)

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.

0 Kudos
Message 9 of 10
(2,948 Views)
Solution
Accepted by topic author AnkitRamani

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.

0 Kudos
Message 10 of 10
(2,931 Views)