Good morning,
I am using a cDAQ with 2x 9401 modules (slots 5&6) and 1x 9233 module (slot 4) attempting to record some vibration data from our machines. I have configured LV to programatically read the active device, detect these modules above and to 'adjust' the task according to slot # and device name. The sub VI 'CreateDIOTask' (attached) is responsible for these actions and creates 4 tasks as a result; the tasks are for engine speed (ctr0 mod5); wheel spd (ctr1 mod5); a DI line (P0.0 Mod 6); and a DO line (P0.4 Mod6). The CreateDIOTask sub seems to work (no errors when exectued alone) but when I run the top level VI (TLVI-031......, also attached) LV returns:
Error -201133 occurred at DAQmx Start Task.vi:4
Possible reason(s):
Measurements: Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.
If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.
Device: Dev12Mod6
Digital Port: 0
Lines: 0
Task Name: TLVI-031_SeatPadAccelDO
Any help would be greatly appreciated.
Thanks,
Tom