Jump to content


Photo
- - - - -

Configuring TestStand Cfg directory


  • Please log in to reply
3 replies to this topic

#1 Roderic

Roderic

    Very Active

  • Members
  • PipPipPip
  • 113 posts
  • Location:Toulouse (France)
  • Version:LabVIEW 2012
  • Since:2010

Posted 22 June 2011 - 03:36 PM

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

Attached Thumbnails

  • CFG directory.JPG

CLA


#2 crelf

crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,742 posts
  • Version:LabVIEW 2012
  • Since:1993

Posted 22 June 2011 - 03:52 PM

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?

post-181-1170858537.png


#3 Roderic

Roderic

    Very Active

  • Members
  • PipPipPip
  • 113 posts
  • Location:Toulouse (France)
  • Version:LabVIEW 2012
  • Since:2010

Posted 22 June 2011 - 08:23 PM

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)?

CLA


#4 Roderic

Roderic

    Very Active

  • Members
  • PipPipPip
  • 113 posts
  • Location:Toulouse (France)
  • Version:LabVIEW 2012
  • Since:2010

Posted 06 July 2011 - 03:12 PM

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 by Roderic, 06 July 2011 - 03:13 PM.

CLA