jmax007 Posted June 1, 2010 Report Posted June 1, 2010 I am using the "open VI reference" to call a vi like a pop-up window. like shown: 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 Quote
Francois Normandin Posted June 1, 2010 Report Posted June 1, 2010 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. Quote
jmax007 Posted June 1, 2010 Author Report Posted June 1, 2010 Thanks. That will work perfectly. Not sure how I missed this? I guess I'll mark this as the new thing I learned today:) Quote
PaulG. Posted June 2, 2010 Report Posted June 2, 2010 (edited) I used to use invoke node Ctrl Val.Set but Francios' warning about it not scaling well makes a lot of sense. I would lean more towards the functional global. Edited June 2, 2010 by PaulG. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.