02-23-2015 01:10 PM
I'm trying to gain access to subpanel controls (in an executable) via VI server but it doesn't seem to be allowing me to get a valid reference to the inserted VI (1026: VI Reference is Invalid). If I use the exact same code in the executable itself, it works just fine.
Attached is the executable and the VI that I'm using to try and retrieve a reference to the subpanel's VI.
Any ideas why this is happening?
Solved! Go to Solution.
02-24-2015 12:13 AM
02-24-2015 10:17 AM
I'm currently in the process of reading your blogs about subpanels but in the mean time, here is the code snippet of my executable. At the bottom, in the conditional disable diagram, is the code that is in the VIServer_TestingSubpanels.vi.
I've tried both reentrant and non-reentrant settings for the subpanel. The subpanel in the attached executable above is reentrant.
02-27-2015 10:46 AM
After reading more on subpanels and reading your blog, I'm still unclear as to why I'm having an issue or what might be a method to work around the issue.
Maybe a little context will help:
The executables that I create will be manipulated by an external program created by another group within the company. So, what they have done is create a DLL that uses the VI server to access front panel controls and indicators from a LabVIEW-built application. This currently works just fine for anything that is on the main VI's front panel. But, what I am trying to do is create hardware specific subpanels for the controls that actually do the interfacing with the hardware. There are several different pieces of hardware with which we will interact, each having its own subpanel in the same main application. So, they need to be able to 1) find which VI is running in the subpanel programmatically and 2) interact with that subpanel via VI server within the DLL.
Any thoughts are definitely appreciated.
02-27-2015 01:08 PM
02-27-2015 01:49 PM - edited 02-27-2015 01:54 PM