Jump to content

Change values from a Sub-Vi


Recommended Posts

Hi,

I use an instrument driver to communicate over RS232 with a Keithley 2000.

Do someone know how can I add a control to my Top-Frontpanel which modifies the baud rate.

My problem is, that the baud rate variable is located in a Sub-Vi.

P.S.:Perhaps, a global variable can help me???

Link to comment

Hi,

On your sub-VI which has the baud-rate Control, connect this Control to the connector pane making it one of the inputs. (If the baud-rate is a Constant on the diagram, you will replace it with a Control on the front-panel).

Then, in your top-VI, add a Control to the panel and wire its terminal to the baud-rate input you just created on the sub-VI. (Or, an easier option is to right-click on the baud-rate input you created and select Create Control. This will add the Control to the top-VI's front panel.)

Hope this helps.

Khalid Ansari

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.