02-05-2015 11:48 AM
I have a routine that calls the DAQmx Self Calibrate.vi prior to starting acquisition. I have used this on the PCI E series cards for years but I have problems with the M series PCI 6221 card. If I allow this self calibration vi to be called the process fails. Communication is lost to the device. When opening MAX the card is visible but fails self test stating the resource is unavailable. The only way I have been able to resume communication to this card is after restarting the computer.
This only happens when calling the DAQmx Self Calibrate.vi After restarting the computer I can open MAX and perform the self calibration from Max with no problem. That is the work around I have used for quite some time. I am setting up a replacement workstation this is with newer device drivers DAQmx device driver 9.8,, LabVIEW 2013. I would like to get this resolved.,
Thanks,
Randall
02-05-2015 01:45 PM
Randall,
It might help to post your code the exhibits the behavior you are describing but there are a few things I can think of without seeing what you are doing.
When your process fails (I am assuming it is some DAQ task) are you clearing or stopping the task before you are self-calibrating? I could see something going wrong if you have a task that is reserving the resource when you try to perform a self-calibration.
It also sounds like you are self-calibrating in the middle of one of your tests so I would also make sure you don't have any AC signal inputs while performing calibration as mentioned in the help document.
http://zone.ni.com/reference/en-XX/help/373107E-01/nisyscfg/self_test_calibrate/
02-05-2015 07:21 PM
If you're getting new device drivers, why not get DAQmx 14.2? There have been 4 updates since 9.8. The newest drivers support the 6221 and are compatible with LabVIEW 2013.
Try making a simpler VI that does nothing more than Self-Calibrate your device. With this VI, do you get the same behavior or does it work as expected?
02-06-2015 07:55 AM
Good point about the driver. I had another individual prep the computer with needed drivers and office software, I need to provide them the latest NI drivers. I will check this on my next workstation upgrade which I have several in line to do. For this on I placed the E-series card in as I need the station up quick.
02-06-2015 07:55 AM
Good point about the driver. I had another individual prep the computer with needed drivers and office software, I need to provide them the latest NI drivers. I will check this on my next workstation upgrade which I have several in line to do. For this on I placed the E-series card in as I need the station up quick.
02-06-2015 08:09 AM
Thanks for the reply, Although my acquisition may run for several days or a month eventually we shut the program down. Based on how long since last self calibration when the program starts it will first do a self calibration then start the acquisition task.
Basically if a self calibration is called here is the code that runs.