DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we suppress message displays (errors) in DIAdem via .VBS / .TDR?

Hi Jeff,

 

First of all, DIAdem 10.2 fully supports UserCommands, so that is an option for you.  When I assign those "don't show errors" variables through ActiveX, I am able to print the PDF file without error, even though the REPORT layout shows an error on refresh.  Here's the code of a VBScript I used by double-clicking on it in Windows Explorer-- this is an easy way to call DIAdem using ActiveX-- note the "AutoSequence" syntax in the command arguments:

 

Set ToCommand = CreateObject("DIAdem.ToCommand")
Call ToCommand.CmdExecuteSync("CmdNoDialogDisp:= 1")
Call ToCommand.CmdExecuteSync("CmdNoErrorDisp:= 1")
Call ToCommand.CmdExecuteSync("CmdNoInfoDisp:= 1")
Call ToCommand.CmdExecuteSync("CmdNoMsgDisp:= 1")
Call ToCommand.CmdExecuteSync("CmdNoWarningDisp:= 1")
Call ToCommand.CmdExecuteSync("PicPDFExport('C:\NoName.PDF')")
Call ToCommand.CmdExecuteSync("CmdNoDialogDisp:= 0")
Call ToCommand.CmdExecuteSync("CmdNoErrorDisp:= 0")
Call ToCommand.CmdExecuteSync("CmdNoInfoDisp:= 0")
Call ToCommand.CmdExecuteSync("CmdNoMsgDisp:= 0")
Call ToCommand.CmdExecuteSync("CmdNoWarningDisp:= 0")
Set ToCommand = Nothing

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 11 of 14
(1,756 Views)

I've tried the custom user command and can create the function and call the function outside of the table and it works.   As soon as I embed the call to a 2DTable ("@@ @@") it does not work?

 

As for the last bit of code you (Brad) atttached,  I tried putting that logic into the script file and the script file quit generating the .pdf file???? 

 

I'm sorry for so much trouble but I obviously did not get the NI training for this product.   The personnel that did aren't currently available to support this.  

 

Brad, I'm going to look into the interlectual properties and assuming no issues, if I sent all files to you, would you take a look at the design? with using ver 10.2?

 

Thanks - Jeff

0 Kudos
Message 12 of 14
(1,747 Views)

Sure Jeff,

 

Send it over, I'd be curious to look at the logic that you added that broke my VBScript. I'd also be curious to look at the expression that worked outsid the table but not in it.

 

Bad Turpin
DAdem Product Support Engineer
National Instruments

0 Kudos
Message 13 of 14
(1,730 Views)

Well,  I guess its been decided that we will fix the problem by modifying the tests so the data formats are identical.  Essentially, the few test case without lower limit evaluations will have them added.

 

Thanks for your help and thanks Romi for the snippet of code.

 

Jeff

0 Kudos
Message 14 of 14
(1,727 Views)