hello,
I was wondering how I use the Events "Datalogger.OutputComplete" and "Datalogger.OutputError?"
I want to use them to indicate success or failure of the transfer, but I can't seem to figure out how to use these events.
thanks,
Phil
Datalogging question
- drphil69
- Posts: 139
- Joined: Wed Mar 02, 2011 5:59 pm
- bseidl
Re: Datalogging question
Hi drphil69
You can use those events as transitions in state machines.
example:
You can have a state that fires the Datalogger.Output action. Then you can have two transitions that branch off that state. One transition is mapped to the Datalogger.OutputComplete event and the other one is mapped to the Datalogger.OutputError event. In this way, after the output action is fired, when the output is complete the Datalogger.OutputComplete event is fired and you can go to the next appropriate state, or if there is an ouput error the Datalogger.OutputError event is fired and you can go to a different state and handle the error.
Brad Seidl
Test Engineer
You can use those events as transitions in state machines.
example:
You can have a state that fires the Datalogger.Output action. Then you can have two transitions that branch off that state. One transition is mapped to the Datalogger.OutputComplete event and the other one is mapped to the Datalogger.OutputError event. In this way, after the output action is fired, when the output is complete the Datalogger.OutputComplete event is fired and you can go to the next appropriate state, or if there is an ouput error the Datalogger.OutputError event is fired and you can go to a different state and handle the error.
Brad Seidl
Test Engineer