04-21-2015 04:56 AM - edited 04-21-2015 04:58 AM
hii
i working with compactrio 9068 in labview RT 2014.
I want to create button in my Vi (real time project) to close the same VI , i use the Property nodeto close vi but doesn't work in labview real time
thanks for help
04-21-2015 05:01 AM
RT projects are usually headless, meaning there isn't any VI front panel to close anyways. Can you elaborate in more details what you really want to achieve?
04-21-2015 05:13 AM
i want when i presed the button Cancel the vi closed
in this VI i use the invoke node but doesn't work in RT
04-21-2015 05:55 AM
You can't do that!! A VI is not present on the RT target as an individual file on the filesystem. You also have the issue that the VI is not even present on the filesystem at all when you execute (deploy) your program directly from the LabVIEW project, and inside the .rtexe file when you deploy the build executable to the controller.
Instead you should use some network conmmunication to send commands to your realtime target. That could be using VI server to directly access control elements on a VI that has been explicitedly included in your build through a static VI reference for instance or you can add your own TCP/IP server in your application to send commands to it.
04-21-2015 06:15 AM
im sorry I did not understand you, I am beginner in labview RT
you can be more details
thanks
04-21-2015 06:27 AM
Well,, I think the most trivial solution for now would be to use a shared variable. That varaible you can access from both your host system as well as your RT target. I don't have RT installed on this system currently so can't really cook up an example for you but try to read about how you can create shared variables and use them.
04-21-2015 07:07 AM
I recommend going through the NI cRIO Developer's Guide. There is a lot of good information in there that should help you out.
04-22-2015 02:21 AM
hi again
all of my project in RT , i want juset how to create button to close vi when i fineshed with her
i have main VI called others VI , So i want when i fineshed with vi i close her with button cancel
thanks for help
04-22-2015 06:54 AM
@dalyto wrote:
all of my project in RT
Will you always be running from the LabVIEW environment? That kind of defeats the purpose of an RT system if you are.
As we have said, you need to set up some kind of communication scheme to command the RT to stop. You then just stop all of your loops, just like you would with a Windows executable. There just is no front panel to close.
04-22-2015 08:46 AM
thanks
but how to crate this kind of communication scheme to command the RT to stop (exemple)
I create local variables and global variables and shared variables for my button but don't worked