Michael Aivaliotis Posted February 25, 2005 Report Share Posted February 25, 2005 The LabVIEW scripting Forum is a place to discuss and investigate ways of using LabVIEW to programmatically generate LabVIEW code. In other words you can write a VI that will (when executed) create another VI. You may have seen some of this functionality in use already. NI uses this capability internally in some of their code generation tools. For example, if you right-click on a DaQmx task node you can select an option that builds a code example or a configuration VI. This wizard uses special undocumented features of LabVIEW to do this. VI scripting is a powerful new LabVIEW feature based on existing VI Server technology. Using the scripting API, you can create new VIs, create new front panel and block diagram objects, modify existing front panel and block diagram objects, or inspect existing front panel and block diagram objects. VI scripting allows you to write a VI to programmatically accomplish almost anything you could accomplish in LabVIEW's interactive editor. VI scripting is not advertised or available in the LabVIEW help files that are distributed with LabVIEW. This could be for many reasons. Some of these are: - NI has not finalized the implementation. - The implementation is hard to use and NI wants to make it user friendly. - NI has not decided to make it a publicly available product. - The existing implementation contains many bugs. - NI does not want to burden the support system with issues related to an unreleased product. Because of the previous statements, you are on your own: DO NOT contact NI for support on VI Scripting. DO NOT use these features for released code or applications to your customers. DO NOT count on the implementation to stay the same for future releases of LV. It will change and your code will not be upgradable. And Finally--> Your computer will explode, you will lose all your valuable data and local law enforcement will come knocking on your door. So BE WARNED! Do not blame NI or anyone here at the LAVA Forums for any problems that may arise from using these features. The Details: VI Scripting is exposed to you via methods and properties. To enable these methods and properties, you must add the following line to your labview.ini file. This file is located at: C:\Program Files\National Instruments\LabVIEW 7.1\labview.ini Add the following line: SuperPrivateScriptingFeatureVisible=True After you restart LabVIEW, place a property node down and click on the various properties. You will notice more items in your list. One more thing. To expose the "create object" primitives shown below, you must install VIPM and install the package called: ogmnu_appcontrol_plus *Update* Others have also had success with the following ini entries (don't know what they do): SuperSecretPrivateSpecialStuff=True *Update* Adam Rofer has made some interesting discoveries on some scripting related information. He calls them XNodes. Good work Adam. :thumbup: Here is the website: http://xnodes.lavag.org Quote Link to comment
Rolf Kalbermatter Posted August 19, 2009 Report Share Posted August 19, 2009 *Update* Others have also had success with the following ini entries (don't know what they do): SuperSecretPrivateSpecialStuff=True It adds properties and methods to the LabVIEW VI server hierarchy, mostly application related and presumably project and other such stuff, that NI considers to dangerous, untested, or giving to deep insight into LabVIEW. It is related to scripting but not the same thing. Rolf Kalbermatter Quote Link to comment
battler Posted August 19, 2009 Report Share Posted August 19, 2009 It adds properties and methods to the LabVIEW VI server hierarchy, mostly application related and presumably project and other such stuff, that NI considers to dangerous, untested, or giving to deep insight into LabVIEW. It is related to scripting but not the same thing. Rolf Kalbermatter I thought you all were joking about the: SuperPrivateScriptingFeatureVisible=True Based on this does mean that opening a file by double-clicking on it while your main app is open... is not possible? Cheers, Battler. Quote Link to comment
Jon Kokott Posted February 17, 2010 Report Share Posted February 17, 2010 Editing thie Labview.ini file doesn't seem to be working for me (I'm not seeing the private methods for the block diagram.) Is there anything else I need to do to enable VI scripting? Using Labview 8.6, edited the "C:\Program Files\National Instruments\LabVIEW 8.6\LabVIEW.ini" Addtionally I've tried to enforce launching using that ini file (it should be the default anyway...) from command Prompt: G:\>"%ProgramFiles%\National Instruments\LabVIEW 8.6\LabVIEW.exe" -pref "%CURRENTDIR%\BPR 2-12-2010.ini" Are there any Labview.ini preferences that would conflict with this one? I've edited that file a number of times in the past. ~Jon Attached Labview.ini file (renamed labview.txt) LabVIEW.txt Quote Link to comment
Antoine Chalons Posted February 17, 2010 Report Share Posted February 17, 2010 Hi Jon, Time has passed and LabVIEW API has been officially released by NI, see here. Quote Link to comment
Jon Kokott Posted February 17, 2010 Report Share Posted February 17, 2010 Hi Jon, Time has passed and LabVIEW API has been officially released by NI, see here. Thanks, installed activated and working properly. ~Jon Quote Link to comment
Antoine Chalons Posted February 17, 2010 Report Share Posted February 17, 2010 Thanks, installed activated and working properly. ~Jon Cool! Welcome to the club! I strongly suggest you join the LabVIEW API group on NI community (if you haven't yet), it's full of interesting discussions, ideas and examples. Have fun. Quote Link to comment
Chris Bolin Posted October 15, 2010 Report Share Posted October 15, 2010 Hey Michael - Any chance we update this post to point to the download for 8.6 and 2009, and mention Scripting is included by default in 2010? Quote Link to comment
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.