08-28-2024 02:58 AM
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.
04-30-2025 10:47 AM - edited 04-30-2025 10:53 AM
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