07-25-2011 07:58 AM
I have a PXI-1033 that includes a PXI-4070 in slot 5. I am using a version of the Switch Scanning with DMM - Handshaking.vi but I changed it to read a fixed scan list and replaced the meter while loop with a fixed read of 144 samples. After this VI runs approximately 47 times I get this error:
I have NI-DMM 3.0.4, NI-DAQmx 9.3.0f2 LabView 2101SP1 and am running Vista Business 32 bit. I am using 4 wire resistance and tried both auto and fixed range with the same results. Before this loop the only DMM related functions is to read 4 wire resistance readings and close the DMM. That seems to loop forever without any problems.
Rebooting dozens of times a day is getting old fast, any ideas?
Solved! Go to Solution.
08-01-2011 09:23 AM
Tom,
Thank you for using the forums. I am sorry that you are receiving this error. I wasn't able to find anything on your particular error, however I did find a knowledgebase article that deals with an error very similar to this one. I would take a look at that to see if it helps it could be that the task is not being cleared properly.
Another thing to try is running one of the stock example codes and see if you still receive this error. If so, there could be a problem with the board itself.
Finally if those don't work, could you post your code and I will try to replicate the error here.
Regards,
Brian P.
08-04-2011 08:37 AM
Here is the code that causes the error. I can run the Switch Scanning with DMM - Handshaking.VI all day without problems. It's the version I modified that I seem to be unable to fix. The test VI will run from for sometimes as few as 2 loops and hang the system.
08-05-2011 11:38 AM
Tom,
Thank you for attaching your code, I am in the process of getting the hardware together to test this myself. I have been doing some more digging and I have 2 thoughts.
1) What version of NI-Switch are you using? This error has been seen with versions that were below 4.0.
2) This error can occur when the F1 fuse has been blown. This is the fuse that is connected to the 12V power supply. See this forum.
Regards,
Brian P.
08-05-2011 12:51 PM
Hi Brian,
I'm running NI-Switch 4.1.0f1 and my fuse measures OK.
08-08-2011 09:46 AM
Hi Tom,
I would try updating your drivers to the latest version of NI-DMM and NI-Switch, I was able to run your code on a similar setup without any error, so I suspect that this is a driver issue. The latest version of NI-DMM is 3.0.5 and the latest version of NI-Switch is 4.3.5.
Please let me know if this helps in your application.
Regards,
Brian P.
08-08-2011 09:58 AM
The problem you are seeing is likely caused by repeatedly opening new sessions to the devices. It is better practice to initialize the sessions once use them as long as needed and close them durring a clean-up routine. I don't recall the exact DAQ version I saw this on, or if it ever resolved, but some DAQmx sessions could not open more tha 4096 sessions before throwing this error (or one much like it.)
08-09-2011 07:12 AM
Hey Brian!
I downloaded the most current drivers and nothing changed. The actual VI I use runs the scan list and measure VI turns on a relay and reruns the scan VI. Today it I ran it 3 times about 20 minuets apart and it failed on the third run. I am also downloading NIDAQ940f1 in case that helps.
As an aside out IT department prevents many of the helpful features built into LabView from running including checking for updates. Perhaps providing a list of only the most current version of software and drivers so we can tell in a glance if our system is up to date would help? The list on the support page is good but requires checking item by item and for some reason rarely loads sorted by date on my computer. This is where several people point me to the exact list I never knew existed................
08-09-2011 07:24 AM
Hi Jeff,
Thanks for the response, in this case I'm only opening and closing the session twice. The VI will run maybe 3 to 5 times and I exit LabView between runs sometimes. You are exactly right about really poor style, I did a quick cut and paste of an example instead of building from scratch and look what it got me.
08-09-2011 08:56 AM
Quick follow up. Installed NI-DAQ940f1 and test loop ran 17 times before failing.