LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PXI CPU usage

I am using PXI-8110 to develop in real-time an automotive application using a PXI-8513 CAN board and a relay controller board PXI-2567. When my application runs, I see that only one of the four CPUs seems to be used with a load near to 100%. How can I divide the load between the available CPUs?

Is it also possible to change the clock used by the PXI controller to execute my applciation (this could be useful to reduce execution time)?

 

Regards,

 

Claudio

0 Kudos
Message 1 of 3
(2,668 Views)

Hi Claudio,

 

Depending on your application, you can distribute your tasks within LabVIEW between multiple loops to achieve parallelism. This will natively divide the processing between your available CPU cores. There is a lot of useful information on Multicore programming with LabVIEW here.

 

The other thing you mentioned was the CPU was running to near 100% while your application was running. Are you providing a source of timing within your execution structures (loops)? Unless you really need to run the execution flat out, it's important you give some time back to the processor. Even a ms per execution cycle should see a significant drop in it's load while the application is running.

 

Unfortunately it's also not possible to change the clock speed of the PXI controller, but you can use timing within your software to vary the execution time for certain tasks.

 

Let me know if this helps.

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

Hello Claudio,

 

My colleague Paul gave you great suggestions. Let me point you to a couple of additional web resources in order to fully provide information you need. If you want to specify a set of available CPUs, you could refer to following document:

 

Specifying the Set of CPUs Available for Automatic Load Balancing in LabVIEW Real-Time

 

Additionally, you can adopt different resource saving techniques like ones explained below:

 

Advanced LabVIEW Real-Time Development Resources and Benchmarks

 

Feel free to write back here if you need additional resources or suggestions.

Have a nice day!

 

 

Matteo
0 Kudos
Message 3 of 3
(2,625 Views)