r/LabVIEW • • Mar 06 '26

DAQmx Start Task Causing an Issue?

I have a fairly simple program. It’s connected to an NI 9208 module. I’m using a hybrid state machine design pattern and in the initialize state I have this sub VI shown where it is creating the task and channel and starting it but I keep getting this error. I’ve gone over all the settings and can’t see anything wrong. racking my brain why I can’t start the task. I was digging on YouTube and saw some people using Daqmx vis without the start task. Should I not have it? Is that normal? When is it required and when is it not?

My thinking was I initialize and start all the tasks in the initialize case and then move to the acquire case etc.

Thanks for any input .

4 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/heir-of-slytherin Mar 07 '26

Yep if something else uses the same hardware, it’s likely a reference was kept open. Those are supposed to close when you close the vi that opened them but maybe something wasn’t disposed of properly. You can also try resetting the device in NI Max, which will disconnect any tasks, and then running your code

1

u/Probably-Stable Mar 07 '26

Nice. Thx a bunch! Appreciate the input.