"Shared Variable Control" combo box on Front Panel is empty after Build

Hello;
I have a project using shared variables and the DSC module. I am working on building a .exe application now that the project seems to run well.
I have several places on the front panel where I have shared variable controls. These combo boxes allow the user to click the drop down button and browse the list of shared variables in the project, as well as "browse". When I run the VI from the project, the combo boxes fully populate with all of the deployed tags in the project (I have only one .lvlib in the project).
When I build the project and run the executable, the only item in the combo box list is the "browse..." selection. I can click on that and browse to my variables, but it is much more time consuming to do so than to simply select the desired variable from the drop down list.
So, how can I populate the list of shared variables from a particular library ino the Shared Variable Control combo box in a project build?
A couple of things I have done to try to esolve th problem are ensure that the "Enable Enhanced DSC Run-Time Support" box is checked in the advanced tab of the build window, added the appropriate .lvlib file to the "Dynamic VI's and SUpport Files" window under the "Source Files" tab of the build window, and properly deployed the tag library programmatically in the project.
Thanks,
Michael Hampson
Michael Hampson
President
XL Automation, Inc.

Hi Michael,
What you see in the development environment is to make it easier for developers, and as far as I know, there's no way to automatically populate the shared variable control during run time in an executable.  The reason being that the shared variable control would have no way to know which process it should be using to get the variables from.  The attached vi demostrate how you can acquire the list of shared variables in a process.  You can also set the default values of the shared variable control by right clicking it on the front pannel, go to Data Operations->Make Current Value Default.  I can do some more research on this, but I'm about 95% sure that there's no way to convert the array of shared variables to populate the shared variable control, as the shared variable control is a special type of xControl.
Yi Y.
Applications Engineer
http://www.ni.com/support
Message Edited by Yi Y on 07-02-2007 01:27 AM
Attachments:
SharedVariableList.vi ‏15 KB

