From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-24-2015 10:30 AM
Hi,
I just got some great help here, and everything was working. However, now when I run the code, I get Error Caused By Remote Command on my meter (Agilent 34461A). However, when I run in the debug mode by clicking the light bulb, this error doesn't happen.
The change I made was that I initialized the measurement outside of the while loop so that I didn't have to initiialize it for each iteration and I added a Read?
Any ideas why this would cause this error?
Solved! Go to Solution.
07-24-2015 10:49 AM
_natalie_ wrote: However, when I run in the debug mode by clicking the light bulb, this error doesn't happen.
That points to a race condition with the instrument. Try adding a wait right after your initialization. Something like 10ms will likely fix it.
07-24-2015 11:08 AM
I tried that, but it isn't working. I put it in right after the measurement initialization.
It is also doing it in the debug mode. It happends right after the Read?.
07-24-2015 11:09 AM
Oh and I should add that the code keeps running and recording the current.
07-24-2015 11:13 AM
And it only happens on the first iteration.
07-24-2015 11:23 AM
After reading through the manual some, I found that you actually want to use "CONFigure:CURRent:DC" for your setup command. Apparently, the MEASure system causes a read to happen.
07-24-2015 11:30 AM
Thanks again!
I would never have thought of that, but now I won't make that mistake twice 🙂