From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a Python function from VBScript in DIAdem 2020

Below is a solution I came up with for executing a Python function from a VBScript function.  Does a better method exist?

 

http://www.savvydiadempysolutions.com/index.php?tab=script&topic=script-call-python-function-from-vb...

 

The procedure I used was to call a Python script from VBS using ScriptStart(), and then pass a string as a DIAdem global variable to the Python script that contains a Python call to execute a Python function.  The global DIAdem string is executed in Python using the Python exec() command. 

Message 1 of 1
(2,995 Views)