LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multithread in labview

Hi,
 
I try to do a multithread software in labview 7.1.1.

In the enclosed screenshot, there is the diagram of my top level VI.
The sub-VIs "AcqT ACQ+detect" and "Acq S MAIN" are the acquisition time critical tasks supposed to run in independant threads.
To implement multithreading, I have to choose "other1" and "other2" as "preferred execution system" in the VI's "execution properties". All my VIs are running in "normal priority".
My sub-VIs communicate with the top level VI using queues and references (acquisition data).
 
 
Are my sub-VIs running in independant threads?
 
Thank you
0 Kudos
Message 1 of 3
(3,039 Views)

The answer depends on more information than you have provided.

Depending on what you are doing with what looks like control references, there is the potentail that part of the time those VI's may end up running in the UI thread.

Could you provide screen shots of those sub-VI's?

What is happening that makes you ask?

Curious,

Ben

Message Edited by Ben on 01-27-2006 11:31 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,996 Views)
Hi françois C:

Yes, as long as I know yor tasks are indeed running in their own thread.   Since you selected an execution system for each of them,  they own a thread of their respective execution system for performing their tasks.

Have you considered placing both of them in the Data acquisiton execution system? I guess it's the best option for that tasks. I know that each execution system, including the Data acquisiton one, owns at least two threads for executing the tasks in it's queue, so each of your VI's would own a thread. If the tasks are time-critical you should consider increasing their priority, to above normal or maybe to high.

Hope this helps.

Robst.



Robst - CLD

Using LabVIEW since version 7.0


0 Kudos
Message 3 of 3
(2,983 Views)