Visit our LabVIEW Wiki Linux article
Tags |
(This content has not been tagged yet)
|
![]() |
Apr 9 2007, 11:01 AM
Post
#1
|
|||
|
I've come back for more. Member Posts: 2 Joined: 20-January 07 Member No.: 7552 Using LabVIEW Since:2006 LV:8.20 ,. ,.
|
Hi!
Is it possible to start up several VI:s running in the same LabVIEW process from the command line? In Linux starting LabVIEW by consecutively issuing two LabVIEW commands would fire up two separate and independent processes: > labview AppA.vi & > labview AppB.vi & In windows they would end up in the same process and share VI:s in memory. I'm interested if I could somehow get this behaviour in Linux. I'm investigating various ways for users to start up the suit of testing applications that has been developed. Right now these users have to memorize and go through long search paths to find their VI:s. It would be much more straightforward to find the applications in the menus of the window manager (LabVIEW Apps -> AppA, AppB), or be able to just write for example "> AppA &" in a shell. If a user would want to open two applications this method would as far as I know, give the result that two separate LabVIEW processes would start up. Another aspect is that some users wants to keep a lot of VI:s loaded in memory during execution (to prevent dynamically loaded VI:s from being constantly reloaded). A special VI has been made for this preloading purpose, and must be run in the same process as the other applications. I was hoping to put this VI in the same menu as the other apps. I'm not very familiar with how an operating system handles various processes, particularly not Linux. I would be interested to know if this is possible, or if there are any other options to consider. Since I don't know if and how this could be done, I am right now considering creating an additional GUI which only purpose is to start the other LabVIEW applications and keep them all in the same process. I would prefer to avoid that. I and I'm grateful for any comments and I will more details if necessary. Cheers/ Johan
|
||
|
|
|||
| Ad |
Apr 9 2007, 11:01 AM
Post
#
|
||
|
|
|
||
|
|
|||
Apr 9 2007, 12:37 PM
Post
#2
|
|||
|
I've come back for more. Member Posts: 2 Joined: 20-January 07 Member No.: 7552 Using LabVIEW Since:2006 LV:8.20 ,. ,.
|
Well, I guess I have been looking in the wrong places. I thought I had to understand how to send signals to processes in Linux, but apparently NI have provided for this in their implementation.
I've been looking around on NI's website and searched all forums I've found, but I found the answer by looking in the wiki of this site. Running multiple instances of LabVIEW QUOTE In Linux you get a new instance of the LabVIEW development environment each time you run the LabVIEW executable </usr/local/lv70/labview>, unless you pass the \"-launch\" command line argument. For example: $ /usr/local/lv70/labview -launch Thx to Michael aivaliotis.
|
||
|
|
|||
![]() ![]() |
| Time is now: 8th January 2009 - 01:53 AM |