05-16-2007 10:07 AM
05-16-2007 11:30 AM - edited 05-16-2007 11:30 AM
Typically if you have a deployed startup it will be run from an executable file. In this case you could use something similar to the attached code to determine if the VI is run from a EXE or from the development environment.
Message Edited by Christian L on 05-16-2007 11:32 AM
05-17-2007 06:11 AM
Hello Jonemo,
One way to determine if a Front Panel of a certain VI is open is to use VI Server. You will need to implement something similar to the attachment. When using exectuables with VI server the .exe file should be treated like a library in that when you wish to target a VI that operates within that executable you should approach it as follows: c:/folder/exectuable.exe/thevi.vi. This KnowledgeBase article should explain this.
Hope this helps
Tom
NIUK
05-17-2007 06:19 AM
Thanks very much. In Christian's solution I don't quite understand how the VI (which is then of course an exe) determines it's own path. But Tom's way is probably the way forward. I will just built my entire project and put it onto the RIO but write a separate startup VI which somehow tells the other one it's parameters. I haven't really done this before so I will spend a few hours on figuring out the tricks and traps of deploying etc...
Thanks for your input.
05-17-2007 09:24 AM - edited 05-17-2007 09:24 AM
Message Edited by Christian L on 05-17-2007 09:28 AM
05-21-2007 07:48 AM
Thanks Christian, your explanation was really helpful. I just tried this out and it's working just perfect. I did however stumble upon another problem with deploying my works...
Deployign and setting as startup my realtime code is quite straightforward but how do i "deploy" the fpga code so that my startup-RT-vi can reference to it?
05-21-2007 09:51 AM