suppresspythoncmdwindow
Use at the beginning of the script to improve the performance of the OML-Python bridge commands by suppressing the Python command window and Python variable browser. This command has no effect if the command window is already loaded.
Syntax
suppresspythoncmdwindow(flag)
Inputs
- flag
- If true, suppress the command window and Python variable browser.
Example
suppresspythoncmdwindow(true)
x=0;
evalpythonscript('y=0')
while x ~= 100
x=x+1;
exporttopython(x,'x');
evalpythonscript('y=y+x');
end
suppresspythoncmdwindow(false)
Comments
Note: The Python 'input' command does not work between
suppresspythoncmdwindow(true) and
suppresspythoncmdwindow(false).