Similar Messages

  • Can't open/access Shared Variable Properties Dalog Box

    I've just upgraded to LV 8.6 from 8.5.  Now I can't open up the Shared Variable Properties Dialog Box.  In the Project Explorer, I expand the shared variable library, select the shared variable, right-click on it to get the pop-up menu, select Properties, nothing happens.  The same is true when I right-click on the shared variable library or My Computer and select New>>Variable.
    On another computer that I upgraded to LV 8.6, I can do the same things and get the dialog box, albeit it looks different in 8.6 than it did in 8.5. 
    There were no errors reported in upgrading these computers.  Any ideas as to what is wrong?

    I've tried re-installing LV 8.6 from the DVDs sent to me.  I get the following errors:
    Error 1335. the cabinet file 'mib.cab' required for this installation is corrupt and cannot be used. This could indicate a network error , an error reading from the CD-ROM, or a problem with this package. -  I responded with 'ignore'
    The NI Assistant Framework LabVIEW Code Generator 8.5 installaion has failed with the following error.
    Internal Error 2350.
    Continue? - I responded with 'yes'
    LabView installs but I still can't get access to the dialog box.

  • How to modify a combo box for touch panel operation?

    Hi, 
    I'm developping a touch panel controled application.
    The first step of the application is user log-in. My application has a small database of names that the user can access via the drop down menu of a combo box. 
    My problem is that the arrows and the slider of the vertical scroll bar are way too small to be fingers-operated:
    Is there a way to modify the size of this scrollbar so that it's not too small for the operators' fingers?
    Best regards,
    peper

    Hello peper,
    As far as I know this is not directly possible (a least not with the control editor).
    If you want to, you could also create your own "adapted" control yourself through an XControl.
    This one can then (for example) combine a name input, a button and a listbox (with a big vertical scrollbar).
    Or is this too far fetched?
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Saving the Control Values on a Front Panel

    I am creating a VI in which I have approximately 10 front panel controls that can be changed by a user. Instead of entering the same values over an over again, I would like to provide the user the option to save a set of control values that can then be loaded the next time around via a drop-down box. Before I began I just wanted to see if anyone had done anything similar. I was stumped as to how to approach it. Any suggestions?
    Matt

    Matt,
    You can also use a datalog file. LabVIEW can write and read clusters to a file, and as long as the cluster don't change you should be fine.
    Basically your code would grab the value of each control, bundle it into a cluster and save that cluster to a file. For reading, you read your cluster from the file and get each individual value to drop it in the right control.
    I'm sure there are some shipping examples on this too.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.

  • How to move NI hypertrend control around on Labview front panel

    Hi everyone,
    Please I would like to know if the NI hypertrend control from the DSC pallette can be draged across the front panel and how to do it.
    Once I put this control on the front panel, it just stays where I put it and would not allow me to move it around. 
    I will appreciate any suggestion on this.
    Thanks.
    Solved!
    Go to Solution.

    Left click above left of it> hold and drag a box around it. This selects it and you can drag it.This works for me.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Creating "Control Combo Box " Relation with data block

    Hi all dears
    i am switching from C# to oracle developer for joining gulf net software house, i have a problem regarding master detail data
    the senerio is
    "List items" control Filled programatically as under shortly:-
    rg_id := create_group_from_query('myrg', 'select dname a, dname b from dept');
    populate_group(rg_id);
    populate_list('mylist', rg_id);
    using this i fill my combo box during new form instance trigger
    i have created a datablock emp through wizard which can show 10 record.
    now
    Problem 1
    i want to show records on form when user select any dept from combo box.
    Problem 2
    if i create group from query and in select statement is like this "select dname, dpetno from dept" the record group is created successfully but i am unable to populate_list due to different data type colums in record group how i will populate list so that List items Labels are department name and value is department no
    Thanks in advance for persual

    Hi dears all
    I have solved this problem my self
    1. select dept name form combo box and the data block shows the emp's of concern depat
    solution
    create a data block of emp table through wizard
    create its table view and show 10 records
    go to datablock i consider its name "emp" datablock properties
    in Where clause condition specify deptno = : my_combo_box;
    now go to combo box when item changed event
    go_bolck("emp);
    execute_query;

  • How to create control dynamicall​y while front panel fly using Xcontrol or anyothere options but without scripting tools

    Hello friends
               I have one doubt How to create control dynamically while front panel fly using Xcontrol or anyothere options but without scripting tools.I need to create the controls while vi is running.For example I need to create one Boolean  while VI was Fly and i need one Examples it is easy to understand.
    Jayavel

    You must be using a different dictionary than the rest of us.
    You can't dynamically create controls while a VI is running.   (If I'm mistaken, then I'm sure someone else can jump in and say how it can be done.)
    Do you have a finite number of controls you could possibly need?  What you can do is create enough controls of the type you need ahead of time.  At the beginning of your program, you hide all of those controls.  As you need to create a control, you make it visible using property nodes.  There are numerous properties you can set at run time suce as ranges, colors, captions, ...  Of course you can't wire these controls to any other bits of code ahead of time since at that time, you haven't defined what you want each one to actually control.  But if you use an event structure to detect when the values of the controls have changed, you can then programmatically pass the data off to other parts of your code using queues.  The architecture can get complicate quite fast, so you may want to look through Ben's Action Engine Nugget and other related threads for how to create mechanisms for using these controls.  Perhaps storing queue reference numbers or assign user events to each one.

  • Sizing 50 controls/indicators on the front panel to look similar

    Hello
    I have 50 bollean rectangular indicators on the front panel. For some reason the sizes of few indicator are slightly different than the others. If I resize them using mouse it oversizes it. Cant think of an intuitive method to achieve this.
    Any ideas!
    Kind Regards
    Austin
    Solved!
    Go to Solution.

    You can also create a 1D or 2D array of indicators in which case they'll be as big and the handling might be easier ... although you cant place them as freely.
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Migrating large project from DSC 7.1 to LabView 2009 Shared Variables ... What's the next step after recreating my variables?

    I am in the process of migrating a large distributed (multi-workstation) automation system from the LabVIEW 7.11 DSCEngine on Windows XP to the LabVIEW 2009 Shared Variable Engine on Windows 7.
    I have about 600 tags which represent data or IO states in a series of Opto22 instruments, accessible via their OptoOPCServer. There are another 150 memory tags which are used so the multiple workstations can trade requests and status information to coordinate motion and process sequencing.  Only one workstation may be allowed to run the Opto22 server, because otherwise the Opto22 instruments are overwhelmed by the multiple communications requests; for simplicity, I'll refer to that workstation as the Opto22 gateway.
    The LabVIEW 2009 migration tool was unable to properly migrate the Opto22 tags, but with some help from NI support (thank you, Jared!) and many days of pointing and clicking, I have successfully created a bound shared-variable library connecting to all the necessary data and IO.  I've also created shared variables corresponding to the memory tags. All the variables have been deployed.
    So far, so good. After much fighting with Windows 7 network location settings,  I can open the Distributed System Manager on a second W7/LV2009 machine (I'll refer to it as the "remote" machine henceforth) and see the processes and all those variables on the Opto22 gateway workstation. I've also created a few variables on the remote workstation and confirmed that I can see them from the gateway workstation.
    Now I need to be able to use (both read and write) the variables in VIs running on the remote workstation machine. (And by extension, on more remote workstations as I do the upgrade/migration).
    I have succeeded in reading and writing them by creating a tag reader pointed at the URL for the process on the Opto22 gateway. I can see a way I could replace the old DSC tag reads and writes in my applications using this technique, but is this the right way to do this? Is this actually using the Shared Variable Engine, or is it actually using the DataSocket? I know for a fact that attempting to manipulate ~800 items via Datasocket will bog down the systems.
    I had the impression that I should be able to create shared variables in my project on the remote workstation that link to those on the Opto22 gateway workstation. When, however, I try to browse to find the processes on that workstation, I get an error saying that isn't possible.
    Am I on the right track with the tag reader? If not, is there some basic step I'm missing in trying to access the shared variables I created on the gateway workstation?
    Any advice will be greatly appreciated.
    Kevin
    Kevin Roche
    Advisory Engineer/Scientist
    Spintronics and Magnetoelectronics group
    IBM Research Almaden

    I have found the answer to part of my question -- an relatively easy way to create a "remote" library of shared variables that connect to the master library on my gateway workstation.
    Export the variables from the master library as a csv file and copy that to the remote machine.
    Open the file on the remote machine (in excel or the spreadsheet app of your choice) and (for safety's sake) immediately save it with a name marking it as the remote version.
    Find the network path column (it was "U" in my file).
    replace the path for each variable (which will be either a long file path or a blank, depending on the kind of variable) with \\machine\'process name'\variable name
    where machine is the name or ip address of the master (gateway) workstation (I used the ip address to make sure it uses my dedicated automation ethernet network rather than our building-wide network)
    and process name is the name of the process with the deployed variables visible in the Distributed System Manager on the gateway machine.
    NOTE the single quotes around the process name; they are required.
    The variable name is in the first ("A") column, so in Excel, I could do this for line 2 with the formula =CONCATENATE("\\machine\'process name'\",A2)
    Once the formula worked on line 2, I could copy it into all the other lines.
    Save the CSV file.
    Import the CSV into the remote library to create the variables.
    Note: at this point, if you attempt to deploy the variables, it will fail. The aliases are not quite set properly yet.
    Open the properties for the first imported variable.
    There is probably an error message at the bottom saying the alias is invalid.
    In the alias section, you'll see it is set to "Project Variable" with the network path from step 4.
    Change the setting to "PSP URL" with the same path and the error message should disappear.
    Close the properties box, save the library, and then export the variables to a new CSV file.
    Open the new CSV file in Excel, and scroll sideways to the NetworkrojectBound field.
    You'll notice it is False for the first variable, and true for the rest. Set the field FALSE for all lines in the spreadsheet.
    Scroll sideways... you'll notice there are two new columns between NetworkrojectPath and Network:UseBinding
    The first one is NetworkingleWriter; it should already be FALSE for all lines.
    The second one is Network:URL. That needs to be set equal to the value for each line of NetworkrojectPath.
    You can accomplish this with a formula like in step 4. In Excel it was =U2 for line 2, and then cut and paste into all lines below it.
    There is a third new field, Path, which should already be set to the location of the variable library. You don't need to do anything with it.
    Save the edited CSV file.
    Go back to the remote library, and import variables from the just-edited remote library CSV file.
    Once you have imported them and the Multiple Variable Editor opens, click on done.
    You should now be able to deploy the remote variable library without error. (Make sure to open the Distributed System Manager and start the local variable engine. It took me a few failures before I realized I had to do that before attempting a deployment).
    Voila! You now have a "remote" library of shared variables that references all the shared variables on the master machine, and which should be deployable on other machines with very little difficulty.
    It actually took longer to write out the process here than to perform these steps once I figured it out.
    Kevin Roche
    Advisory Engineer/Scientist
    Spintronics and Magnetoelectronics group
    IBM Research Almaden

  • Retain VI front panel in Subpanel after VI containing subpanel is stopped

    Is there a way to retain the front panel image of a VI in a subpanel after the VI containing the subpanel is stopped?  The default action causes the subpanel to clear when the VI containing the subpanel is stopped but not closed.
    Thanks in advance...
    Steve
    Solved!
    Go to Solution.

    If you want the image of the FP, you can place a picture control under the SP, use the Get Panel Image method and push the result into the picture control. When the VI will stop the SP will become transparent and you will see the picture control.
    I assume, though, what you actually want is for the FP itself to stay in the SP and I believe the answer is no. My experience has been that the caller removes the SP VI when it stops, whether you removed it or not, and a quick test indicates you can't insert a VI into an SP which isn't running. Personally, I never needed the SP to have a VI when the caller stopped. 
    One workaround you might be able to use is to place the SP in an XControl. Xcontrols run at edit time as well, so I'm guessing this will work, but I haven't tried it.
    Try to take over the world!

  • I want to save an image of the front panel, (with data), after every VI run

    When I try to copy the front panel (using a select all), and paist to paint, all the data in the graphs show up as they did after the last run, but the data in the charts dissapear. The chart itself is copied but the data is not. Any ideas on how to solve this?
    Thanks,
    Brian
    Attachments:
    Brians_graph_compilation2.vi ‏1363 KB

    This Knowledgebase also has some information on programatically saving VI images
    http://digital.ni.com/public.nsf/websearch/942DAA35C7B35616862565FE005F713F?OpenDocument
    (KB 197BB7VJ if the link doesn't work).
    Note that you don't have to put the code in the VI you are running in order to save it to a file, so you don't actually have to modify your VI. You can just run a seperate VI that uses the VI name from the first one (I've attached a VI which could either be run standalone or used as a SubVI, as well as an example of using it as a SubVI).
    If you don't want to do it programatically you could just hit the print screen button on your keyboard and then paste it into paint and crop off the extra windows stuff.
    Attachments:
    CreateVIJPEG.vi ‏34 KB
    ImageExample.vi ‏24 KB

  • Combo Box not working in Search Form After migrating to Jdev11.1.2.1

    Hi,
    I developed my application using Jdev11.1.1.3 and its works fine. I migrated my application to jdev11.1.2.1. After migration when i run my application, in search form combo box displaying ArrayIndexOutOfBound Exception while searching through it. This exception is only throwing for Combo box and choice list. When I changed combo box to InputListOfValues and ComboBox with ListOfValues its working. Please help.

    Try this on jdev 11.1.1.3 if possible. If not, try everything with 11.1.2.1.
    1. Select Model project and invoke "Clean Model.jpr" (Menu->Build->Clean XXX). Do the same for View project.
    2. Delete all /classes/ folders from model and view projects
    3. Visit view project dependencies (under project properties->Libraries and classpath) and see if JDev is reporting any error there. Delete the errored dependency if any.
    now, follow this on 11.1.2.1
    4. Migrate (i.e. open the app in 11.1.2.1)
    5. Rebuild all.

  • "find control" highlights the entire front panel

    I have inherited a mid-size state-machine and am in the process of documenting it. If I double click a control on the FP, it takes me right to the item in the BD.
    Conversely, If I double click (or right click --> find control) in the BD, it takes me to the FP and the entire thing is highlighted / found.
    The entire FP is built on tabs.
    Many of the controls / indicators are hidden via property nodes.
    The code currently will not run due to a large number of DAQ devices not hooked up.
    Thanks for any suggestions!!
    Brian L
    Solved!
    Go to Solution.

    Bingo.
    As for the simulated DAQ's... Whenever I start the VI on my computer, the system is searching for all of the DAQmx vi's that have been placed. All the non-express vi's for the DAQ's are gray question blocks. After I have ignored 14 or so of these "find yourself" requests, an error box tells me that is is missing "daqmx.rc"
    Also, Express VI's for the DAQ's will not let me see inside them
    If this should be a new topic, I'll move it...
    Brian

  • Does hiding controls/indicators on the front panel significantly effect computer resource consumption?

    I remember reading something about transparent controls and indicators leading to overhead processing... does hiding controls/indicators have similar or ANY negative effects?

    There's a difference between "effecting resource consumption" and "affecting resource consumption" - I assume you mean "affect".
    There's a difference between a transparent control and a hidden control - Hidden means the VISIBLE property is set to FALSE, and certain optimizations can be done - it doesn't have to draw anything. If a control is set to transparent, it will still go through the motions of converting that integer to text (or whatever), and then draw nothing (the decision is made later, so more time is taken).
    A transparent control can still react to mouse clicks. A hidden one cannot.
    It shouldn't affect any memory consumption, except for a video frame buffer.
    It's not clear from the question whether you mean the ACT of hiding t
    hem (the turning OFF of the visible property), or the fact that they may be hidden.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How to read data from data base so as to display as combo box control option

    hi
        i have stored some data in a table of database.now i want to use a combo box in front panel so as to have all data of that table as a option to select between then...i should be able to select any data so as to use as some input for some other program.......eg i have stored 5 names in a table.....now is it possilble to have a combo box with all those names as an input option to select from them....
    Abhimaniu

    Hi Abhimaniu,
    do you mean like this?
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 05-29-2008 10:43 AM
    Attachments:
    Unbenannt1.PNG ‏7 KB

Maybe you are looking for

  • How to hide application id and page number in url

    The url that displays in a live session on the internet displays the application id and the page number. How can I hide this information from the public user? Thanks, Maggie

  • Thinking of building a Flash RIA sites

    Hello guys, I've known RIA for years but never had chance to actually learn FLASH RIA. Right now I'm building a website, with lots of AJAX and javascript animation. I find using javascript animation is extremely inefficient, and I start thinking why

  • Soundcard suddenly missing after reboot.

    Last night I installed and Arch and got pulseaudio configured with ALSA and everything was working perfectly. However, upon starting my computer today one of my sound cardsappears to have disappeared. When I run aplay- l only card 0 appears. Card 0 i

  • Do You Think Software Developers Are Obligated To Have A Windows 10 Build?

    I don't think they have an obligation, but there can be a risk of losing customers if they don't keep current.

  • My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!

    My MSI KT3-ULTRA2 doesn't work with my CPU cooler!!               I've got an MSI KT3-ULTRA2 mainbord, and I have a NEOLEC VENEZIA TB Cooler. But when I attach my NEOLEC cooler and I start the machine, the machine shuts down within a couple of second