LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx issue

In order to run the encoder input channels in continuous sampling mode I am trying to use internal Counter output as a sample clock which I am giving it to the encoder as well as load cell tasks. Once I am running through NI max everything, it works fine but when I do it with my code it shows error of -200462. I am new to the encoder and the use of sample clock please guide me with this. Following zip files contain the pictures of the code and tasks made. If you want any other info, please revert me back.

0 Kudos
Message 1 of 2
(311 Views)

Hi sesinfo,

 

the error code is associated with an empty output buffer that should not be empty (because you want to output it). This happens when you start and output task before writing the data into the buffer. See: Error - 200462 - Generation cannot be started because the output buffer is empty. - NI Community

 

Now It is not clear to me where in you code this would happen. Can you tell me which Start Task this error is generated from? You can use highlight execution to watch the code run and see what throws the error.

 

Best regards

Leonard

0 Kudos
Message 2 of 2
(88 Views)