11-03-2020 01:48 PM
Hello
I need to programmatically save the VI icon with the connector pane. I found that this can be done using VI Scripting.
https://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/vi_getconpaneimage
Now I have never used VI scripting and have no clue and no time 🙂
Has anybody an example on how to do this?
Thanks
Solved! Go to Solution.
11-03-2020 02:05 PM
Go to your LabVIEW install, then open the Options window under the Tools menu. Go to the "VI Server" category, and in it check the box to show VI scripting functions, properties, and methods.
Then go to the VI you want the connection pane image from, put down a "This VI" VI server reference on its block diagram. Then wire that reference into an invoke node. When you click on the node to select which method to invoke, select "Get Conpane Image", and go from there.
11-03-2020 02:21 PM
Wow. That was easy 🙂
Thanks a lot!
11-04-2020 01:36 AM
You should mark Kyle's post as the solution, not your own.
11-04-2020 03:34 AM
Oh sorry.I was in a hurry and clicked the wrong button. Can I change this?
11-04-2020 03:48 AM
Hi DAckermann,
@DAckermann wrote:
Oh sorry.I was in a hurry and clicked the wrong button. Can I change this?
See the message "Options": the same place where you "Accept as solution"!