How can I execute a JMP script from MATLAB?

I am looking to invoke a JMP (Jump) script from MATLAB.
Currently, I am using MATLAB to perform some calculations, then using a C# program to invoke the .JSL script on the generated data. I would like to complete this entire workflow from MATLAB.
Does MATLAB have a way of invoking this type of foreign script?

 Respuesta aceptada

There are several ways you may invoke a JMP script using MATLAB:
  • MATLAB can be used to call C# programs through the use of .NET assemblies. With this method, you may call the existing C# program directly from MATLAB. Refer to the following link for more information:
  • The "system" function may be used to execute system commands directly from MATLAB. For this workflow, pass the location of the "jmp.exe" executable and the script to run to the "system" function using the following syntax:
status = system('C:\jmp.exe "C:\script.jsl"')
  • JMP can also be controlled using Visual Basic. You can use MATLAB's COM or .NET interfaces in conjunction with a VB script to invoke the specified JMP script.
If you need to pass additional arguments to the JMP script, use MATLAB to write a temporary .TXT or .JSL file to pass the information between the two programs.

Más respuestas (0)

Productos

Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by