Jump to content

Replaying Captured Front Panel Events


T Clancy

Recommended Posts

Hi,

Just wondering if anyone knows anything about capturing events so that they can be replayed in the correct sequence and time order. So

that it will replay the application in the exact same way the previous user used the application (No text input, just clicks representing touch screen user input).

Thanks

Tim

Link to comment

Just wondering if anyone knows anything about capturing events so that they can be replayed in the correct sequence and time order. So

that it will replay the application in the exact same way the previous user used the application (No text input, just clicks representing touch screen user input).

One example way to approach it could be:

If you have a UI and a Controller

And the UI sends messages to the Controller for each button press

And for each button press, the action was also logged to disk

Then you could read the file back and and send the messages directly to the Controller

Link to comment

You could register dynamic events for the controls you want to watch or record. That way you just have to write a "recorder" VI, no need to change anything in the VIs you want to watch. Put the events received in a queue or save them to a file and you have anything you need to replay the events.

post-17093-0-50914700-1291279928_thumb.p

Link to comment

There is a well-established design pattern to do exactly what you want. See the Memento Pattern in GoF Design Patterns. Also look at how you can combine this with the Command Pattern. You can support undo operations; the different commands and their parameters can be of arbitrary complexity, and can each have its own parameters. I highly recommend you take a look at this proven approach.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.