How to use a multiple boards (6321/6323) analogical acquisition task with simultaneous analogical generation task using the same boards (Labwindows CVI10)

Subject : it seems impossible to run a multiple boards analogical acquisition task with one or several analogical generation task using the same boards.
NI Configuration : Dev1 = Dev2 = 6321 boards
Development environnement : LabWindows CVI 10
Source code for analogical acquisitino task :
       DAQmxCreateTask("",&AIRecordingtaskHandle);
       DAQmxCreateAIVoltageChan(AIRecordingtaskHandle,chan,"",DAQmx_Val_NRSE,min,max,DAQmx_Val_Volts,NULL);
       DAQmxCfgSampClkTiming (AIRecordingtaskHandle, "", rate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan);
       DAQmxGetTaskAttribute(AIRecordingtaskHandle,DAQmx_Task_NumChans,&gNumChannels);
Chan = "Dev1/ai0, Dev1/ai1, Dev1/ai2, Dev2/ai1"
Source code for analogical generation taskS :
       DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC0));
       DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC0, chan, "", min, max,DAQmx_Val_Volts, ""));  // chan vaut Dev1/ao0
       DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC1));
       DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC1, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev1/ao1
       DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C2_DAC0));
       DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C2_DAC0, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev2/ao0
At the first DAQmxReadBinary call attempt, the system shows an error (see attached document) 
What we understand about that error : it is impossible to run the two set of tasks (ai and ao) using ressources from both Dev1 and Dev2 in the set of tasks because it is not allowed to use the same Reference Clock for that.
The question is : is there a way to to that without having that kind of message?
We tried different combinations :
- Using only one ao task (on Dev1/Dac0) : same error
- Not using any ao task (only the ai task) : no error
- configuring the ai task with only channel from Dev1 : no error 
- Using "/Dev1/ai/SampleClock" as internal clock for the ai task and "/Devk/ao/SampleClock" for each ao task (k standing for "1" or "2" depending of the ao task we consider) : error
Thanks a lot.
Pièces jointes :
MsgErreur NIDAQmx.JPG ‏38 KB

doublon
Valentin
Certified TestStand Architect
Certified LabVIEW Developer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Travaux Pratiques d'initiation à LabVIEW et à la mesure
Du 2 au 23 octobre, partout en France

Similar Messages

Maybe you are looking for

  • Report for PO conditions

    Hi All Is there any report where I can get conditions and each condition amount against each PO. Regards Satish Kumar

  • ORA-28500: [ODBC SQL Server Driver][SQL Server]0 is invalid sqlstate

    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server] 0 is invalid sqlstate. valid range is from 1 to 127. (SQL State: 00000; SQL Code: 2756) I u

  • Can't Uninstall oracle 8 products..

    Hi, I want to upgrade my oracle db from 8 to 9i. For that I have done the following steps.. I have downloaded oracle 9i universal installer I stopped all oracle services which are running in my system belong to oracle 8 I started installer exe. click

  • Uploading photos as maximum resolution...please help

    My Iphone 4S camera used to always ask if I wanted my pictures uploaded in maximum resolution, large, medium or small.  Now it always loads them as medium.  How to do I reset that function so that it loads them in maximum resolution.  Or is there an

  • Why is my system swapping memory?

    Hi.  I've got 8gb of ram, yet even though my ram usage is never anywhere close to 100%, I still find now and then that my swap is being used.  Why is this?  I find that once I start swapping, performance takes a dump.  If I turn the swap off, all wor