FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with slow execution on a cFP-2120

Suggest you  try monitoring your Memory and CPU usage on the cFP.  You can do this by going to your project explorer window while the code is running and select Tools>>Real-Time Module>>System Manager.  Enable both Memory and CPU tracking and click on the Start Monitoring button.  My theory is that the property node is working better because of the way it forces LV to drop everything else and update the panel.  Starting to wonder if something in your vi is causing a bunch of extra overhead and starving the normal front panel updates.
0 Kudos
Message 11 of 17
(4,512 Views)
Can't get the system manager to work - it just gives me an error message.
0 Kudos
Message 12 of 17
(4,509 Views)
The VI server needs to be enabled on the RT Target before system manager will run.  In LVRT 8.2 there is a section titled Configuring RT Target Properties in the Getting Started with the LabView Real-Time Module manual that details how to do this. 
0 Kudos
Message 13 of 17
(4,505 Views)
I've managed to use the system manager, but it says I have plenty of memory and that I'm using 100% of cpu whatever I do (long delays in the code still gives 100% cpu usage).
 
Increasing the delays in the code does seem to update the display elements without using the property node. I still have to figure out how to make this run faster though. Sometimes I'm down to 50ms, but sometimes it's more than 600ms.
0 Kudos
Message 14 of 17
(4,475 Views)

Depending on your LV system, there should be a tool located at Tools>>Profile>>Performance and Memory....  that should be able to help you figure out where the problem is. 

The other option is to try disabling various sections of your target vi to try and find out what is tying up the CPU.  100% seems a bit extreme.

0 Kudos
Message 15 of 17
(4,473 Views)

I think that I can get 100% always because of the tracking vi itself, the instructions says something about this. (I get 100% when I put in a 2sec wait in the code - when the code takes 500ms to complete this should reduce cpu usage from 100%)

I'm using the performance and memory manager now, so I'll see how it goes.

0 Kudos
Message 16 of 17
(4,469 Views)
I think the reason why you are seeing a cpu usage of 100% is that the processor keeps polling the input modules in its idle time. You can add a delay to the polling by right clicking the target in project explorer>>Bank and network modules>>enter a value other than 0 in the pause field.
 
 
0 Kudos
Message 17 of 17
(4,301 Views)