06-16-2008 06:58 AM - edited 06-16-2008 07:01 AM
I have a windows application I am developing using Visual Studio 2005 (VB.net) with Measurement Studio 8.1.2.472. It is PXI based using a PXI-1033 chassis with a PXI-4065 DMM and two PXI-2575 switches. Within the last couple of weeks, the application will not start in “Debug” (i.e. the initial form does not display) and after a period of roughly 30 – 60 seconds, the following exception is thrown…
{"An error was returned by one of the internal function calls.
DAQmx Error -200324 occurred:
Measurements: Device not available in NI-DAQmx. It is possible that the device is being used by Traditional NI-DAQ or that the device is being reset.
After using a device in Traditional NI-DAQ, you must reset the device before using it in NI-DAQmx. For SCXI devices, you must reset the communicator DAQ device. Call the Traditional NI-DAQ Device Reset VI or the Init_DA_Brds function. To reset all devices in Traditional NI-DAQ, right-click the Traditional NI-DAQ Devices folder in MAX and select Reset Driver for Traditional NI-DAQ. If you are resetting the device, wait for the reset to complete."}
I have attached a MS Word document to this post which better defines the problem I am having with images from MAX.
Thanks
06-18-2008 06:49 AM
06-18-2008 08:51 AM
The problem with my application not being able to communicate with the PXI hardware only seems to occur when the USB-6009 device address is 0x0 when I start the PC. Restarting the PC results in this address being some value and then the application communicates with the PXI hardware without problem. This has just started within the last couple of weeks and I have had the application running much longer than that. When the error occurs, I am not aboe to run a self test on the USB-6009... I'm not sure about the PXI devices as the problem hasn't occurred for the last couple of days. This may be a moot point as I have both the USB-6009 DAQ and the PXI hardware installed on my development system at the same time. In the production environment, only the PXI hardware will be installed on the PC.
If I understand what you said, both the USB-6009 DAQ and the PXI DMM use the same NI DaqMx driver so there is no chance of having a mismatch. The software version I am using for the DaqMx is 8.7.1f3. MAX is 4.4.1f0.
One other piece of information... I typically shutdown both the PC and the NI PXI-1033 chassis at night. In the morning, I turn on the PXI-1033 chassis and then start the PC. When the problem with the USB-6009 having a 0x0 device address occurs, restarting the PC w/o restarting the PXI-1033 chassis fixes the USB-6009 device address and then there is no problem. Could I be starting the PC too fast when first turning on the PXI-2033 chassis? It doesn't seem like there should be a large amount of time required for me to wait before starting the PC,
Anyway, I will try to gather more information and post again later.
Thanks for your help!
Paul
06-19-2008 02:48 PM
06-20-2008 05:19 AM
Hi Corby,
I am using the following for my development PC. The BIOS has not been updated.
Dell Precision 390
Intel Core 2 CPU
6320 @ 1.86 GHz
2.0 GB of RAM
This is the only PC that has both the PXI-1033 and the USB-6009 Daq installed. I have numerous PC's us9ing the USB-6009 which are not having any problem. I do not have any other PC's installed with the PXI-1033 yet (I have several on order and will probably be ordering more). I do not anticipate that any of these systems will have both the PXI-1033 and USB-6009 installed simultaneously. Since I first posted, I have been starting the PXI-1033 chassis first when I come in, waiting a few seconds and then start the PC. I have not had any problems since then. I guess I should try to start the system again without the delay just to see what happens, but when things seem to be working...
I'll keep monitoring the situation and let you know if I have another problem.
Thanks for your help!
06-23-2008 12:31 PM