Subscribe Bookmark RSS Feed

Issue running JSL files in C#.NET

gpuckett

Community Trekker

Joined:

Aug 10, 2011

I am trying to execute JSL files in a C#.NET wrapper. I am able to sucessfully run the files but my code does not wait for the script to finish. Below is a sample:

JMP.Application jmpInstance = new JMP.Application();

FileInfo fJSLFile = new FileInfo(@"C:\Test\Test.JSL");

jmpInstance.RunJSLFile(fJSLFile.ToString());                       

if (jmpInstance.HasRunCommandErrorString())

{

     throw new ApplicationException("Error with JMP script: " + jmpInstance.GetRunCommandErrorString());

}