LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel write to jpeg.vi problem

Solved!
Go to solution

Hello,

I've got a problem with write to jpeg VI : when I choose to cancel the dialog box, my program is in trouble, as if I changed the state of my machine state... or if I re-initialized it.

 

So my question is : how can I manage it ? I have no access to write to jpeg block diagram, as it is password protected.

 

here is a screen of the sub vi. thanks


J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
0 Kudos
Message 1 of 4
(2,750 Views)
Solution
Accepted by topic author JDlabview

Do not use the implicit way to display the File Dialog but do it explicitly (File Dialog.vi in File IO palette >> Advanced).

Capture the error of the dialog if canceled (should be Code 43) and react properly on this in your application.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 4
(2,738 Views)
You can connect the error to the case structure and do what you want in the error case. You can also try using file dialog vi from file functions
Message 3 of 4
(2,734 Views)

Thanks to both of you, I post the solution if someone needs it

 

 

Message Edité par JDlabview le 06-16-2010 11:38 AM

J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
Download All
0 Kudos
Message 4 of 4
(2,718 Views)