Functional global variable home (RFGV) is cut off by the controls on the front panel

Hello

I though that I had found the ultimate way to dynamically manage memory in a system of Exchange. I read on RFGV here: http://labviewwiki.org/Functional_global_variable and put together a static FGV normal to follow the references for each created instance of memory which I then could easily remember just by name. But now I found that all the RFGV completely stops whenever a front panel with a menu control is used, i.e. 'enum', 'ring' or 'control path. I tried to put in different delivery systems, but not luck. I read about that guy who could have fallen into the same problem: http://forums.ni.com/t5/LabVIEW/Do-I-need-to-use-a-semaphore-when-reading-writing-a-functional/m-p/1... but he got no help what I could see.

I have not tried semaphores. Don't know what that is. Check my little test code and tell me what I am doing wrong. Or maybe there is no solution in this case I have to abandon the idea of the use of RFGV for anything. Maybe memory held all the VI will be assigned statically.

Run the code (in LV2009) and watch the 6 LEDS Flash. Then click on anyone of 'enum', 'ring' or 'path' (the file dialog box) and watch off LED when dynamic memory is used to write or read while the continoues to static VI.

Any suggestions?

Best regards

Kai

If the memories are good, what you're running against is not the user interface thread, but an internal mechanism of LV called the loop of the root, which must run in some things. Specifically, in your case, the method run a VI and showing a menu (a menu real, or a context menu of a ring).

You can work around this problem (and greatly simplify your code) If you use the call node of the reference instead of the method to execute a VI, but I wouldn't recommend it anyway, since I assume that your code is not what you think it does. In LV memory management can be quite complex if you want to be able to control it, so if you feel you really need, I suggest to start by searching for existing materials on the management of memory in LV

Tags: NI Software

