DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue due to switching from VIEW to REPORT panel in DIAdem 2010

Hi

  I have an application in DIAdem 2010, where an User Dialog is diplayed in the VIEW panel. On clicking the "Process" button, some selected evaluations are run and plots created in the REPORT panel. Each plot is saved in jpeg format before going to the next plot. After all plots are created one after the other, the application switches back to the VIEW panel to show the dialog again. However, there is an issue here - after each plot, two modal message boxes appear - the first says that the jpeg file for the plot already exists(if it really does) and whether it can be overwritten. After this, the second message box says that the Plot Layout (i.e. the template file) is modified and whether it can be overwritten. When there are a number of plots, it becomes painful to answer each pair of these message boxes.

 

However, THE SAME DOES NOT OCCUR if the dialog is opened with the normal SUDdlgshow command. The plots switch from one to next smoothly and jpeg file created even if it already exists.

Could you please throw some light on this phenomenon, and how I can get around it?

 

Thanks in advance.

0 Kudos
Message 1 of 2
(3,518 Views)

Hi BLV,

 

A standard trick with file I/O is to check if the file you're about to write already exists, using the FileExist() command, then if it does remove it before writing the new file, using the FileDelete() command.  This will avoid the file-already-exists dialog.

 

Similarly, you can delete (PicDelete) or save (PicSave) the REPORT layout programmatically before loading the new REPORT layout to avoid the other dialog box.

 

Additionally, you can use the following global variable assignments to choose which pop-up dialogs to allow:

 

CmdNoDialogDisp = TRUE
CmdNoErrorDisp = TRUE
CmdNoInfoDisp = TRUE
CmdNoMsgDisp = TRUE
CmdNoWarningDisp = TRUE

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,446 Views)