07-14-2006 01:38 PM
When a task is implicitly transitioned backwards, it returns to the state of the task prior to the last operation that resulted in a forward state transition
2) Operations That Require State TransitionsYou implicitly transition the task to a new state when you perform an operation that requires that the task be in a specific state and it is not. If this occurs, the task is implicitly transitioned to the required state. Some operations that require state transitions include the following:
[snip]
Calling the Write function/VI commits the task. If the value of the Auto-Start parameter is True, the task also is started. For more information regarding the auto-start behavior of write operations, refer to When Should You Use the Start Function/VI?
The way I read this, I should be able to use task->Control(DAQmxTaskStop) to return to the commited state from running, provided I started the task manually. If I try this, I get the following exception:
You only can get the specified property while the task is reserved, committed or while the task is running. Reserve, commit or start the task prior to getting the property.
Property: CNiDAQmxStream::TotalSamplesGeneratedPerChannel
Task Name: MyTask
Status Code: -200983
.
07-14-2006 02:07 PM
07-17-2006 06:17 PM
07-17-2006 06:19 PM
07-18-2006 12:52 AM
07-18-2006 09:31 AM