Similar Questions

  • Functional Global Variables: an indicator can be used instead of a shift register?

    It is a simple question, but I can't find an answer to it. The model agreed to a functional Global Variable is to use an uninitialized as in this example shift register:

    ('Référence IN' and ' Reference to "is actually a pile of references.) There is also a "Se Refnum" case, which comes the straight through the tunnels shift register.

    My question is, why can't we do store the indicator data? It is much simpler to use a shift register (IMHO a non obvious way to store global data!):

    The case "Se Refnum" does absolutely nothing. Other functions such as erasure of data can be implemented just as easily. The advantage of the FGV to help avoid race conditions is maintained because you always use the VI to access the data.

    JonP says:


    Not so much, the Inidicator can happily live outside the case structure, together and Clear would be just assign different values.

    If you have only a case structure, the indicator could not live outside of it.  In order to maintain the indicator data, your design requires that it is not written in for a case of Get.  If you have an exterior structure deal that decides on 'Get' or 'set or clear' and (in the case of "Set or clear") contains the terminal of the indicator and a classiquee case that decides on 'Set' or 'clear '.  However, I would consider this a design below using the standard template of the FGV.

    The difficulty with retrieving the value if you want to do a read operation / writing change. But LV provides many ways to retrieve data from an indicator (one you don't mention is the 'Value' property), do you mean that's all "incorrect"?

    Yes (I mean that they are all incorrect).

    You could hack your way around the design to work with a single structure of matter and the terminal of the indicator being outside using a method to read the value of the indicator and through a tunnel to the structure of the case through wiring for the tunnel of writing indicator in the case of 'Get '.  However, who will require a local Variable or value of property node.  As I said, these (I only mentioned the local Variable originally) are not good choices for performance and scalability.  If you are not aware of the functional differences between the terminals, local Variables and nodes of property value, refer to this article (obviously advantages/disadvantages such as redraw objects on the front panel are not relevant here).

    I guess you could say that indicators should only be written, but it is difficult to be pure!

    No, it's not, just use the classic design of the FGV!

  • Functional global variables with polymorphic VI

    Hello

    I am keen to build a functional global variable in a polymorphic VI. So, for example in a functional global variable, we have case structure. I want to build separate VI for the structure of the case and make a polymorphic VI.

    Is it possible that I could use a polymorphic VI rather than business structures?

    Thank you!

    You could create a polymorphic VI that serves as a wrapper for the FGV.  The idea is that each instance of the polymorphic VI called FGV with selected appropriate case-sensitive.  Then your API is the polymorphic VI instead of FGV.

  • Functional Global Variable reference

    Hi all

    I want to update the value of the indicator element in primary VI, I don't want to use the global variable, due to the problem of race condition. So I create a functional global variable to control reference. It is reliable and can avoid the race condition critical?

    I have attached two Test VI.

    Thanks for your advice.

    Personally, I use user events to send data to the main VI and then he can update the indicator.  This generally works very well since most GUI screws using a Structure of the event anyway.

  • Functional global variable pending

    Hi all

    I understand, by threads of reading on the forum, that a call to a functional Global Variable will block its execution if the FGV is already consulted one another VI, correct? Is there another way that it would block, apart from those shown?

    The reason for the question is that I have a (non-reentrant) FGV which is read by 8 subVIs simultaneously (they are, in fact, the same vi, but configured for returning) and whose time strangely, access varies based on the number of the subvis running.

    In less than 5 screws are trying to access the FGV, execution is blocked (I guess, because when the FGV is disabled and replaced by a constant there is no problem with running) and access lasts less than 50ms. If this number is between 5 and 8, execution is carried out much faster. My first assumption was that FGV has not been initiated until we call the fifth sub - VI, but I don't know how to check that.

    I can understand that there is something wrong with the FGV, but can't put my finger on. Any ideas?

    Thanks in advance for any help.


  • Impossible to go from baseline of connection via functional Global Variable

    Hello

    I'm working on a project of producer/consumer based, which some parties have access to a MySQL database. After the connection to the database, I want to store the reference to the connection inside of a functional global variable. Then other parts of the project that need to use it can only read in the functional global variable.

    For some reason, the reference of the connection is not valid once it has been read functional global variable. It works fine if I have the reference directly from the connection to the request for enforcement VI wiring.

    I have attached a few screws that show the problem, but you will not be able to run them unless you have a database to connect to and hack you the query a little so he selects in your tables.

    SQL_whole_thing works very well. It connects to the database, returns information he requested by the query, and then disconnects. No problem.

    But if I run DB_Connect.vi (which stores the reference to 'DatabaseID_FGV' FGV), follow-up of SQL_Query.vi (which reads to the FGV reference), then I get an error saying that the reference is not valid.

    Anyone has an idea why this happens?

    Thank you

    Christian.

    PS: You'll need DBID_FGVActions.ctl and database_connectioninfo.ctl, also attached

    Your referance on the SR's "outdated" when implementing this way.  Essentially, this means that data in memory to this referance has changed because the referance was stored.  Just because you have changed the data at this location.  This prevents you from spend a refeance for the "old data" and crashing the calling application since the referance Rassi contains assumptions that are more adequate data.

    Consider upgrading this FGV powered Action.  This would be encapulate all the Actions you want to do to the database (connect, disconnect, fecth, writing etc.) and maintain the current referance on the AEs shift register.  Ben establishes a great deal for just this type of functional encapsulation in his famous nugget.  A must read for every programmer

  • Monitor LG Flatron L245WP-BN is cut off at the top and has a black border at the bottom of the screen

    Monitor LG Flatron L245WP-BN is cut off at the top and has a black border at the bottom of the screen. Connected to HP laptop Pavilion via a HDMI cable. Is it possible to align the screen so the full screen is showing?

    Help, please!

    Thank you

    navers wrote:

    Sorry! It's a HP Pavilion 15 laptop. I can give you the number of the product if you want? Windows 64-bit of 8.1

    Thank you for the additional information.

    Yes, the product number would be helpful.  Please do not provide the serial number, however.

    I think that your problem is perhaps that the monitor is not compatible with Win 8.1.  The only available updates are for Win XP and Vista.  You can find this information in the link that I provided in the article titled "Software Update".

    I suggest you contact LG Customer Service to see if they can help you.

    Please click on the Thumbs up button '+' if I helped you and click on "Accept as Solution" If your problem is resolved.

  • How can I create a multi page PDF from a multi .tif file?  On the creation of a file .pdf from a file multiple .tif, the .tif file is converted to a single page (always the first page of the .tif file) .pdf.  The rest of the document is cut off. The .tif

    How can I create a multi page PDF from a multi .tif file?  On the creation of a file .pdf from a file multiple .tif, the .tif file is converted to a single page (always the first page of the .tif file) .pdf.  The rest of the document is cut off. The .tif file comes from a document by using the fax & Scan app scanner in Windows 10.  I am running Adobe Acrobat Reader DC, which I run with my subscription 'Adobe PDF package, monthly'.  It worked fine until about a month.  I've since upgraded to Windows 10 and Acrobat Reader DC.   I would be very grateful for any help. Eoghainn

    Hello

    This problem has been reported as a bug. Our team of engineers working on this priority issue.

    Kind regards
    Nicos

  • Screen is cut off at the top?

    My screen is cut off top, resembles about 20px or more, is - anyone know why? I just noticed today when I came home from work, usually, I have my PC for about 12 hours a day (I'm running Windows 7 with a 1600pxx900px screen).

    Al.

    OK, I sorted it now...

    Sorry for wasting your time, but you have been very helpful. It was the settings on my screen, I pressed on automatically set a sorting TI stand, but I don't know how it happened in the first place.

    Anyway, thanks a lot for your help.
    Al.

  • Cut-off for the 6008 analog input voltage

    I am using the analog inputs NI USB-6008.  The specification says they have a 144 k ohms input impedance.  But it does not say what is the cut-off voltage.  If you leave a disconnected and measure the voltage you will get 1.4 volts.  So I guess it's the cut-off voltage, but it is not spec'd.

    Someone agree that these Amnesty International isn't terminatied by 144 k - ohms to 1.4V?  Is this in the documentation somewhere?

    Figure 7 on page 16 of the NI USB-6008/6009 User Guide and specifications shows the strange input of this unit circuit.

    Lynn

  • Audio is cut off when the USB 3 G modem is connected

    my audio piece is cut off when I insert usb 3g modem, what to do?

    When I plug my modem 3G usb, I'm connected to the net, but the audio output of the computer is turned off, even if I increase the volume to the limit max.

    Hi murugesannadar,

     

    His work was much earlier with 3G modem connected? If so, then what changes have been made prior to the issue?

    I suggest to try the resolution of the following issues with 3G modem connected and check if this may help.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-audio-Troubleshooter

    For more information follow the link below

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows

  • Power cut-off of the blackBerry so that the blackberry bold 9780 Smartphone has been updated software

    Could you please give me some advice?

    I was busy updating my Blackberry device software and had very bad luck, the power switch is triggered. This caused big trouble for my blackberry to load when the battery is removed and has been replaced but will not open a session. After a while a white screen with the following message: App Error 200 and just Reset underneath.

    When I select the reset option, the aforementioned process just repeats.

    My application for Blackberry desctop is yet get to the top of my Blackberry once it is plugged in now.

    Is there a solution to this problem or is the only way to drop it and have it repaired by experts from Blackberry?

    Would appreciate any kind of help

    Try this:

    (1) make sure that you have Blackberry Desktop Manager installed.
    http://NA.BlackBerry.com/eng/services/desktop/
    (2) on your PC, go to start > run and copy and paste the following line exactly (i.e. with quotation marks):

    'c:\program files\common research in motion\apploader\loader.exe' /nojvm

    (3) the Application Loader Wizard will appear - click on "next".
    (4) in the ' connection: ' drop-down menu, you should see "USB - PIN: UNKNOWN". Click on the button "next".
    (5) you should see a list of applications ready to be installed for your Blackberry. Press Next and finish, and that you are well on your way to get your Blackberry to life. Congratulations! Just unplug and let the process finish completely.

    NOTE: If you do not display the list of applications mentioned in step 5 and instead to see the message "the Blackberry Desktop Software has no Blackberry Device Software for the device you have connected to the computer. Contact your wireless service provider or system administrator', then you must download the Blackberry operating system for your support and your device.
    http://www.BlackBerryFAQ.com/index.php/BlackBerry_Operating_System_Downloads
    Just select the appropriate type of carrier and network, select your Blackberry model from the list and download the latest version. Install this download and follow the steps above again and you should be on the right track.

  • programmatically set the bind view variable value of object that showed to the query Panel

    Hello

    I have a case in 11.1.1.7 Jdev, I deploy my application on BPM 11.1.1.7.

    I have a VO that three attributes of it was put in a viewcriteria... Let's attribute A1, A2, and A3. the view criteria is any condition "AND".

    and then I create a variable binding in the VO named b. my vo also query using this variable B.

    in the jspx, I create a query panel based on the viewcriteria. then in the A1, A2, A3 and B query pane shows.

    I can reset the Panel request programmatically using this tutorial http://www.jobinesh.com/2011/04/programmatically-resetting-and-search.html

    but unfortunately he didn't succeed for A1, A2, A3 because they are in the display criteria, but B can't reset.

    I tried to put the value programmatically using queryModel, queryDescriptor, setNamedWhereClauseParam, but this failed and it starts to makes me crazy...

    anyone here seen cases like me? and found the workaround? pls throw some light.

    Thank you

    Have you tried with VariableValueManager? http://www.jobinesh.com/2010/10/how-to-set-bind-variable-values-at.html

    Dario

  • Now I have firefox at the top of my screen, then file, edit etc, then Home tab and then back, to the front, my bookmarks and then a small space underneath for my pages... If he gat all smallet that resemble my iPhone!

    Now, I have firefox at the top of my screen, then file, edit etc, then welcome tab, then back, forward, then my bookmarks, and then a small space underneath for my pages... If you find any smalliet that it will look like my iPhone! ... I can get red of some or move them?

    Hello

    Please see customization. You can hide/show elements via View (Alt + V) > toolbars.

  • How to activate the functions of the front panel in run mode?

    Hello, I would like to ask how I can activate the façade while I change operating mode (Menu - exploit-change to the mode of delivery). Whenever I change operating mode, I can set my values or anything like that. Could you please help me to unlock those?

    Thank you


Maybe you are looking for

  • Why my messages pop up anywhere in my Inbox

    When I get a new message it can be saved anywhere in the Inbox between old messages and there is very little space to open the message

  • Latest version of GarageBand?

    Hello Is someone can you please tell me what is the latest version available for GarageBand. Mac running v10.11.5 El Capitan. Thanks in advance! Carolyn

  • Re: Satellite 2455-S3001 - LCD no longer lights

    I have a Satellite 2455-S3001 part #PS245U-074966. The lcd screen no longer lights upward. I can look at the screen and see the screen works (with a flashlight, I can see images on the screen). I want to solve this problem, but have never worked on d

  • Need help upgrading 10.6.8 to 10.7.

    I have an imac 21 inch 2009.  I have recently updated to El Capitan and all stop working.  Reviews for apple store I erased from my hard drive and started over with my origninal so software away.  I installed 10.6.8 and then I installed my applicatio

  • reformatting of the unknown disks

    When I try to reformat, I get unknown disk x 4. Last time I have done, I had a space partitioned with disk space. I have sata raid config HD basically I can't reformat because this is not recognizeing my drives I think.