LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU usage 100% by LV

Hi ,

attached is my VI.

Problem definition:
We are using the PCI4451 DAQ card to sample analog signal in certain frequency (every 200-500mS or so - sometimes even longer than that).
The data from the sampling is then being transferred to Visual Basic program via an Active X (*.ocx).
Every 6-10 seconds the card also performs a THD analysis.

After an hour and a half or so, the CPU usage raises from 20% to 95% by LV. This causes lost data.

Instructions:
If you want to run the VI - you need the PCI4451 card. Also you need to install the active X (see attached *.zip file).

Best regards

Wissam
0 Kudos
Message 1 of 2
(2,623 Views)
Your problem that you open ActiveX reference in for loop and don't close it, it causes that you open 1000 refnums of ActiveX. Move it out of loop, and close it after loop.
0 Kudos
Message 2 of 2
(2,623 Views)