08-07-2014 05:53 AM
hello,
my task is, i want to stop the a.vi by calling b.vi ....i mean my application is running in a.vi and for closing tht application i have made b.vi. so how i will call b.vi to stop a.vi? please suggest.
NOTE: I want to use two vi's compulsorily. so suggest accordingly. thank you
08-07-2014 06:00 AM - edited 08-07-2014 06:00 AM
08-07-2014 06:01 AM
Be clear when using the word application.
If both vi's are in same application you can use queue to send stop message from vi b to vi a.
If both are in seperate application one simple method is to use TCP/IP.
08-07-2014 06:02 AM
I didnt get it. will you please elaborate it.
08-07-2014 06:04 AM
actually i am running a temperature.exe application in labview and i want to run it for 5 seconds then i want to close that exe file. this is the main task.
08-07-2014 06:06 AM - edited 08-07-2014 06:07 AM
This question sounds similar to this question. If you hadn't posted in that thread I have suggested that you ask your classmate. Is this a school assignment? We need more details so we don't suggest a more complex solution than you require.
08-07-2014 06:07 AM
are you trying to do it in development mode. IF its is the case both vi's will be in same application instance and you can pass data between them by using queues , notifier, FGVs.
If you are making two executable and try to stop one exe from other then data exchange through queues, notifier and FGVs will not be possible.
08-07-2014 06:16 AM
i am posting both the vi's please have a look. i am running temperature vi and another vi contains logic for stopping it.
08-07-2014 06:33 AM
Not able to open your vi's but i will give you just an idea, see how you can implement it.
run vi a and after that open and run vi b.
Click on stop a button on vi b.
08-07-2014 07:33 AM
@Neos wrote:
Not able to open your vi's [...]
He's just using System Exec to start & kill a Temp.exe.