02-06-2007 11:32 AM
02-09-2007
12:22 AM
- last edited on
07-14-2026
01:11 PM
by
Content Cleaner
Hi Derek,
If by 'multiple independent processes' you mean multiple threads, then yes.
The DevZone article Multithreading in LabVIEW Real-Time should give a fair explanation of creating varying priorities with regular and timed loops.
Cheers.
02-09-2007 10:58 AM
After reading the article it does look like I can run multiple VI's in parrallel on a RT target, minding the execution system and priority levels of each VI. How can this be deployed? Is it possible to have each seperate VI be compiled into an EXE. I want my RT to contain modular components that aren't complied together.
If the VI's are compiled seperately, are the threads still common within an execution system?
Thx
02-09-2007 11:25 AM
Derek,
You can run multiple VIs/subVIs on an RT system just like in Windows, but you can only have one LVEXE running on RT at a time. If you want to have an application running on RT and then dynamically start other VIs at run-time, you need to start them dynamically using the VI server tools. This means in your main application you need to have this functionality already built-in, so that it will allow you to start a new VI.
You will need to download any new VI to the RT file system from the host (this can be done using FTP) and then send a message to the application running in RT so that it will load and start the new VI dynamically. Of course the dynamic VIs can be preloaded on the RT hard drive and started based on different states in your application without interaction from the host.