Jump to content

Trigger Event from External Application


Recommended Posts

Hi all,

Any thoughts on the simplest way to trigger a LabVIEW event using an external script in Windows? I want to be able to poke my LabVIEW application and kick off a predefined code block. No need to pass any information/message.

 

I'm looking for something very passive, unlike, for example, a listening TCP socket.

 

Thanks!

Link to comment
Hi all,

Any thoughts on the simplest way to trigger a LabVIEW event using an external script in Windows? I want to be able to poke my LabVIEW application and kick off a predefined code block. No need to pass any information/message.

 

I'm looking for something very passive, unlike, for example, a listening TCP socket.

 

Thanks!

Simplest way is to use vbscript to press buttons on the FP.

  • Like 2
Link to comment

Even simpler:

 

Create a file or modify a file. Your LabVIEW program can check regularly on the 'last modified' timestamp. But as always, you have to know what you are doing. E.g. a FAT32-filesystem has a timestamp resolution of 2 seconds(!).

 

Sending simulated keystrokes is fine until Windows or some other application decides pop up some window. If you are lucky, you just miss an event (or rather all events from there on that is). If you are unlucky, you spend the night reinstalling your system because your script accidentally hit the OK button in a box asking to format your harddisk...

Link to comment
Hi all,

Any thoughts on the simplest way to trigger a LabVIEW event using an external script in Windows? I want to be able to poke my LabVIEW application and kick off a predefined code block. No need to pass any information/message.

 

I'm looking for something very passive, unlike, for example, a listening TCP socket.

 

Thanks!

 

As SDietrich mentioned, the pressing of a button can be intercepted by pop-up windows of any other application in the system. A slightly more involved possibility which still would work from vbscript would be to enable the ActiveX interface of the LabVIEW application and then control the application explicitly by invoking ActiveX methods of the LabVIEW server.

 

This post is part of a thread that discusses the possibility to control a LabVIEW VI from vbscript and the post contains even a small sample.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.