DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Run diadem and Script automatically with windows

It would be possible to give an exe or something like that, with windows and after execute this, DIAdem automatically run and when Diadem opened, run my script also automatically??

 

 

Thank you

 

 

Sara

0 Kudos
Message 1 of 4
(5,071 Views)

I solve this problem, I create a .bat file with the commands for executing Diadem and my Script.

 

But... It's possible that The users don't view the Diadem program and Only view my Script execution in screen?

0 Kudos
Message 2 of 4
(5,059 Views)

Hi Sara,

 

You can absolutely run the DIAdem exe automatically from Windows, for example, as a startup executable, Windows Scheduled Task, or batch file.

 

Using DIAdem, if you want to automatically run a SCRIPT when the application opens, use the Start Script option under Settings » Options » General » Start Script.

 

If you want your users not to see DIAdem executing, there are a couple of approaches you could take, depending on your desired behavior and comfort with programming.  For example, you could:

  1. Call DIAdem programmatically using ActiveX from another language like LabVIEW and choose to hide the environment when running, or
  2. Have DIAdem SCRIPT run a SUD dialog that masks the DIAdem screen and reports a simpler version of information updates to your user, or
  3. Use DIAdem's customization abilities to programmatically hide all Panels and Toolbars, or
  4. Use your script to programmatically switch the screen mode in DIAdem (try pressing Ctrl+U interactively!) while your script is executing.

 

Good luck!

Derrick S.
Product Manager
NI DIAdem
National Instruments
0 Kudos
Message 3 of 4
(5,055 Views)

Hi Sara,

 

One additional option is for your startup script to minimize the DIAdem application window immediately after it starts:

 

Call WndShow("SHELL", "MINIMIZE")

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(5,024 Views)