LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Erreur -200220 niDAQmx

 

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

 


 

0 Kudos
Message 1 of 3
(3,305 Views)

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

0 Kudos
Message 2 of 3
(3,281 Views)

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.

 

0 Kudos
Message 3 of 3
(3,276 Views)