Can a Global vi be 'called' dynamically?

I know that a Global.vi is not a vi in the sense that it does not have a block diagram but can one be called/loaded dynamically?
If it can it could be used as a sort of configuration file (a graphical ini file if you like) for an executable built with the application builder.  The Global.vi could then sit outside the exe and be editable (albeit with a development version of LabVIEW) to change initial settings prior to calling the exe.
If installed on a machine without a Development LabVIEW the global.vi would not be editable, making it safer than an ini file as setting could not be changed accidentally.
Any Thoughts
Ken Naylor

You can actually do what you want, but not in exactly the way you want.
You can load a global VI dynamically, but that won't help you, because the actual reading and writing in the BD are all completely static. Likewise, you can modify values in the global in the EXE, but you can't save the VI, so the values won't persist. You have to save the values somewhere else.
A global VI does actually have a BD (although you can't access it or do anything with it, so it's not relevant) and, more importantly for this, it has a front panel, and you can do anything with it that you can do with a standard FP. You can use a static reference to the VI (from the Application Control palette) and use something like the OpenG R/W panel VIs to load and save the controls. You can put the FP into a subpanel to display it. This should allow you to edit the values in the global and save them to an INI file. I didn't check, but I'm guessing that if you build this into an EXE, you will have to configure the global VI not to strip the FP. This can be configured in the build or by changing a property on the global (like not showing the scrollbars).
All that said, I wouldn't necessarily recommend this for a few reasons. There are the usual arguments against globals (potential race conditions, etc.), which you can decide what you want to do with (you might decide that you trust whoever uses the code), but there's also the problem where you tie the config straight to the UI. That means that your UI has to show the same data type that you save and you can't create protections. This might work for you as well.
Try to take over the world!

