07-01-2008 10:01 AM
07-01-2008 10:19 AM - edited 07-01-2008 10:19 AM
If I understand correctly, the VI which has the Event Structure continues to execute and does not wait until Matlab is done, right?
You would need to monitor the state of the executable to see if it is still running. When the executable completes, does it return a value, like 0 to say all was fine, or -1 for an error? If so, then you could set it to wait for the response for your VI (with the Event Structure) to continue. Or implement something similar, but you would need to trigger on the executable being done..
RayR
07-01-2008 11:05 AM
07-01-2008 01:19 PM - edited 07-01-2008 01:21 PM
I'm not aware of any problems when using the Event Structure.
Try wiring indicators to the output of the Sys Exec. For "return code", "standard output" & "standard error". It is probably an error due to how the parameters are passed to the executable when using the Sys Exec.
You do place the parameters inside quotes, right? You can also try placing the command string into Sys Exec's "command line" input, and the parameter string into the "standard input".
RayR