How to control tank and thermomete​r in my virtual system

Hi all
I have a problem with my program in labview. I'm trying to create an app that consist of 4 parts:
1. To fill first tank from 0 to 90 (first variable - water level )
2. To raise temperature form 0 to 40 (second variable - temperature)
3. To move water from first tank to the second 
4. Back to first point - filling the first tank
etc
I've used 2 switches: turn on/off, start/stop process. Both of buttons can stop the whole process but values of all variables should be remembered
Thanks,
Tom
Attachments:
projekt labview.zip ‏25 KB

Hi Tom,
Thank you for describing your application. Looking at your project, it seems obvious what you can do to improve your application.
The architecture you chose resembles that of a finite state machine.
In order to properly implement it, please use Enumerated constants instead of String constants for your states.
To preserve and correctly control dataflow, use shift registers on your while loop instead of variables.
To get started quickly with your architecture, select Create New - VI from template from the File menu in your project window. In Frameworks - Design Patterns choose Standard State Machine.
To fully understand dataflow in LabVIEW, go through tutorials and learning materials here
http://www.ni.com/gettingstarted/labviewbasics/
Let us know if you have any more specific questions!
Patricia

Similar Messages

  • Modify control record and send out to external (TAMA) system using ALE

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • Modify control record and send out to external (TAMA) system

    Hi All,
    I have a scenario to send idoc from ECC 5.0 to 3.1R/3 and then to TAMA system (external system-through TRFC)
    In the inbound process code of 3.1R/3, I have to write a custom FM to modify the control record and point to TAMA system and then send it out to TAMA system.
    Has anybody got idea about this and what function module need to use for modifying the control record and send it out. Any help is really appreciated
    Thanks
    Ricky

    Hi Ricky,
    To access IDoc data and modify it in your custom FM, you could investigate the following FM's:
    EDI_DOCUMENT_OPEN_FOR_PROCESS
    EDI_SEGMENTS_GET_ALL
    They should allow you to access the EDIDD, EDIDC tables.
    The IDoc related functions are contained in the function group EDI1, it may be helpful to start from there.

  • How to control size and clarity of text?

    Since installing Firefox 4, I notice that text is sharper and clearer, but also smaller. I'd gladly give up some screen resolution to have text that's larger and easier to read, just as I used to with Firefox. Small type, no matter how clear, is harder to read for people over 50.

    Much older than just "over 50" here, so I know your pain.
    Try one of the following:
    *'''''Default FullZoom Level''''' (I use this extension) : https://addons.mozilla.org/en-US/firefox/addon/6965
    *'''''NoSquint''''': https://addons.mozilla.org/en-US/firefox/addon/2592/
    **More info about NoSquint: http://urandom.ca/nosquint/

  • Manufacturing with a third party, How to control cost and automate

    JDE E1 v8.12 will be upgrading to 9.0
    I am new to this so if someone has ideas or point me in the right direction. You see we Order a supply of Wrappers, Trays(Boxes) and Master Shippers(Cases). This is put into inventory . We Only ship out amount needed to our third party when orders need to be filled, (Our 3rd party completes of finished goods). Rest of the Wrappers, etc are stored in our warehouse.
    iInventory adjustments are done when sending to our 3rd party. When we buy the wrappers etc creates a large negative variance which floats on our books, It takes about 2-6 months to offset the variance. Our 3rd party makes our finished goods and we send them the packing etc, so our 3rd receives Wrappers, etc to complete finished Product
    We are charged for Labor and the finished product.
    The things we want to keep track of is
    labor(3rd party)
    Finished product(3rd party)
    Wrappers
    incurring a (+- 5%)Spoilage of wrappers
    Boxes
    Freight*
    iWe get hit with freight cost 3 times
    (1)     1st cost freight to 3rd party
    (2)     2nd cost freight back to us
    (3)     3rd cost freight out to the DC( Distribution Centers)
    Things we would like to automate
    •     Be able to place a PO for finished goods to 3rd party
    •     The system knows and states what components are needed to complete the finished goods(So we can monitor it)
    •     The system flags when more components needs to be ordered(so our supply does not fall below our benchmark)
    Within manufacturing this product wewant to be aware of our prime cost
    Prime Cost
    1)     Direct material
    2)     Labor
    3)     Other direct cost(e.g. packaging and royalties)
    Since we send our material (packing only) to a third party to complete the finished good, within the manufacturing suite. We can we use? Do we have to have manufacturing account as well? .
    Any suggestion would be received.
    Thanks

    Control the process with Outside Process Work Orders. You create a Work Order and a parts list in the normal way but have a two step routing, the first step is the Outside Process done by the Third Party and the second step is receipt of the goods back from them (JDE will not allow an Outside process to be the last step on a routing)
    With the first operation you will need a OP item number, this is part number which is made up of the Item being manufactured plus the characters OP plus the operation number, this part number represents the service that the 3rd party is providing and is set up as a Stock Type X, Line Type X
    When you run R31410 to attach the parts list it will automatically raise a Purchase Order on the 3rd party
    You can then issue the parts to the Work Order in the normal fashion and since you have a P/O for the manufacturing process this will acount for the 3rd party labour
    Look on Oracle Support for document 647965.1
    Steve

  • How to control required and optional data elements

    I am developing a web service using a stateless EJB. By default, when I use servicegen, the WSDL contains nillable="true" for all elements. How can I modify my EJB code so I can specify which elements are required vs optional?
    Thanks.

    Hi,
    Use Function Module READ_TEXT to retrive the long text.
    Pass below values for parameters
    text name - <data element name>
    text id - 'TX'.
    text object - 'DOKU'.
    <b>Reward points for helpful answers</b>
    Satish
    Message was edited by:
            Satish Panakala

  • "Atach photos to message" checkbox-"How to control this and why?

    For my iPhoto collection when I share a photo via email this box is selected and the item is grey'd.
    Want to know when and why I would not want this to happen. I'm more experienced with iPhoto and this does not bother me but I'm trying to help a Win7 to iMac switcher and am not sure about this.
    Thanks...

    Sending from iPhoto create a HTML message and the photo is optimised for the medium (read: reduced in size). Also, some mail applications don't handle HTML mail very well.
    The check box means that an attachment is sent along as well, which can make it easier to get full quality images for the recipient.
    Not sure why your option is greyed out though. Mine isn't.
    Regards
    TD

  • How to control the RPM of motor for large rotating systems like rotary kilns?

    hi,i am working on the scale down model of rotary kiln.i want to know how can i control its RPM or speed ?

    NI provides various motion control solutions. Please refer to http://www.ni.com/motion/ for a starting point. Please feel free to post any specific question here.
    Thanks and best regards,
    Jochen Klier
    National Instruments

  • How to control the authorization as display only in ECC system?

    Hi all,
    I want to control the IT users' authorization as display only for each Authorization Object.
    As i know, there are 177 Item of field "ACTVT" in ECC system, But i'm not ture which the value can limited the authoirzation as display only.
    Im worry about IT users have not authorization for the work if just keep "03-display" in authorization object, I plan to remove below value of ACTVT:
    01-create, 02-change, 05-Lock,06-Delete,07-Activate, generate
    But i'm not sure whether should be removed for below values:
    52-Change application start
    60-Import
    61-Export
    62-Create automatic Ledger
    63-Activate
    64-Generate
    70-Administer
    75-Remove
    C3-Maintenance of manual auth.
    C4-Develope Payment Card
    FP-Change customer field selectn
    Could anyone can tell me, Which values of ACTVT can limited the authorization as display only. at the same time, it havent an effect on work of IT users.

    Yep, I agree with Jurjen. It is not only limited to ACTVT, but rather fields of other objects as well which are "action" or "activity" related.
    I would start the other way around - give them '03' only and investigate any transaction specific claims that it is not enough. There will be a few...
    Cheers,
    Julius

  • How do I reformat and start over on an outdated system without buying a new computer?

    It would appear that when I deleted the partition I originally had set up for Boot Camp, I did it through Disk Utility instead of Boot Camp. I now have about 65 gb of empty hard drive space that I can't utilize and my start up disk is almost full. I get a message that the disk can't be verified and the option to repair the disk isn't availble (greyed out). The system also wont allow me to resize my start up disk regardless of what I try. When I put my original Snow Leopard cd in in an effort to erase and reformat the system so I can start from scratch, it tells me it cant because it is outdated and the system has been upgraded to a newer operating system. I have everything backed up and would be happy just erasing the entire thing and starting from scratch with my original Snow Leopard OS and build it back up to current. Anyone have any ideas?  My Mac Mini still works great and from a hardware standpoint is in excellent condition...

    My next suggestion, get yourself an external  USB or
    Firewire hard drive (Firewire preffered because it is faster)
    and clone your Mac installation to it using Carbon Copy Cloner
    or SuperDuper (this is a good idea anyway, even without your
    issues).  Be sure you reformat/partition the external drive to
    GUID partition scheme so it will reboot.  After this is complete,
    boot to it and then reformat and repartion the entire hard drive. 
    When it is complete, then clone the external drive back to the internal.
    The above process should allow you to fix things without the need
    to do any reinstalls and as a bonus, you end up with a fully bootable
    back up of your system which you can update periodically.
    Another option, is to create a USB memory stick based Recovery HD
    (http://support.apple.com/kb/HT4848).  Then boot to this and use Disk
    Utility and reformat/repartition the internal  drive and then use this to
    reinstall Mavericks.   This method does require reinstalling everything
    and be sure to backup all your data before.
    The reason that you may not be able to fix this currently is
    perhaps you are trying to do it from the same disk you are
    running from.

  • How to classify new and old user account from idm system using SPML

    hi all,
    i can use SPML code to create new user on IDM system but, i can't classifying new or old user account
    any advise ? very thank you in advanced.
    athikom.

    Hi Vikram,
    Iam not sure though, did you chekced EXIT_SAPMM06E_022 if it helps you in anyway.
    Regards,
    Swarna Munukoti

  • Control + Click and Drag

    Hi there,
    Scenario
    I need to use Google Chrome on my early 2011, 13' Macbook Pro (running Mavericks 10.9.2) for an online job. They have their own interface which is only supported by Chrome and not Safari or any other browsers.
    Problem
    On some specific tasks that I do, I need to draw a box on the interface while Pressing the Control key, but when I press Control and Press mouse button to draw the box, it brings up the MENU.  This doesn't seem to be working with Command key either, since unlike windows, CTRL is COMMAND in mac.
    I need to figure out how do Control + Click and Drag in the interface.

    I don't see anything via that link that I can relate to this posting.
    If you want to make the change in frames happen solely based on the direction (x) that the mouse is being moved, then you need to test the current position of the mouse against the last known position...
    var startPosition:Number = mouseX;
    wwr_mc.gotoAndStop(10);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouse);
    function onMouse(e:MouseEvent): void {
        if (mouseX-startPosition >= 0) {
            wwr_mc.nextFrame();
        } else {
            wwr_mc.prevFrame();
       startPosition = mouseX;
    I am not sure what you find as being too fast.  When you are doing things relative to an extended event, such as a mouse being moved for some time, then it is highly likely that the event will execute the event handler function repeatedly... as fast as the frame rate of the file allows.  So if you want more control of the rate at which mouse moves effect nextFrame/prevFrame function calls, then you need to build in some form of delay.  In the example below, it takes the form of removing the mouse move event listener for a short period using a timing function (setTimeout in this example, though you could use the Timer class as well)
    var startPosition:Number = mouseX;
    var delayTime = 250; // 0.25 sec
    wwr_mc.gotoAndStop(10);
    stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouse);
    function onMouse(e:MouseEvent): void {
        stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouse);
        var currentPosition:Number = mouseX;
        if (currentPosition-startPosition >= 0) {
            wwr_mc.nextFrame();
        } else {
            wwr_mc.prevFrame();
       setTimeout(setListener, delayTime);
    function setListener(){
       startPosition = mouseX;
       stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouse);

  • How to draw valves and tanks in labview 6

    hello all
    I am a beginner in LabVIEW. As a newcomer I have done small programs on blinking LEDs and controlling water level in tank and so on. Now I am doing a project on gas mixer. While exploring through the examples I saw a more or less similar example in the HELP option. In the GUI there were valves and tanks and pipes. Now my question is that how will I be able to draw these pipes, valves etc in the front panel of labview?
    Thanks in advance
    Rohini
    N.B i am attaching the picture of the front panel.
    Solved!
    Go to Solution.
    Attachments:
    gas mixer.JPG ‏98 KB

    You asked basically the same question in July 2010, and it was indicated that the valves and tanks came from the DSC module. If you cannot buy it then you will need to use LabVIEW's Control Editor to customize controls. The LabVIEW Help describes how to customize controls. You can also search the NI site for examples, like this one:
    http://decibel.ni.com/content/docs/DOC-4819

  • Control-k key binding broken. How can I check and change my key bindings?

    I use the Terminal app a lot. Unfortunately I am not able to use the control-k shortcut to cut lines in the terminal anymore. How can I check (and change) the Terminal key bindings?
    Thank you!

    Basing on your input, you should get the following values:
    1) session keys
    SK_ENC: 6DCE2A99BACB5207A7A96A92F114D66C
    SK_MAC: 0D446132B168F75CD6F0A780693A4DD3
    SK_DEK: 19F7B0F94837F32874B29B5EFB7809F6
    2) host cryptogram
    1B781553209748EA
    3) Retail MAC
    01761103B810F00E
    Summing up, the External Authenticate command should have the following value:  84 82 01 00 10 1B781553209748EA 01761103B810F00E.
    Try to compare it with your results.
    Regards

  • Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps wit

    Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps with ios7

    Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past.  With the new operating system you also swipe downward to get the search bar to find an app

Maybe you are looking for

  • Customer conversion for non-english language

    Hi: We have a requirement to convert customer data from lagacy system to Oracle EBS supporting English and Non-English languages. Our conversion programs for english is working fine but we are not sure about the approach for other language converions

  • How do i get bejeweled on my ipod nano.

    how do i get bejeweled on my ipod nano. iv tried everything. please help.

  • Functions in File

    1) I have tried finding a description in the help using the tooltip text displayed for this ring popup, i.e. Functions in File. No success, neither index nor search. Since many years I am asking for an improved help - until now the 'help' search only

  • Can't Open an iBook (from iBook Author)

    I downloaded an iBook, one which was created in iBook Author. I get a message that simply says the file cannot be opened. (The document "iBook Name" could not be opened." I imported the iBook into iTunes and tried to add it to my iPad. But the iBook

  • Modify hostname while automatically generating task-form in human wok-flow

    Hi, I am creating one task form automatically, using the option available "create form -->Auto generate task form" in task file using jdev 11g. The form is good, but when I try to access this form in oracle BPM worklist, it gives me error "Unknown Ho