Jump to content

TestStand + LabView via UIMessage events callback


frg

Recommended Posts

Hello,

I try to make application in LV which will start from TS and will receive callbacks from TS as standard UIMessage.

All examples which I found was when LV application started TS and then register callback. This is in “simple UI example”.

But I want to lunch panel after sequence in TS was started and then register callbacks.

Normally to register callback “Application Manager” is using, but I don’t know how to connect this control to TS context.

Also I try to use TS.IEngine obcject and connect this with TS via RunState.Engine but still nothing.

Could anyone help me to move next step?

This is my simple application example.

Thank in advance adn best reagrds.

PS: Sorry for my eng.

post-28294-0-43110300-1354882423_thumb.j

post-28294-0-35026400-1354882434_thumb.j

Link to comment

You can get a reference to the Application Manager from the Engine.GetInternalOption method. Then you can use the Application Manager reference to register for events.

post-3280-0-57209600-1354892759.png

However, just looking at it, it seems that your code should work too.

  • Like 1
Link to comment

Thank you Jeff for this answer. This mechanism is working but without this “Automation Open” command. Without this, everything is working now. But I can’t figure out if and when this “Automation Open” command is need. Is it possible to get reference to TS engine without running seq? That’s mean, I got S open but none seq is running. Then I run VI and after this I start TS seq. maybe this command is need for it? I try many variants to get ApplicationMgr reference with this mechanism, but always fail.

If you can take a look for my VI I will be grateful. Without green box, everything is working.

Strange is that even without AppMgr ref, I got correct information about "version" form IEngine ref.

Thank you in advance and best regards.

post-28294-0-06654600-1355139459_thumb.j

Link to comment

You're right, the Automation Open function is not needed when the existing Engine is passed in from TestStand.

To run the VI standalone (i.e., not called by TestStand), you would need the Automation Open in order to get an Engine reference. Have you tried passing False to the "open new instance" input of Automation Open? I haven't tried it, but in that case I would expect you would get a reference to the existing Engine object that was created by the Sequence Editor (or UI). With a value of True, you are creating a new Engine instance for which no Application Manager exists.

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.