LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with multifuction

When i use two DaqMx assistants, one for input and the other for output i get this error:

 

Measurements: Write cannot be performed when the task is not started, the auto start input to DAQmx Write is false, the Sample Timing Type is something other than On Demand, and the output buffer size is zero.

Call DAQmx Start before DAQmx Write, set auto start to true, modify the Sample Timing Type, or change the output buffer size.

How can i fix this problem?

0 Kudos
Message 1 of 4
(2,668 Views)

Hi Coolavr,

 

Thanks for the post. 

 

Could you please attach the code setup your using?

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 4
(2,642 Views)

Hi coolavr,

 

You sould not have any problems using two simultaneous DAQmx assistants one for input and one for output.

 

You should remove your assitants and add new fresh ones just to make sure everything is correctly set up. I attach a VI that you could try on your system, just make sure you select your DAQ device on both assistants otherwise you will get an error message as LabVIEW will try to locate my DAQ device. It is just a simple input/output VI that runs with no problem in my PC and should let us know if your device is working fine.

Salvador Mikel
National Instruments
Ingeniería de Aplicaciones
www.ni.com/soporte
0 Kudos
Message 3 of 4
(2,632 Views)

--- If after replacing your Assistans you are still getting error messages, then you should try to set up your DAQ Tasks manually. I attach a VI that shows how to create DAQ tasks Manually.

Salvador Mikel
National Instruments
Ingeniería de Aplicaciones
www.ni.com/soporte
0 Kudos
Message 4 of 4
(2,629 Views)