From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-02-2014 11:22 PM - edited 04-02-2014 11:23 PM
Hi all,
I have successfully used something like this to programatically add shared variables to an LVLIB (the code assumes that the library associated with the Container Reference contains at least one variable):
An example output would be:
(I notice that there is no way to specify the data type of the variable, and LabVIEW creates a DBL variable in the LVLIB by default.)
However, if Container Reference is associated with a "User-Defined Variables" container, then I get Error 1 at the Invoke Node ("LabVIEW: An input parameter is invalid"). A example output is:
Questions:
Thanks in advance!
04-03-2014 02:49 PM
What is the scope of your project? How will you be using these UDV's?
11-29-2019 02:11 AM
Hi!
Did you find any solution?
I have exactly the same problem....
Thanks for your answer...
11-29-2019 02:16 AM
@kabooom wrote:
Did you find any solution?
Unfortunately, I didn't find a way to add UDVs to a LabVIEW project via VI Scripting, and I stopped trying.
11-29-2019 02:50 AM
thanks for your quick answer...
Nobody from NI ? or a labview champion here ?
For my test i have something like 256 user variable to create, and i thought it will be easier doing that programatically... I don't understand why u can't do that in the project , there is a multiple variable editor, but you can't add multiple variable at once, you have to create them one by one... maybe it's linked with the fact you can't do that programatically...