Visit our LabVIEW Wiki Real Time article
Tags |
(This content has not been tagged yet)
|
![]() |
Oct 3 2008, 01:09 PM
Post
#1
|
|||
|
I've come back for more. Member Posts: 2 Joined: 28-October 06 Member No.: 6651 Using LabVIEW Since:2004 LV:7.1.1 ,. ,.
|
Does anybody know if you can have two or more rt applications running on a compact rio. Possibly only having one run at a time and have the 1st be able to call the 2nd one to start?
|
||
|
|
|||
| Ad |
Oct 3 2008, 01:09 PM
Post
#
|
||
|
|
|
||
|
|
|||
Oct 3 2008, 05:41 PM
Post
#2
|
|||
![]() Very Active NI ![]() Posts: 110 Joined: 28-October 05 From: Austin, TX Member No.: 3370 Using LabVIEW Since:1993 LV:8.5.1 ,8.2.1 ,8.6
My Gallery
|
Does anybody know if you can have two or more rt applications running on a compact rio. Possibly only having one run at a time and have the 1st be able to call the 2nd one to start? You can only have one RT Startup EXE, which is called when the cRIO system boots up. But you can call additional VIs from the EXE dynamically when it is running. So you can have two or more VIs running on a cRIO at the same time. Once a second VI is started, the main VI or RT EXE can stop running and the second VI will continue to run on its own. The second VI of course can start additional VIs dynamically as well. To do this, become familiar with how to call VIs dynamically using the VI server functions. When building the RT EXE you will need to explicitly include any VIs that you call dynamically in the Build Specification for the RT EXE. -------------------- Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies "I like my G code neat."
|
||
|
|
|||
Oct 5 2008, 12:51 AM
Post
#3
|
|||
![]() Very Active Premium Member ![]() Posts: 218 Joined: 1-January 08 From: Perth, Australia Member No.: 10325 Using LabVIEW Since:2006 LV:8.5.1 ,8.6 ,.
|
You can only have one RT Startup EXE, which is called when the cRIO system boots up. But you can call additional VIs from the EXE dynamically when it is running. So you can have two or more VIs running on a cRIO at the same time. Once a second VI is started, the main VI or RT EXE can stop running and the second VI will continue to run on its own. The second VI of course can start additional VIs dynamically as well. To do this, become familiar with how to call VIs dynamically using the VI server functions. When building the RT EXE you will need to explicitly include any VIs that you call dynamically in the Build Specification for the RT EXE. Hi LV_FPGA_SE Is there any caveats to running dynamically called VIs on LabVIEW RTOS. My main question is with respect to memory allocations. I am worried that dynamically called vis could chew up contiguous memory for large arrays. At present I initialise my arrays from bootup and am very cautious in not dynamically increasing their size or making copies. Especially when the application has to run for days/weeks/year I have not have the need to use dynamic VIs on RTOS - is there a benefit to using them? The main one I could see if it freed up resources - but does this actually happen? Cheers Jon -------------------- all day...
|
||
|
|
|||
![]() ![]() |
| Time is now: 1st December 2008 - 08:15 PM |