08-11-2011 01:55 PM
@joshe:
CLFN: Call Library Function Node.
I have a set of VIs with me for some of the functions I mentioned. I will try to post them tommorow, which might save time for you for implementing the DLL calls.This way would be more performance efficient, as LabVIEW doesn't have the need to calculate the positions of each and every control (Windows handles that stuff), and this way, you can have multiple controls created during runtime, of different datatypes.
08-25-2011 12:14 PM
FraggerFox,
Can you post the VI you mentiioned. I am getting ramped up to take a look at this stuff. Thanks
08-26-2011 03:33 AM
joshe wrote:
FraggerFox,
Can you post the VI you mentiioned. I am getting ramped up to take a look at this stuff. Thanks
I quickly made a set of VIs for you, the code is not cleaned up.
Follow the instructions on the front panel of the Main vi and you would understand the concept I was talking about.
You could also resize the dynamic controls if you want, for that you would need another Winapi call.
This is the most efficient method of dynamic control creation as it directly interacts with Win Layer.
Also, you can make vits for opening multiple instances of the same control.
02-10-2014 07:55 AM
Cool, I have done similar to bring 3rd party software into my LabVIEW application...
I had similar request in the past, and I created cluster with common controls and let user edit on-the-fly name, description, tipstrips, size position (best part was -> I could change boolean behavior -> on-the-fly...) and such while displaying only the requested type. Also I limited number of controls to just 10 (no reason just preference and you can run more instances of the same app. or stitch them together with WinAPI ). More advanced options (like custom image for true/false, cursor icons...) were striped later -> too many options...
-Artur
02-10-2014 08:58 AM
Can you post your code. I would be interested in seeing how this was implemented.
Thanks!
02-10-2014 09:15 AM
Not exactly clean extraction, but good to get the concept going...
Originally this program was built relatively quick to control digital or analog output, to provide simple tool to work with systems under construction/development.
Control Event for analog/digital output was generated in "New Value" event case, left blank here.
Known problems:
Developing Notes:
-Artur
Message was edited by: GriffinRU