Jump to content

DLL's and Shared Variables


Recommended Posts

I'm using a LabVIEW VI to control a 3rd party application (3PA, for short).

 

This 3PA has a built-in scripting language that supports DLL calls.

 

I needed a way to pause the 3PA script and have it wait for LabVIEW to do something.

 

I wrote a LabVIEW DLL that uses a Shared Variable to pass a 'go-ahead' boolean between my master VI and the DLL, similar to an interrupt. The 3PA calls a DLL function that waits until the 'go-ahead' signal clears. My master VI sets the 'go-ahead' signal when it's ready for the 3PA to continue.

 

Everything seems to be working, but this was the first time I ever had to work with "network published" shared variables.

 

* How exactly does the DLL know which set of shared variables it should be using?

* Does it have a fixed path somewhere to the lvlib that contains the variables?

* Since these are network published variables, do I need to do anything to limit them to the localhost?

 

Thanks!

PC

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.