Roderic Posted June 22, 2011 Report Share Posted June 22, 2011 Dear LAVA folks, I'm trying to set TestStand Cfg directory from LabVIEW. See attached file. This works fine only if I restart TestStand. I understand I only need to shutdown the Engine. My question is how can I restart the Engine without restarting everything? (there is no such thing as Start Engine method) Could a GetEngine method work? What would be the best way to accomplish this task? I don't want my customer to restart the software. Thanks in advance. Rodéric Quote Link to comment
crelf Posted June 22, 2011 Report Share Posted June 22, 2011 Hmmm - I've never come up against this before... I wonder if you call the IEngine.ShutDown method then the IEngine.GetEngine method? It seems a little unintuative, but the latter is a method and not a property, so it might start the engine if one doesn't already exist? Quote Link to comment
Roderic Posted June 22, 2011 Author Report Share Posted June 22, 2011 I was guessing it may start the engine if you call the IEngine.GetEngine method. Maybe there is another way to configure a test station for every program the station may have to run (with different fileglobals etc)? Quote Link to comment
Roderic Posted July 6, 2011 Author Report Share Posted July 6, 2011 (edited) Problem solved by shuting down the engine, then restarting. Don't know if I did it the right way but it works! it also seems like you have to close the Engine reference in every subVI , TestStand doesn't release the reference on his own every time (I got a popup error message) BTW: starting the engine by calling the IEngine.GetEngine method doesn't work. Edited July 6, 2011 by Roderic Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.