Jump to content

Passing VISA resource name


Recommended Posts

I am using the "open VI reference" to call a vi like a pop-up window. like shown:

post-15120-127542811264_thumb.jpg

In the vi that I am calling, "Debug_Output_Display.vi" I am connecting to a com port. I would like to be able to specify which COM port to choose.

This is all part of a much bigger program that has one front panel where the COM port is selected.

How can I pass this information to the "Debug_Output_Display.vi"?

I am not sure how to do this?

Any help would be appreciated.

Thanks

Jamie

post-15120-127542811264_thumb.jpg

Link to comment

How can I pass this information to the "Debug_Output_Display.vi"?

Hi Jamie,

Among other things, I'd suggest initializing a functional global variable with the COM port value you want in your main program, and then access it from your dynamically called VI.

You could also use the "Control Value: Set" method (VI Server) but that doesn't scale well since it's a methodcalled by label text... Change the label text in a future version of "Debug_Output_Display.vi" and you break your functionality without any way to trace it with a broken arrow.

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.