Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Processes on RT Target

I would like to create multiple independent processes on a RT target. Is this possible under the LabVIEW RT. Does the new VXWORKS RTOS allow this functioanlity?
0 Kudos
Message 1 of 4
(4,202 Views)
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.

| Michael K | Project Manager | LabVIEW R&D | National Instruments |

0 Kudos
Message 2 of 4
(4,179 Views)

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 

0 Kudos
Message 3 of 4
(4,173 Views)

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.

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 4 of 4
(4,169 Views)