container handling

Hello

Is there someone who can help me solve a labview review I have to solve for my study?

«In a storage depot previsibilte a Terminal container containers are stored temporarily waiting for transport.»

The location of a suite of specifiek and its code is stored in a database.

When the operator enters the code of a container, its location according to is displayed on the screen.

The operator must be able to move a container from one position to another by entering a new destination"

For more details see the attachment.

Thanks in advance.

F.

To be perfectly honest I don't think that anyone here will make your review for you. If you post code with specific questions about something you don't understand or you have problems with you peut get help. But because it is a review, you really need to do it yourself.

Tags: NI Software

Similar Questions

  • selectedIndex and valuables

    Please please please! was responsible for research and try 1 million for everyday things and can not understand this...

    I have a custom data grid component that displays the results of a call to the remote object at a cfc in a custom container. When the user clicks on an item I want to fill out form elements in a form container located in the custom container (and NOT a separate custom component). I created a class called Employee value object (actually the CF Wizard) in a file called Employee.as.

    In the custom container I import the employee as such class: import model. Employee.

    In the initialize the custom container handler, I create an instance of the class employee as such:
    oEmployee = new Employee();

    In the click event handler of the custom datagrid component manager I want to fill the object oEmployee with the registration of the user has clicked on this title: oEmployee = myGrid.selectedItem as an employee.

    The above code compiles fine. But when I click on the grid I get the error "object no has no properties". This didn'; t tell me much, so I changed the code to use the AS2 casting as such code:
    oEmployee = Employee (myGrid.selectedItem)

    It compiles also throws very well time ar was able to run this error:
    Type coercion failed: cannot convert Object@9a00b01 to the model. Employee.

    I thought I saw examples somewhere of a person by passing a selectedItem to a custom class object, but I can't make it work. I have to write code like this: oEmployee.first_name = myGrid.selectedIndex.first_name? My VO has a lot of data in it and it would be tedious. Only, I could work around the whole thing of vo and easy to write:
    myFormItem.first_name = myGrid.selectedItem.first_name but one) that doesn'; t promote loose coupling between components generic and b) I want to use this data in the vo oEmployee to switch to a cfc in a recording method.

    Thanks in advance for any help on this!


    Thank you, Tracy. In fact your first answer helped me solve the problem. It triggered something that I read on the nature of the object that ColdFusion returns a query object. This object can be cast in an ArralyCollection and used as a data provider in a data grid, the object of the selected element it produces is of a very general nature and cannot be cast. So in my ColdFusion CFCS, I loop on my results of the query and transformed the subject of the application in an array of Employee objects with each element in the table corresponding to each row in the result set represented by an instantiation of my Employee.cfc (value object). This array of instances of the employee, this is what happened to Flex. In Flex, then I create a just ArrayCollection bound collection whose source of the attribute is the jailer returned (cast on an array of Flex for good measure) ast the data provider for my grid is used. Now, when a user clicks on a record in the grid of th, the selectedItem object is of type = used and eventhandler for this: oEmployee = resultsGrid.selectedItem as an employee. As long as the Employee.cfc of ColdFusion and flex Emloyee.as class definitions are the same (with respect to properties), oEmloyee will be magically filled with data of the selectedItem object.

    I don't have any have how it works because my Emloyee.as class file has no getters or setters defined. But then again, primitive man learned quickly not to fire quesiton either, huh?

  • passage of data container of teststand labwindows/cvi handle error

    Hello

    I'm moving a container of teststand parameter to labwindows/cvi using this UI API messages following this code created by Peter-r. example:

    https://decibel.NI.com/content/docs/doc-23332

    It is a great example to start with, but as I run using worldwide debbugging lying on the build options, I see that the handle of the containerData object is not released. If I add the CA_DiscardObjHandle (containerData) anywhere in the project, it gives me a FATAL_RUN_TIME_ERROR. This handle must be released? If I call a bunch of these user interface Messages, it will cause memory problems? My code runs right now, great, but I don't want to face a problem of memory later.

    Any help on this will be great!

    Thanks in advance.

    -Luis

    When you add throw it? Maybe you add it to the wrong place. You must add it just after the CA_FreeMemory() called as follows:

    CA_DiscardObjHandle (containerData);

    It should work.

    You can also try the following instead of the functions:

    CA_CreateObjHandleFromInterface (var, & IID_IUnknown, 1, LOCALE_NEUTRAL, 0, 0, & containerData);

    I think that you will still need to get rid of the objhandle when using this API.

    -Doug

  • I would handle the scroll button in the Hbox container IE

    I would handle the scroll button in the Hbox container IE...

    a button '+' and '-', when I click on '+' the page to scroll upward in a container (IE Hbox) and when I click on '-' the amine of the page down

    How should I do?

    Thank you

    When you click on your buttons, change the verticalScrollPosition and horizontalScrollPosition properties.

    http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-au-Flex-4 /.

    http://blog.flexexamples.com/2008/11/27/auto-scrolling-a-textarea-control-in-Flex/

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance - Flex 2 and 3 certified ACE

    www.ChikaraDev.com

    Training Flex and Support Services

  • Receive a DNS Solution Yahoo error handler Page and some pages are not displayed

    I recently downloaded the Stuffit Expander and since then Firefox has not been the same. I get a DNS Error Handler Solution Yahoo page, when I do a search sometimes. And now, some pages don't display even for me when they should. How can I get rid of this thing of Yahoo (in simple terms please)? Thank you!

    You can have an unwanted extension that modifies researchers. Try this:

    Disable all non-essential or unrecognized extensions on page modules. Either:

    • Command + shift + a
    • Tools menu > Modules

    In the left column, click Extensions. Then, when in doubt, turn off. (Or if it is obviously the badware, delete).

    Typically, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Who help me?

    Note that when you search from the address bar of Firefox, searches that contain no spaces are checked as possible (e.g., intranet or my.web.server) server names. Most of the servers DNS don't report just "no server" and Firefox bounces the query to Google. However, some DNS servers say Firefox, they found the site and display the search results. This could be what you see. If it is new, maybe your DNS servers have been changed? (Don't know how to check on Mac).

  • The best way to separate the user interface in the model LV 2012 queued Message Handler?

    If you create a new "queued Message Handler" new model 2012 LV, you will see a blue box in the case of "Update view" that says the following:

    Code Recommended - If you wish to decouple the Message Handling Loop from your user interface, consider creating User Events (like the "Stop" event in this VI) to message the Event Handling Loop whenever the user interface needs updating.
    

    I would like to give a suggestion, but I am struggling to find the best way to do this and still keep code modular.  The template creates a user - Stop.lvlib "event with a create/Destroy/fire Subvi.  I would like to create a library of "User event - Update UI.lvlib" similar with similar Create/Destroy/fire Subvi keep this new modular and separate user event.  The problem, I am struck, is that there may be only two hydrants in case Structure dynamic event so, how I modularlize creating user events in separate SubVIs and always maintain this dynamic event terminals?

    As a follow-up on the issue, it would be preferable to have a library of user by indicator events that must be updated or that a single UI update of the user and then event pass a cluster as the message that contains the name of the control for the update (to use with a structure of matter), then the data to go with it?

    Thank you!

    Instead of having the events to record in the 'create' methods, you could be part outside your 'create' SubVIs and then simply bundle them. Then, you create your individual event of the user management. See excerpt where I created a vi 'Create user event - Update' in front of the stop.

  • Problems after editing a Subvi containing a group of dynamic user events

    Hello

    I like the dynamic events in graphical interfaces as a means of code reuse. But this can lead to recording a lot of dynamic events. To handle this, I have a Subvi, which saves them for me. A typical looks like this:

    Can I use it something like this...

    The first time I do it, it works really well and keeps my code (relatively) pad. The problem that I have met a few times is changing the Subvi. Suppose I have add a new event. Now my "Event Registration refnum' and 'User events' cluster outputs are broken. No problem: remove those, create new ones, bind them to the output terminals. Fine. Now go to the appellant. Maybe I again to clear some unwanted and rewire here and there due to type definitions. Cool, actually. Regard to the block diagram is, that everything will be OK at this stage; There is no broken wires. However, there always pesky errors saying "generate the user event: contains terminal unwired or bad.

    It's obviously some kind of conflict def guy in a mask. I'll generally through the entire schema tearing wires, knots, generate screws of user event, event loops, cluster unbundlers, works. So I have this code all back in hand. This arrow always gray. I'm going to compile mass once or twice. Still a no-go. Make a new VI and copy the code in there. The same problem.

    I have encountered this problem several times and don't think I've ever hit to the solution. Finally, I just go back to before the changes and give up.

    Any idea what's going on? How to get it out?

    Thank you

    Nick

    The error is because the Terminal event data are left not connected to generate the user event which is Terminal type required: https://zone.ni.com/reference/en-XX/help/371361H-01/glang/generate_user_event/

  • CAN message handling

    Hi all

    I'm new to LabView and I find it extremely difficult, mainly because of data types.

    First of all I need my project to record all of the CAN messages.

    Second, I need to inspect the ArbitationID and act accordingly on this (some with the result one CAN write)

    So I need to deposit the data accordingly and display data on the GUI

    Usign the single read I can convert CAN Inc. timestamp in a message string and save it but if I try and convert it to a cluster for manipulatuion all I get is the 8 bytes of data

    If I use the multi CAN read I can't break the 5 elements in a cluster within a Bay down to save the message

    Any thoughts?

    I saw many more code, but you make several mistakes that I think make things more difficult.

    When you playback your output is an array of frames.  Each image is a group of 5 things, timestamp, ArbID, IsRemote length data and data.  The table of the service Cluster that you are using is not one you should use.  Who's going to take a picture and turn it into clusters, but you must set the size and applies by default to 9, then what happens if you get 10 frames in a reading?  The last of them is lost forever.  All the reading that read more then 9 frames will lose one after 9.  In addition, what happens if you have no frames?  Well it converts it to 9 frames that are empty, but you go and connect those who anyway.

    What you really need to do, is to process each image one at a time, by looking at the output and then decide what to do.  This can easily be done in a loop For.  A loop For will be pull each image one at a time and let you do things with it and handle it in a way that makes sense or conditionally to save different data in different files.

    It is a modified version that will process each image and according to the ArbID wrote to one of the 3 files attached.  If the ArbID is between 0 and 0 x 12, it goes to a single file, 0 x 13 by 0x200 he goes to the other, and all other executives go drop a 3rd.  I have also updated the format in the file a bit cleaner and I think that it will contain the same information in a tab delimeted file.  Of course, this is an example, I have no idea of what you really need your program to do.

  • Leaking handles when calling C API Via "Call library function" (example attached)

    Hi all

    Thank you for any assistance you can give. I am a pretty good C programmer and a mediocre programmer LabVIEW so keep that in mind. I created a VI and C simple API to illustrate the issue (all sources included, built with Visual Studio 2005)

    I drove a DLL of the C API with LabVIEW as you can probably guess. There is a delicate part of the C API which requires some pointer math to work. This is the part that is leaking handles (seen in the Task Manager, below. Handles over 2 million and growing). The leak is only seen in LabVIEW and not when you call my API directly from C code (the code for the example C example is also attached)

    )

    The VI that illustrates the problem is quite simple.

    LabVIEW moves of the buffer returned by "card Seq Blk Rd.vi' autour and causing 'Card Seq find Next429Ex.vi' to fail. It's my first clue that something is wrong - I think not that my buffer must move each time. I have to actually do some pointer math in my real API to fix this, but did not bother with this example. The question is the same regardless of the fix - up.

    The attached zip contains my example VI, and C for the API Source code and an example of C using the API (which does not leak handles).

    I'm sure I'm not enter a relatively simple concept LabVIEW memory management here, but still a mediocre time so be nice.

    Regards and thanks in advance.

    Brad


  • How to handle errors in two parallel loops?

    Hello

    I have a loop that contains a structure of event and a second parallel loop that reads digital inputs.

    My question is:

    (a) how can I manage the errors of the various events? So, if in event1 is a mistake that event2 presented as input and can react to this topic. Currently, all events begin with "no error".

    (b) what can I do with the second loop? It is also always startin "without error" and doesn't know anything if there is a mistake in loop1.

    Is this only possible with a global variable?

    Thx for the help

    Create a user-defined event gets triggered whenever an error occurs. The input data to the event must be a cluster of error within another cluster - you'll see why when you go to use it.

    Now create a Subvi when it is called with its cluster of input error indicating an error, it raises the event you created above, otherwise, it does nothing. Install the Subvi in two loops after everything else.

    Register for the user on the structure of your event event and put what you want to happen when an error occurs in its event handler. Probibly should give you the option of quiting. If an error occurs in each loop the same evnt will be drawn and you will have the chance to stop.

    Mike...

  • Table of double filled by DLL contains odd values

    Hello everyone

    I'm working on a DLL call which must resize and fill in an array of double named "values" (2nd to the last parameter). I defined the signature as follows:

    _declspec (dllexport) uint8_t readDoubleArray(uint8_t handle, LStrHandle lPath, int64_t startTime,        int64_t endTime, DblArrHdl *values, LongArrHdl *timebase);
    

    Where is DblArrHdl

       typedef struct {      int32_t dimSize;      double doubles[1];        } DblArr; typedef DblArr **DblArrHdl;
    

    In the call, I read copies of a database and resize the table double as follows:

         int size = doubleArray.size();
    
          if (NumericArrayResize(0x0A, 1, (UHandle*)values, size) != noErr) {           setLastError(MG_ERR_LABVIEW_ERROR, "Failed to allocate memory");          return FALSE;     }
    

    I set the size and copy the values:

    (**values)->dimSize = size;for (int i = 0; i < size; i++) { (**values)->doubles[i] = doubleArray[i];}
    

    When I use the DbgPrintF to validate values, it gives me a value of about 120000 is correct. However, when returned by labview table contains strange data, such as 5.38564E - 315. Here's impression on the array of 'values' once he was through the DLL:

    Here's how I wired it, ignore the grouping, it occurs in the array of values that comes out of the call to the DLL.

    I have no idea how this can be. I followed the examples on the site. I also tried the normal DSSetHandleSize, but it changed nothing. No idea what I was wrong?

    Thanks in advance,

    Vincent

    Hi again,

    Vincent, you have a problem with the alignment. Simply add #pragma pack (1) before the table:

    #pragma pack (1)
    typedef struct {}
    dimSize of Int32;
    float64 elt [1];
    } TD2.
    typedef TD2 * TD2Hdl;

    and everything should be OK.

    See the example as an attachment.

    Andrey.

  • How to add sound to the General error handler

    I'm looking for an easy way to create a sound signal (beep or something) when the General error handler displays an error message.  Someone at - it suggestions?

    Hi Bill,

    make a shell vi containing the error handler and an additional function of "beep". And that's...

  • Maximum number of files that a folder can contain

    Title says it all. What is the practical limit to the number of files that can contain a single folder? These would all be tiny files, usually less than 20K, I'm looking for emotional limit of Windows, rather than the clear disk space limit.

    This is on WinXP SP3 and these files would be created in Word.

    Thanks for any idea.

    I think that with Win7, 20,000 of handling should not be a problem.  Depending on how you access them (such as manually via file |) Open who needs time to load all files to choose among them) it will be slow, but even XP that will handle a lot, even though it may be slower.

    Steve

  • How to improve the search function on a VerticalFieldManager that contains custom managers

    I have a screen with a VerticalFieldManager for a list of custom managers holding.

    The screen also contains an EditField that behaves like a search field, when the user enters the text, my app looping through an array of custom managers and compares the text entered with the text of all managers in the table.

    If the text of a Manager matches the input string, I add this handler to the VerticalFieldManager.

    Here are the relevant parts of my code:

    EditField _editField.
    TempBeanPlaces [] _placesList;
    VerticalFieldManager _vfmCellPlaces;

    ....

    This is the constructor of TemBeanPlaces:

    public TempBeanPlaces (String pPlaceName, CellPlaceManager pCellPlaceManager) {}
    placeName = pPlaceName;
    cellPlaceManager = pCellPlaceManager;
    }
    ...

    And this code handles the research:

    _editField.setChangeListener (new FieldChangeListener() {}
    ' Public Sub fieldChanged (field field, int context) {}
    String text = _editField.getText () .toLowerCase ();
    _vfmCellPlaces.DeleteAll ();
    for (int i = 0; i)< _placeslist.length;="" i++)="">
    TempBeanPlaces tempBeanPlaces = _placesList [i];
    If (tempBeanPlaces.getPlaceName () .toLowerCase (). IndexOf (Text)! = -1) {}
    _vfmCellPlaces.Add (tempBeanPlaces.getCellPlaceManager ());
    }
    }
    updateLayout();
    }
    });

    This works well when the _placesList table is not too big (length of 50, for example), otherwise the application becomes too slow.

    How can I optimize my code for large quantities of custom managers? For example, in the case, the table contains 600 elements.

    I really need to improve this feature. I just read on the ListField in BlackBerry, but since I have this code, maybe I need to rewrite all with ListFields.

    Thanks in advance!

    The biggest problem with update fields as it is time to layout, fields that are added.  If you add such a moment, then each addition will cause a layout.  Instead, you use addAll to add an array of items, or you can also add all of your items to a single Manager, and then add the Manager.  Then the layout occurs only once.

    In your code, the option would be to add managers selected to a vector, transform the vector into an array, then use addAll.

    You don't need the updateLayout().

    That said, more you add them fields, more processing will be available anyway, then perhaps you are trying to add more elements than even this optimization will execute quickly.  If this optimization does not work enough, then you will need to look in a different way, say 'paging' results, then the display doesn't show that the top 25 and the user can 'add more '.  This 'Exchange' is a good approach in my experience, because users will rarely scroll 25, when they can make another research that could give them better results.

    Finally, and to be on par with the comment of Simon, ListField is an extremely effective area because it is a unique field, so layout is easy, and he's not trying to paint lines until they are actually displayed on the screen.  So in your case, you have three options:

    (1) addAll

    (2) paging

    (3) ListField

    Let us know how you go.

  • Determine the size of the container when using SizeUnit.PERCENT

    Hello

    How can I determine the width and height of a container, when I use the percentage of the size of the container?

    I have the following code, but this.width and this.height are both 0, causing the background sprite is not to demonstrate:

       public class HeaderContainer extends Container
        {
            private var _imgCategory:Image = new Image();
            private var _lblTitle:Label = new Label();
            private var _matrix:Matrix = new Matrix();
            private var _sprBackgroundColor:Sprite = new Sprite();
            private var _tfmtTitle:TextFormat = new TextFormat();
    
            public function HeaderContainer()
            {
                margins = Vector.([5,5,5,5]);
                debugColor = 0xCCCCCC; // grey
                flow = ContainerFlow.HORIZONTAL;
                align = ContainerAlign.NEAR;
                size = MyConstants.HEADER_SIZE;
                sizeUnit = SizeUnit.PERCENT;
                initializeUI();
            }
    
            public function initializeUI() : void
            {
                with (_sprBackgroundColor)
                {
                    x = y = 0;
                    graphics.beginFill(0x0000FF, 1);
                    graphics.drawRect(0, 0, this.width, this.height);
                    graphics.endFill();
                }
                ...
            }
    

    Have you tried to call the initializeUI method after the container has been added to the scene? You can easily register a handler to do this.

Maybe you are looking for

  • Read the serial number in LabVIEW of USB-8476 LIN Module

    Is it possible to read the serial number of a USB-8476 module in LabVIEW. I am building a system that will use 10 of these modules in a single system and I want to be able to verify this LINX = serial No.: ABC. I'm afraid that a 'user' will disconnec

  • HP Pavilion dv7-1269us stopped himself turn off reboot screen black

    My HP Pavilion dv7-1260us went 'pop' and turns off. I hit the power button. The LEDs (sound, WiFi, etc.) in line with the power button all came on but the screen stays black and the fan was running. I turned it off. I turned it on with the same resul

  • WIND. 7 MS Essentials

    Hello. Every time * (day) when I turn on PC, got the average of 25-30 errors *(event viewer), sometimes even more, if something randomly crash or install something more "complicated" then usual * (games). BTW, Using MSE - do not need something specia

  • Muse is so slow, especially when adding hyperlinks

    As a designer than a programmer, I love Muse, so similar to the sensation to Indesign. She allowed me to do at my site design is amazing, but...Now really worried that I chose the wrong software to develop my new site. Get slower and slowest of the d

  • Help for problems with the functionality of Capture from Adobe

    HelloI recently installed Adobe Capture on my Smartphone (Android device) and the app is very cool.  However, after a few weeks of use, the software stops working.  I uninstalled the software and reinstalled to see if that would help solve the proble