2012 event Dynamics recording control array

In the upgrade to LV2012, I discovered what may be a bug, or at least an incompatibility between 2011 and 2012 with respect to dynamic registration of an array of controls as opposed to individual control references.

This piece of code worked in 2011, but not in 2012, with the error 1 September at the block of reg events operating in 2012. I have been in contact with technical support, but have not yet heard this take.

All thoughts.

Hello

CAR #366331 was filed so R & D can fix this bug on this issue.

Tags: NI Software

Similar Questions

  • The callback functions control array?

    My apologies for my basic question.

    I'm experimenting with control arrays and so far able to collect data in controls of a string that is contained in the tables of controls.  Works well.  Of course, none of these controls need callback functions.

    Now, I need a few momentary controls in a control array as well.  So my question is, should I use a single callback for all button controls function in this unique table?  And if so, how can I do to determine which element in the control array called the function?  Reading the forums, it seems as if the use of the data parameter of the callback could happen to me.

    I just wanted to ask before we get off the track.  Thank you!

    Yes, callbackData can be useful in such a situation, but if you can limit to switch to array index to distinguish what to do the recall of your button might be something on this line:

    int CVICALLBACK BtnAttayCallback (int panel, int control, int event,
            void *callbackData, int eventData1, int eventData2)
    {
        int    handle, index;
    
        switch (event)  {
            case EVENT_COMMIT:
                handle = GetCtrlArrayFromResourceID (panel, control);
                GetCtrlArrayIndex (handle, panel, control, &index);
                switch (index) {
                    // Your code here
                }
        }
        return 0;
    }
    

    (No CVI install here so I can't test it: check the code, but it should work reasonably)

  • control array element changing order

    I have observed several times where some of my paintings of controls have their items change order between debugging sessions.

    It's unpredictable when it happens.  But the symptoms amounted to my controls bad secondary control (for example, LED #2 gets turned on when the #0 SWITCH is pushed).

    When I inspect control arrays, I can find that one or more items are now out of use.  When I their difficulty in IUR again, then all is well again.

    Any thoughts on how to lock them to the UIR?

    ElectroLund,

    One thing I noticed on your code, you call the GetCtrlArrayFromResourceID function at the top of each callback. Because the control panel should not change while the program is running, I might suggest you make all these function calls in the main function as soon as the program starts and just store it for use in the recalls. Which probably isn't helping the problem here, but it would make things a little more efficient.

    Nothing is coming out for me right now as being a possible cause of the problem. I know you said you've been changing the code in an external IDE; to be clear, have edited the UIR file in any external editor?

    One thing that was suggested by one of my colleagues was to create control arrays in source code, instead of using the GetCtrlArrayFromResourceID function. This would ensure that the controls are in the order that you want them to be, even if it would take a little more code to implement.

  • How to use control arrays

    Is there a tutorial on how to use control arrays in LabWindows?

    It is quite simple to create in IUR, but the coding is not what I was hoping.

    I tried this

    for (iLoop = 0; iLoop = iNumberofControls; iLoop ++)

    SetCtrlVal (Panel, CRTLARRAY [iLoop], value);

    Hello

    I am aware of the manual, http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/uiref/programming_with_control_arrays/and the userint\ledctrlarray.cws (very) brief example

  • Control arrays disappear when closing the window .uir

    Using LabWindows/CVI 2010, I created a program of simple test with a panel containing a couple of buttons push, three tumbleurs and three control LED. I can create arrays of controls containing the toggle switches and/or LEDs in the .uir editor and access in the program, but when I close the .uir editing window and reopen the .uir file, control arrays are gone from the .uir file and of course when I rebuild the program I can't access it. This happens if I leave LW/CVI entirely or if I just close the editor of .uir. If I explicitly the file .uir after creating tables, everything seems fine, but then when I close the .uir window I see an asterisk briefly appear in the tab of the file name, as if it is modify the file, and then re-register on the goal.

    I can duplicate this just creating one or two control panels and by closing the window. Sets disappear, even though I explicitly save the .uir file after I created them. Is there something I can do to prevent this?

    Thank you

    Brian

    Brian.

    It seems that your UIR may have have been saved for an earlier at some point.  If you open the UIR and look in the lower right corner, you say 'file UIR 2010'?  "Otherwise, you need to click on File ' Save *.uir as and save the UIR under a 2010 UIR.

    If you choose to save the IUR for an earlier version, CVI remembers this decision and always saves the IUR for than the previous version.  You will have to explicitly choose to save them for the current version.

    Let me know if this does not fix things for you-

    NickB

    National Instruments

  • Audio record control never renders on the screen

    System:

    Windows 7

    Adobe captivate 5.5

    On a laptop

    Problem:

    At work, I have second dacking and monitor\ stations.  Plug my laptop into a docking station.

    Open captivate and slide deck, choose it Audio > Rrcord > zip

    Opens the control of audio - I want to save.  everything is fine.

    Eject from the docking station, tried to use portable Captived on any computer (no dock, no attached monitor)

    Select Audio > recording > zip

    No recording control window, the window in captivity is there but all the disabled buttons.  Press ESCAPE - caprivate window buttons to reactivate.

    Togle window to see if there was a hidden window - not good

    Resized screen - not good

    Made sure to disconnect it from the projector (fn + f7) - not good

    not rebooted - no good

    not rebooted - no good

    Tried the configs different montor - not good

    Are gone home, I tried my monitor at home with an another docking station

    does the same things as before - not good

    Nothing.

    Return to work - works fine.

    I can't do all the rocrding at work that my office is too noisey.

    Help?

    Hello

    I had similar problems after having cut a second monitor. Captivate seems to leave some dialog boxes on the second monitor which is no longer there. Before disconnecting (at College) of the second monitor I check if everything is once again on my main screen (laptop computer =) and then no problems. But now, I am confused, as if I forgot (which I did yesterday), I connect another second monitor, extend my desktop to this monitor and can't seem to drag everything back to the main screen. It seems to be a different configuration with your docking station.

    Lilybiri

  • Satellite A100 - recording control - no Mono mix or stereo

    Hello

    I have this RealTek Audio Drivers installed in my laptop and when I go to check the registration, it has only 'Volume of the CD', 'Mic Volume' and 'Volume line' available. I know if I need to record sound directly from my laptop without using the microphone, I need "Mix-Mono" or "Stereo Mix" in my control recording, but I have this two components. How can I add these two things. I hope that I clarify my issues here. We hope to get solutions here. Thank you very much! =)

    Hi Jimmy

    I studied a bit in this forum and found this forum thread:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=16446

    The recommended thread seems to provide the information you are looking for.
    Pleas post back if it works or not.

  • Satellite A100: No stereo mix in my record control

    Hello

    I need a stereo mix in the control record. But how?
    Name of the sound card: Realtek HD

    Ty

    Can you please tell me what you want to do exactly?

  • Is there a way to detect the mouse during the event for the controls within a tab control?

    I need to change the mouse pointer when it moves on controls that are found in the tabs.

    Now when the mouse passes over the tab, LABVIEW does not detect the saperately of controls for the mouse over event.

    Is there a way to do what I intend to do?

    Your problem is with the Panel.Controls [] property. It does not return the controls that are inside containers (tables, tabs, groups) and returns only the container itself. As illustrated by Sam, if you want the references to the controls in the tab, you must get the references to the pages and get the controls on each page and add them to your original table and do this recursively.

    You can either write a VI to do this (or search for it. There was posted here screw that analyzes recursively the FP for all control references) or everything just statically for this control a tab and move. There is also a VI delivered with LV that can help you with this, but I suggest that you not use, because it will be difficult to operate if you generate an EXE file.

    And I also recommend the Tool of Capture of Code.

  • How to adjust a size of "control array".

    I have a program that creates a Digital PWM with duty ratio variable. Changes in cycle duty every 50 ms, but the frequency of global wave remains at a frequency determined by the user. I have attatched to VI.

    My problem is the following... I need to be able to control the overall cycle time. This means that the size of my table to cycles it will have to adjust depending on the time of the cycle (either a duration of 1 second would require 20 slots of 50 ms, while a second 1.3 cycle would need 26).

    I currently have only 4 slots in my table, which means the total s est.2. I understand how to manually add and remove items in the table, but I can't understand how to add a control to it so that the size of the table changes automatically, allowing much more rapid data entry. Right now I can make it work, it takes just super long to add or remove items from the table. The perfect situaton would have a constant control for cycle divided by 50 times, that would change the size of the array.

    I can't find any info on this, and I think I've even seen a message asking to add this kind of functionality. I am relatively new to this program.

    Thank you

    You can do this in two ways.  You can have a constant matrix with the maximum number of ellements you need and then use the subset of table to select the part you want.  The second option is to use the array to initialize and connect the entrance to size of the array to your control.

  • How to make the difference between the mouse down events in the control of the chain (click on contour vs click Center)?

    Hello

    I have a control over the chain on my UI and I would like to make the difference between mouse different events, that is to say, to be able to differentiate a click on the outline or the label of the controller vs right-clicking on the Center (between the control in "edit" mode)

    The reason is that sometimes if the user does click not in the Center but in the scope of control, Labview fires the mouse event down but the typed keys are not registered...

    Is it possible to distinguish the two?

    Thanks a lot for your help

    Set the string "update as you type" and use instead a "changed value" event Now, the event fires whenever a new character is entered.

  • The image and zoom factor control array

    Is it possible to set different zoom factors for the elements of an array of 2D image controls?

    Ben64

    # Zoom factor, as almost all the properties of the items in the table, is the same for all items.

  • Generating a lot of events for access control

    I want to raise events when the value of the adjustment wheel increases to say 10, 20,30 so now. But I can only have one event per control. Is it possible to do this

    Kind regards

    Austin

    Austin,

    If I interpret your request correctly, I think your best bet is simply to use the event has changed value, and then use a structure of the case to determine what value the dial has changed.

    Something like this:

    I hope this helps.

    Kind regards

    Simon

  • Creation of control array

    Hello

    I wish that my VI to create an array of controls that can be operated by the front panel. In other words, I have an integer that specifies the amount of controls that I need. Then I would that my VI to automatically create a table of Boolean controls that I can't change the façade. I can create the table of indicators, but unfortunately, the behaviour(control/indicator) of the elements on the inside seems to be related to the behavior of the table.

    Thanks in advance

    You can create an array of references to controls that already exist.  Hide/show controls that your choice by indexing the table and passing the reference for each control to a property node.

    I don't think it's possible to create/destroy the controls during execution.

  • How can I create a menu drop-down list dynamics that controls two separate drop-down lists?

    Hello

    I could use help decipher how to control 2 separate drop-down lists ('b' and 'c') through the value selected in the main drop-down menu (that is, 'a').

    My script worked perfectly to control another menu drop down, however I can't seem to properly control the third zone.

    In my example below, what I'm trying to do is control 'Method - external' and 'Department - external', through my gout primary to the bottom of the list. The external 'method -' drop-down list works fine, it is the third 'Department - external' that I fight with.

    For example, if 'Theft' is chosen in the first drop-down menu, I want 'Method - external' to display the series points and "Department - external" to display a different set of items. If 'Cyber Crime' is selected in the main menu down, then the external 'method' - set items will change and the external "Department -" will indicate N/A.

    With the following script - no matter what happens if I choose 'Flight' or 'Cyber Crime' in the first menu drop down, 'Cyber Crime' n/d game elements are displayed in the external "Department -" drop-down.

    I apologize if this is hard to follow - it is certainly difficult to explain. I hope that my question came through.

    Here's my current script

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    break;

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    break;

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

    Thank you

    You have a few break statements that should not be there. Try this:

    Switch (event.value) {}

    case 'flight ':

    this.getField("Method-External").setItems (["","grab and run", "shopping cart/basket Walk Out", "Possession", "Consumption", "Other"]);

    this.getField("Department-External").setItems (["","Agro", "Automobile", "Bakery", "Building materials", "Chemical", "Cleaning supplies", "Candy", "Dairy products", "Deli/Bistro", "ELECTRIC", "Electronics", "Farm equipment", "Fashion", "Feed", "Fertilizer"]);

    break;

    cases of "fraud":

    this.getField("Method-External").setItems (["", "credit card", "debit card", "Check", "Coupon", "Counterfeit", "Merchandise Return", "Price Switching", "Self Check-out", "Provider", "Other"]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    case 'flight ':

    this.getField("Method-External").setItems (["", 'threat of concealed weapon', 'Threat from weapon', "Verbal threats", "Acts of aggression", "Other"]);

    break;

    case 'exit and enter:

    this.getField("Method-External").setItems (["","Smash and Grab - vehicles", "Smash and Grab - pedestrian", "forced entry", "Unauthorized Keyed", "Other"]);

    break;

    case 'mischief ':

    this.getField("Method-External").setItems (["","graffiti", "Damage", "product a manipulation", "Other"]);

    break;

    case "Cyber Crime":

    this.getField("Method-External").setItems (["","Malware (Virus)", "Phishing", "Others" "]);

    this.getField("Department-External").setItems (["", "s/o"]);

    break;

    }

Maybe you are looking for

  • S1000-Z2 screen problems

    I have a Satellite S1000-Z2 which I bought used (need a laptop for school, had no hope of buying new ones) Unfortunately, it has developed a problemThe screen is, for lack of a better term, blacking outIf you look closely (very closely) you can still

  • Portege Z830 - 11J - several questions after Win8 Pro upgrade

    Hello I bought a Portege Z830-11J with Windows 7 Pro.I bought the Windows 8 Pro Upgrade and did a very basic * clean installation *. I installed the Windows 8 Pro from scratch a (empty) disk.I checked for missing drivers Device Manager. I did a downl

  • Input 24VDC USB NI 6009

    Hello! I develop a LabView program that I need to run a code every time + 24VDC signal from a digital sensor is detected. I intend to use my NI USB 6009, but as far as I know, the analog input is limited to + 20V in mode set (10V max in each pin). I

  • Update for Microsoft Dynamics CRM 0.2 2015

    No one knows the date of the next release for this?  We have customers that we host threating to let us down if we cannot stop the popup "Wrap" which resolves this update.  He'll be in the days or months?  The popup is locked their machines for up to

  • I have installed TurboTax and when I try to open it says error TurboTax has encountered a problem and must be close__

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem