Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code -200088

I have a problem with DAQmx  version 8.3 (aqusiston card PCI-6133). I try use this function (in Delphi 7) DAQmxCreateAIVoltageChan(...) and I get error -200088. Anybody can help me? Thanks you
0 Kudos
Message 1 of 3
(3,809 Views)

That error code means
 
"Task specified is invalid or does not exist". 

Did you remember to create a task before creating an AI channel?

 
0 Kudos
Message 2 of 3
(3,792 Views)
Thanks, I solve this problem. If you use delphi you should write as folowing:
.....
var Task :PLongint;  Error :Longint
begin
  //function DAQmxCreateTask(taskName:PChar; taskHandle:PLongint):Longint; stdcall;       from  nicaiu.dll  
  Error:=DAQmxCreateTask('Analog Input', Task);
 // and now you can create AI channel
......
but this  code not working, solution is very simple
.....
var Task,  Error :Longint
begin
  //function DAQmxCreateTask(taskName:PChar; taskHandle:PLongint):Longint; stdcall;       from  nicaiu.dll  
  Error:=DAQmxCreateTask('Analog Input', @Task);
 // and now you can create AI channel
DAQmxCreateAIVoltageChan(Task,'Dev1/ai1','P0', DAQmx_Val_Coupling1_DC,10,-10,DAQmx_Val_VoltageUnits1_Volts ,nil);
......
 
0 Kudos
Message 3 of 3
(3,762 Views)