Jump to content

Problem with DMM PXI-4070


Recommended Posts

Hello everyone. The simple measurement. (Single measurement AC Voltage). Why the DMM takes so much computer resources? 52% of the CPU.

And when run DMM Soft Front Panel CPU is not more than 2%.

I use the example from NI examples folder. What is wrong?

Add a wait of 100 ms to the while loop.

Be glad you have a dual core, on a single core this would take 100%

Ton

Link to comment

Hello everyone. The simple measurement. (Single measurement AC Voltage). Why the DMM takes so much computer resources? 52% of the CPU.

post-16690-127482050823_thumb.png

And when run DMM Soft Front Panel CPU is not more than 2%.

I use the example from NI examples folder. What is wrong?

The reason it using so much CPU is because it is restarting the HW and then doing a busy wait while waiting for the point to be available from the hardware.

Instead of starting from Measure AC Voltage, I started from Cont Acq & Chart Multiple Samples. This will only start the device once (niDMM Initiate) and then uses niDMM Fetch Multi Point to get the points from the device. What I added was niDMM Read Status in the loop. If there is no point available (backlog == 0), wait a few ms. If there is a point, go fetch it.

post-2364-127482378483_thumb.png

Link to comment
Add a wait of 100 ms to the while loop.

Of course I tried, it has no effect

Instead of starting from Measure AC Voltage, I started from Cont Acq & Chart Multiple Samples. This will only start the device once (niDMM Initiate) and then uses niDMM Fetch Multi Point to get the points from the device. What I added was niDMM Read Status in the loop. If there is no point available (backlog == 0), wait a few ms. If there is a point, go fetch it.

Thank you so much! It's works perfect

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.