Similar Messages

  • I can not use the Global Variable in the subvi which be called dynamic

    Hi,everybody,
    i have a problem.
    i called dynamic a subvi (subvi.vi) in the MainVI(main.vi),and putted it in the subpanel in the main.vi .the subvi should show the string (success!),but it not
    why? Help me
    WinXP LavVIEW8.0
    Using LabVIEW 8.0.0 on Windows XP
    附件:
    MyTest.zip ‏16 KB
    MainVI.JPG ‏41 KB
    subvi.JPG ‏13 KB

    subpanel中的VI要运行才可以。

  • How to differentiate which is exporting and importing parameters when calling dynamically using CL_ABAP_OBJECTDESCR

    Hello All,
    First of all sorry for posting the question in general abap queries, since somehow I am not able to post in ABAP objects discussions.
    My requirement is
    Step 1 :  To get table name as input  and dynamically derive all fields which is going to be passed as parameters for a method
    I did this using  cl_abap_typedescr class
    Step 2:  Then Pass the values into the relevant fields using below code
    ptab_line-name = 'DATA_TAB'.
    ptab_line-kind =
    cl_abap_objectdescr=>changing.
    GET REFERENCE OF text_tab INTO
    ptab_line-value.
    INSERT ptab_line INTO TABLE ptab.
    Step 3:  Later I am calling dynamic class like
        CALL METHOD (class)=>(meth)
          PARAMETER-TABLE
            ptab
          EXCEPTION-TABLE
            etab.
    I have read most of the post using Class cl_abap_typedescr=>describe_by_name to get parameter where I have to give correct parameter type.
    But my issue is that I also need to know which fields are acting as importing , exporting and changing parameter.
    Is there anyway to determine and pass method's paramter type as well ?
    Thanks!
    Regards,
    Ramya

    Might be I can use table view VSEOMEPARA

  • Best Way to call Dynamically an stored procedure

    Hi Guys,
    Here my question... I need to call dynamically to an stored procedure...
    - the stored procedure can change, the name , the number of parameters
    - the called stored procedure can contain output parameters.
    lv_sql := 'BEGIN '|| lv_program_name || ' ( ' || get_parameters(lv_program_name) || '); END;';
    get_parameters function generates an string depeding on the number of parameters that this function reads from the
    oracle dictionary (i.e: ':1,:2,:3,:4......... )
    then the dynamyc code must be executed as follow
    execute immediate lv_sql
    using .................................?????????
    The issue that I am facing is how to handle the "using clause".... since before that I ran the program I dont know how many parameters the program will have...
    Please your help... (or suggestion to solve in another way)
    ...:::OKMMAN:::...

    About "Satyaki_De " comment,
    Since I dont know the stored procedure to be called, I cant know the number of parameters and its type to be returned... I mean.. to use the clause "using ...." in static way...
    By now, I am creating dinamically a stored procedure... I am building a stored procedure that calls to the "unknown" stored procedure... reading the data dictionary and building dynamically the "Using...." clause... but I dont like ... since probably in production enviroment I will not have that kind of grants....
    Regarding the link... I didn't know that new type... ! That's will solve the type issue... but still is pending the number of variable to provide to the "using" clause...
    ...:::OKMMMAN:::...
    Edited by: okmman_cl on Feb 11, 2009 1:59 PM

  • My speaker on my iPhone 4s stopped working. I can't hear my phone ringing, music, apps or use the speaker when having a call.  I can still make and take calls when I see them calling but can't hear the phone ring.

    This afternoon my speaker on my phone stopped working. I can not hear it ringing when someone call, but if I see someone calling and I answer the call they can hear me and I can hear them fine. I also can't not put the caller on speaker at all , I also can't hear my music or gaming apps. When I turn my phone on or off it does not make a sound as well. I have turned the phone off and turned it off by pressing the top button and home button at the same time and that did not work. I checked the volume and the mute button and the volume is up all the way. I don't know what else to do can you please help me?

    I have had this happen to me on 3GS, 4 and 4s.   Usually the solution is one of the following:
    1-  If  your volume indicator says  headphones even though they are not plugged in, then:
    Stick your headphones into the headphone jack and then remove quickly.
    2. If that does not work Power your phone off. Then when restarting Reset the phone by pressing the home button and the power button at the same time until the apple logo appears.
    3. Make sure you have not chosen to send audio to an Airplay device such as Apple Tv.
    Hope one of these works for you

  • I updated my phone to the latest version on 4-23-2014 and it is requireing me to plug it into my computer. But I no longer have a computer and Its stuck on this screen. I can not make or recieve calls

    I updated my iPhone  device for thw 7.1.1 update that was avalibe on 4-23-2014. when I did this my phone is prompting me to connect to itunes on my computer. My computer is no longer working and I can not make or recieve calls on my phone.

    Sounds like the device is in recovery mode. You will need to restore the phone. See this support document for instructions. http://support.apple.com/kb/HT1808

  • How to check if a function module has been called dynamically in programs

    Hi,
    I wanted to know if there is a way to check if a function module has been called dynamically in any programs. In SE37, if you click on where used list for a FM, it shows FM not found in programs (Possibly dynamic calls).
    I am checking if the function module /SDF/RBE_EXECUTE_SQL_WRAPPER has been used in any of SAP programs. Your help is greatly appreciated.
    Best regards,
    Siva

    one way will using program RPR_ABAP_SOURCE_SCAN search for complete source codes with a find string RBE_EXECUTE_SQL_WRAPPER .
    PS But it the function module name comes from a table ( Table entry value) then it is difficult to find

  • HT201406 IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even powe

    IOS7 installed OK to my iPhone 4S and worked OK for a while but I have somehow managed to completely jam my iPhone 4s. The touch screen won't work except for up and down gestures (some of the time). I can't make or answer calls, I can't even power if off. I can't access the hardward ID which Apple support seems to require for Chat.
    It might have happened when I was accessing my camera bypassing the lock screen!
    All I know is that the thing is now useless and it looks like I will have to wait for the battery to run down to see if powering it back up afterwards will solve the problem.

    I have since discovered the "hold down home key and power button" together for a few seconds and this seems to have worked .... phew!

  • How can I delete the recent calls list in FaceTime?

    How can I delete the recent calls list in FaceTime of my Mac?

    Hello muchaim,
    After reviewing your post, it sounds like you want to delete the recent call list. I would recommend that you read this article, it may be able to help the issue.
    FaceTime for Mac (Yosemite): Make and receive FaceTime calls
    FaceTime keeps a list of the most recent calls you made, received, or declined, with the most recent call at the top. To return a call, click the Video button  or the Audio button . To remove a call, select it and press Delete.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • How can i redirect a queued call to a voicemail using CCX editor?

    hi buddies, i wonder how can i redirect a queued call to a voicemail of a valid extension using CCX editor?
    i just uploaded my script (does not working as i wanted regarding voicemail)if can anybody help me i will be very happy!!

    first of all i REALLY A REALLY appreciate your reply
    but two questions remain:
    a) check my attached file is this the VM pilot number?
    b) Called Address = "2133"  means that the call will be redirected to the voicemail of the 2133 extension? im right??

  • My iphone 5 went into search mode and I can't place or receive calls or use the internet but my text messages work. Sprint had me do a master reset and my phone doesn't work at all now I can't get it past the activation. Will I have to pay in store?

    My iphone 5 went into search mode and I can't place or receive calls or use the internet but my text messages work. Sprint had me do a master reset and my phone doesn't work at all now I can't get it past the activation. Will I have to pay for repairs in store because I didnt get the Apple care plan when I purchased it. Sprint said it may be a phone problem not sure if I should take it to Sprint or Apple...I just need my phone

    I'm sorry to learn that you are not able to make/receive calls chelseabee! (ticket number removed) results indicate that there is no issues with the network or account provisioning. Since you have already done a hard reset http://vz.to/1gBkSJc (as per your post), I recommend exploring replacement options. If your phone is within the one year manufacturers' warranty we can provide a Certified Like New replacement http://vz.to/uyYF0o as long as no physical/liquid damage exist. If your phone has sustained physical/water damage and you have insurance, you can submit a claim to the insurance company online at this link http://bit.ly/07CrqPK
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport
    >> Edited to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • How can i see a detailed call log

    how can i see a detailed call log including actual numbers on restricted calls

    bobsouthernguy wrote:
    how can i see a detailed call log including actual numbers on restricted calls
    You won't see the numbers if the call came in as restricted...that's the point of a caller blocking their number.
    You can pay for a service like TrapCall that will give you the restricted numbers.  Or you can use a service (free) like DitchMail that gives callers a recording asking them to unblock their number and call back, if the call comes in with the number blocked.  It then hangs up without giving them the opportunity to leave a message.

  • IOS5.0.1 constant error "iPhone can not make or receive calls.  Restore from iTunes":  I get this message and the phone will no longer work (happend once while on airplain mode and now once while in wifi only area, out of cell range).  help!

    All- I get this message ("iPhone can not make or receive calls. Restore from iTunes" (happend once while on airplain mode and now once while in wifi only area, out of cell range)). iPhone 4.  Newest OS.  Never happened with old OS! Cycling phone on/off does not help.  Ignoring message causes phone to cycle off then on.  After first time this happened, I restored.  Six days later...same problem!  Clearly a new fix is necessary.  Suggestions? 

    I have not tried that...I will look up the process so that I can do it correctly (and still transfer all of my files, contacts, etc).  Any suggestions?  What is the advantage of restoring as a new device..is this more akin to a complete wipe of a hard drive?

  • I am traveling in Chile, South America. I purchased an Entel sym card and I can make and receive phone calls, but the internet only works on WiFi. Do I need to region unlock or what? I willl only be here for A month and a half so I don't want to buy a pho

    I am traveling in Chile, South America. I purchased an Entel sym card and I can make and receive phone calls, but the internet only works on WiFi. Do I need to region unlock or what? I willl only be here for A month and a half so I don't want to buy a phone. Any suggestions?

    Most of the current Apple Intel based computers are comparable in CPU speed. I don't think it is so much the model of laptop as it is the memory, and storage capacity of the machine. If you are going to use FCP on a regular basis, perhaps as a professional or semi-professional, then you should think about the maximum memory and a very large capacity internal disk drive. For instance, one hour of finished compressed video will take up about 1.5 to 2Gbytes of disk space. If you add up the raw footage and still imagery and audio, you'll use up your disk drive capacity real quick. So a hard disk on the order of 750Gbytes @ 7200rpms might be good for video editing. 5400RPMs might be slow to rendering times. Rendering a video might take up a lot of memory so more memory is better e.g. 8Gbytes.
    As a rule of thumb, once you get to about 80% of your disk drive or memory you'll see degradation of performance.
    You can check out macsales.com. THey have a menu system that will allow you to pick and choose from various alternatives. BTW, it's been said that although Macs are typically spec'd at a certain memory size, macsales.com found that Apple computers will actually support higher memory levels. That is, if 4Gbytes are spec'd, some machines support 6Gbytes. macsales.com will provide the guidance for you.
    You might also consider buying an external disk e.g. 500Gbytes to carry around with you for back-up or transport to another machine.

  • What's wrong with FaceTime I can't connect a video call to anyone

    What's wrong with FaceTime I can't connect a video call to anyone

    If you are having issues with Facetime, and your device is running iOS 7.1, and you have followed the troubleshooting procedures (http://support.apple.com/kb/TS3367), contact apple support.
    The http://www.apple.com/support/systemstatus/ page states that if you are experiencing an issue not listed, to contact support .

Maybe you are looking for

  • Scanning to Mac Mini from KM C353

    Hi Everyone, Hope I'm in the right part of the forum. I've got a Konica bizhub C353. I've searched all over for drivers or tutorials on how to scan to my Mac Mini. Does anyone have any information that would allow me to scan to my Mac Mini? I'm also

  • Number range Buffering in BW

    Hi, What is Number Range Buffering in BW Is it applied on an infoobject or on a dimension of an infocube How to SID/DIM buffering for dimension table on an info cube in SNRO Thanks

  • Apple TV will recognize my YouTube login credentials

    I've had Apple TV for several months and it was working great until recently. Suddenly it no longer recognizes my YouTube credentials. When I try to login I get a message stating: "This account cannot be used with Apple TV. Try using a different acco

  • View files by default on startup

    Is there a way to get rid of the prompt for each file when Dreamweaver 8 starts up, which asks you what you want to do for files that are not checked out (read only)? If the file is read only, then I want to view it by default. If it is checked out..

  • Ipod classic wont dock after apple changed it

    I sent my ipod classic to Apple for a new battery They sent me back a new / refurb ipod classic This came back a different model / firmware Now i cannot get the classic to work on my dock All my other gadgets play back and charge via the dock as did