11-22-2006 02:05 PM
11-22-2006 05:24 PM
01-05-2007 04:09 PM
01-30-2007 04:39 PM - edited 01-30-2007 04:39 PM
Message Edited by Jens_DE on 01-30-2007 04:50 PM
01-30-2007 07:23 PM
Hi Vince,
I had the same problem when i tryed that code (dont know why, but i got only ones in the data array). I realized i had to put this line before starting the task.
err = calllib('ni','DAQmxTaskControl',task1,DAQmx_Val_Task_Commit);
Hope it works for you too.
Peter
02-01-2007 11:50 AM
Peter,
I tried adding that line of code and got an error in MATLAB
??? Error using ==> calllib
Parameter must be a number.
Error in ==> TestDAQCard2007 at 73
err1 = calllib('nicaiu','DAQmxTaskControl',taskh1,DAQmx_Val_Task_Commit);
I've attached my code (Andreas' code with minor changes). I appreciate the help.
02-13-2007 05:58 PM - edited 02-13-2007 05:58 PM
Jens,
I get error code -200089 when I try to create the task, then receive -200088 for what looks like every other operation I try to perform.
Again, using MATLAB R2006a and NI USB-9162.
Message Edited by Vince B on 02-13-2007 06:01 PM
02-14-2007 11:09 AM
02-14-2007 11:27 AM
02-14-2007 11:55 AM