LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU load goes to 100% with IMAQ interface and 4 serial ports. Any trick?

Hello to all,

I am using an IMAQ interface in conjunction with 4 serial ports for data acquisition. Both systems run with different VI's. My problem comes when I run both at the same time. In this case the CPU goes to 100%, and both programs slow down drastically. I must keep a sample rate between 300 and 600 ms for the test (easily achieved by the IMAQ or when I run only the VI for the serial ports), but unfortunately the sample rate goes to 3-4 seconds when running both programs at the same time.

I have put “Wait (ms)” in every single while loop, but the delay stays and the CPU is still on the 100%.

Do you have any clue to overcome this? Any help will be greatly appreciated.

Thanks in advance.

Best regards,

Alejo.
0 Kudos
Message 1 of 4
(2,611 Views)
Post your code so we can look at it.
You should be able to achieve your goals with the hardware.
Greg Bush CLAD
0 Kudos
Message 2 of 4
(2,605 Views)
Thanks for your reply bushman. I will post the files tomorrow morning at work.
0 Kudos
Message 3 of 4
(2,596 Views)
Ok, this is my VI for the data aquisition through the 4 serial ports. The block diagram of the IMAQ sofware is password protected and I cannot send it at this time. I hope the problem is in the first one.
Again, thanks.
Alejo.
0 Kudos
Message 4 of 4
(2,583 Views)