LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dedicated thread

If a have a master slave design and a duel processor, I would like the do the following.  For the master thread, it can share a processor core with other PC processes.  For the slave thread, I want to use the second core exclusively (no other processes should be able to use this core).  If my slave thread can't own the core, is there a way to make the thread super top priority.  I want that slave thread to execuate as fast as possible, and I don't want it to wait.  I guess time looped would play a role?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(2,403 Views)

I use timed loops for this.  With the timed loop you can specify the CPU to use.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 4
(2,394 Views)

You could also make your slave in to a vi and use priority setting in the execution section of vi properties to the one that suits you. This link will help: https://www.ni.com/docs/en-US/bundle/labview/page/prioritizing-parallel-tasks.html


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 3 of 4
(2,388 Views)

Hi jvang72211,

You should be able to run multiple threads on the separated CPUs since your application is running under Real-Time OS. This could give you the chance to set different priorities and tune your resources usage according to your needs. Otherwise, the (General Pourpose) OS will take control over switching thread execution on available CPUs without giveing the developer the chance to set anything.

Best regards

 

Matteo
Message 4 of 4
(2,382 Views)