Need help with case structures- please help :)

Hey all.
I'm currently trying to program a infrared furnace. I'm setting a temperature, subtracted my set temperature from the actual temperature (thermocouple hooked up to SCB-68), and voltage is being sent to the controller of the furnace accordingly. However, I need to hold the set temperature for a certain amount of time. I need help programming this: when the VI reads the set temperature from the thermocouple, it results in a timer running down. When the timer runs down to 0, the While Loop ends. I'm thinking case structures is most appropriate, but if you have a better suggestion, please let me know.
Thanks

You should probably implement a state machine.
The state machine would keep track of the temperature and making ajustments on a timely basis.
There is a template of a state machine is you select under the File menu > New > From Template.
You can also look under Help > Find Example > and do a search for state machine.
There are lots of state machine examples on this forum, some of which may be quite useful.
RayR

Similar Messages

  • Need help with Portal Themes -- Please help

    I need help with Portal Themes.  I have read every document I can find but I am having no luck.  All I want to do is change the colors for the Exceptions on one of my queries.  I have created my own Portal Theme where I have changed the colors but I do not know how to assign my newly-created Portal Theme to my query.  Can someone please give me the detailed steps on how to do this? Please help because this is driving me crazy.
    Thanks.
    Ryan

    Hi,
    Refer
    Exceptions - How to change the colors
    This may help.
    Thanks,
    JituK

  • Help with case structure

    In the VI that i'm enclosing, i have used a boolean array of two booleans to operate two case structures. Inside the case structure, when the boolean is true the shift register value is to be incremented once.The difference between the two incremented values is taken as count. I am facing two problems, firstly, the increment takes place continously instead of just once every time the boolean is true, secondly, the count switches to zero when the switch is turned back to false.
    Thanks in advance.
    Attachments:
    New.vi ‏11 KB

    Try something like this.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    NewMODCA.vi ‏8 KB

  • Need help with a BR - Please help !

    Hi,
    I would please request you to help me with your ideas on achievening the below requirement. I have ideas on doing this but I am not able to put together everything to make it work. Please let me know your thoughts. Will be a great help.
    Requirement:
    The requirement is that if the user enters a data value for Account member "P" on the data form at any level (Top most parent level, intermediate parent levels or 0 level) it should work in the following way.
    1) It needs to check at which level the user entered the value for "P". We have a relation that V = P * T. So what I thought is if I dynamically calculate the "V" value everytime for every product I should know at which place they changed it as if they change the "P" value it would change the "V" value too as both are linked. So, basically I am comparing the stored "V" value with dynamically calculated "V" value.
    2) If the "V" value has been changed at that level (i.e. if stored V Dyn. V) and this condition is met then, all the descendants of that current member should get the same P value as entered by the user for the current member.
    3) This should work irrespective of which parent level they enter and should start filling in the values from that level. And if they enter "P" value at 0 level members, then it should leave them as it is without overriding it and should be used in consolidation.
    This is what I could think -
    Please suggest changes as this is not working still as per the requirement.
    FIX(..........)
    IF (@ISDESC ("LB") AND "V"->@PARENT(@CURRMBR(Product)) P->@PARENT(@CURRMBR(Product)) * T->@PARENT(@CURRMBR(Product)))
    P->@CURRMBR(Product) = @PARENTVAL (Product,P);
    Similarly IFELSE for another condition
    ENDIF
    ENDFIX;
    But this is not working for all the cases. Lets say I have 3 levels in my hierarchy for Product and if the users are entering at level 2 it is not working and replacing the input value with its parent value which I am not sure why as it should in first place not enter the loop only as the condition wont be met. Reason, the user changed at level 2 and not 3 so it should do nothing from what I understand.
    Please let me know your thoughts.
    Thanks.

    You can try something like this. Instead of dynamic V account add "P_Stored" member. If "P" account has data copy that data to "P_Stored" at all levels of the Product hierarchy. Based on your post I understand that Product hierarchy is evenly distributed than business rule can be like this:
    FIX(@LEVMBRS("Product",2))
    "P_Stored" (
    IF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",1))
    "P_Stored" (
    IF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",0))
    "P_Stored" (
    IF("P_Stored" = "P")
    /* I believe do nothing */
    1==1
    ELSEIF("P_Stored" != @PARENTVAL("Product","P")
    "P_Stored"=@PARENTVAL("Product","P");
    "P"=@PARENTVAL("Product","P");
    ENDIF
    END
    FIX(@LEVMBRS("Product",3))
    "P_Stored" (
    IF("P_Stored" != "P")
    "P_Stored"="P";
    ENDIF
    END
    If Product hierarchy is ragged then code should be changed...
    Regards,
    Yuri
    Edited by: yrozen on Oct 26, 2011 6:48 AM

  • SQL I need help with this query Please help

    List the names of all the products whose weight unit measure is “Gram”.  Order the list by product name.  Do not use JOINS, but use the IN clause with a sub-query.
    select Name
    from UnitMeasure
    where Name= 'Gram'
    order by Name
    I did this, but it seem that the requirement is different.

    As a guess:
    Select Name from Product
    where UnitMeasure in (Select Name from unitmeasure where name = 'Gram')
    Andy Tauber
    Data Architect
    The Vancouver Clinic
    Website | LinkedIn
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.

  • Need help with an RMA - please help

    Mt Zen Micro 5GB is busted - the headphone jack issue...yuk So I attempted to fix this using the online guide and it did not work. I am certain that the solder connections are solid now, but still only one channel will play. I am willing to pay to have this fixed, but Creative tech support is ignoring my question as to how to get an RMA and they are sending me email that says I can pay $2.99 for a support session and speak with someone. All I want to do is get an RMA so I can send them the money and the unit for them to fix! If someone could buy those tiny circuit boards for the Zen Micro they would make a mint selling them - it seems like there are a lot of busted Zen Micro's floating around out there.
    Please - someone help me figure out how to get an RMA and a price to repair the Zen Micro - I am missing my tunes....

    you ant get a rma u broke the waranty contract if yoy try fixing the player your self the warranty is then invalid you can still pay for them to fix it or you can get a new mp3 player rma only works if your warranty is still valid not valid is torugh normal tear and wear tampering breaks the contract

  • Need Help with random numbers, please help

    Hi guys;
    I need your help for a school project. I need to generate a random number from 1.0 to 2.0. How would I do that?
    Regards,

    http://java.sun.com/j2se/1.3/docs/api/java/util/Random.html#nextFloat()

  • Need Help with Typography. Please Help.

    I have final cut studio 3 and want to do some typography, I can only find tutorials on how to do it in after effects. I do not have after effects and do not have that kind of money to buy it. I know motion 4 is capable of doing typography but how. I need someone to explain how exactly to do it or can someone give me a link to a tutorial of how to do typography in apple motion 4 (or 3). Please I really need to do do a typography project. How can I do this in motion 4.

    Check out Mark Spencer's website. I believe he has a tutorial on typography there.
    [AppleMotion.net|http://www.applemotion.net]
    It's bascially the same idea in Motion as it is in AE. It's not that complicated; it just takes a lot of work.
    Andy

  • Help with JEditorPane :). Please help...

    Hi there,
    I can not find out how the JEditorPane get's its' information on which Text to show.
    I know that there is a Document, representing the text information and an EditorKit, offering main functionality for editing, but what methods are actually called from where to get the text that is stored in the document?
    What methods are called from where?
    Could anyone help me please, I am rather desperate.
    Thank you very much
    Charly

    Here is a link to a section in the Swing tutorial that shows you how to use text components (JTextField, JTextArea, JEditorPane, JTextPane):
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

  • I need help with event structure. I am trying to feed the index of the array, the index can vary from 0 to 7. Based on the logic ouput of a comparison, the index buffer should increment ?

    I need help with event structure.
    I am trying to feed the index of the array, the index number can vary from 0 to 7.
    Based on the logic ouput of a comparison, the index buffer should increment
    or decrement every time the output of comparsion changes(event change). I guess I need to use event structure?
    (My event code doesn't execute when there is an  event at its input /comparator changes its boolean state.
    Anyone coded on similar lines? Any ideas appreciated.
    Thanks in advance!

    You don't need an Event Structure, a simple State Machine would be more appropriate.
    There are many examples of State Machines within this forum.
    RayR

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • I need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help

    i need the drivers for earl 2011 macbook pro 13 inch i7 4 gigs for windows 7 64 bits i tried downloading with bootcamp butt it never completes allways ends up with an error please help if any one has the drivers or knows were i can download them

    Doug...
    If you don't have it for reference, the manual might come in handy > US/Boot_Camp_Install-Setup.pdf
    After it loads, Command + F to find information regarding the drivers.

  • Hello. I am having much difficulty using any software drum program. I am trying to use EZ Drummer and the drum programs in Logic, with limited success. I was using them, and they were working, but this is no longer the case. Please help me navigate my way

    Hello.
    I am having much difficulty using any software drum program. I am trying to use EZ Drummer and the drum programs in Logic, with limited success. I was using them, and they were working, but this is no longer the case. Please help me navigate my way through these issues, if possible.
    Thanks.
    Eric

    Aha! I have sorted it.
    For those with similar problems, the solution is this:
    Macintosh HD > Library > Audio > MIDI Drivers
    Then delete DigiDioMidiDriver.plugin

  • When i am trying to restore backup to my iphone, its coming up that back is not compatible with iphone. Please help me restore backup.

    Hi
    When i am trying to restore backup to my iphone, its coming up backup is not compatible with iphone. Please help me restore.
    Thanks
    Mandy

    From the article that the question was posted from:
    Error 1611
    This error typically occur when security software interferes with the restore and update process. Follow Troubleshooting security software issues to resolve this issue. In rare cases, this error may be a hardware issue. If the errors persist on another computer, the device may need service.
    Try reading the solutions you find in the future and follow them.

  • HT4623 my voice call services is not working with cellular network...only works fine with wifi..please help?

    my voice call services is not working with cellular network...only works fine with wifi..please help?

    Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
    http://docs.info.apple.com/article.html?artnum=108044
    Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
    In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express.

Maybe you are looking for