05-17-2013 01:31 AM - edited 05-17-2013 01:44 AM
Hello
I have developed an application on a machine and it have to run on another one. This application is using a 9188 chassis with 9201, 9217 and 9401 nmodules
On the developpement machine I have created the tasks with MAX for temperature mesurement and digital output (9401 module). the soft is perfectly working. then I have created a distribution kit to install it on the other machine and the installation went on well. But when I run it I have the -200220 error "Device identifier is invalid".
Here is the par of the code where the error occure.
ErrDAQ=DAQmxCreateTask("", &gTaskHandleCmd); if (ErrDAQ!=0) { DAQmxGetErrorString (ErrDAQ, strErr, 256); MessagePopup ("Erreur DAQmxCreateTask", strErr); } ErrDAQ=DAQmxCreateDOChan(gTaskHandleCmd, "cDAQ9188-1585BFAMod1/port0/line0","MAFVoie1", DAQmx_Val_ChanPerLine); if (ErrDAQ!=0) { DAQmxGetErrorString (ErrDAQ, strErr, 256); Fmt (Entete, "Erreur DAQmxCreateDOChan MAF1 %d", ErrDAQ); MessagePopup (Entete, strErr); } ErrDAQ=DAQmxSetChanAttribute(gTaskHandleCmd, "MAFVoie1", DAQmx_DO_InvertLines, 0); if (ErrDAQ!=0) { DAQmxGetErrorString (ErrDAQ, strErr, 256); Fmt (Entete, "Erreur DAQmxSetChanAttribute MAF1 %d", ErrDAQ); MessagePopup (Entete, strErr); }
If some body has an idea
05-21-2013 04:33 AM
Hello,
Please check this document : http://digital.ni.com/public.nsf/websearch/001DA4DB6A31CF8886256D33006FA857?OpenDocument#200220
You have to be sure if your device is present with MAX or you should check if you have change the device ID.
Regards,
Celine
National Instruments France
05-21-2013 05:19 AM
It is working now. To solve the problem I have imported a nce file where I have put my chassis in the distribution kit.
When I have installed the soft with this new distribution kit it have installed the drivers.