Need help created state machine with timed digital output

Hello everyone I'm new in LabView especially about how to make a state machine. I want to make simulation about state machine with digital output. In Front Panel there are volt_in as an input slider (0-10 V), two numeric control (upper limit and bottom limit), a waveform chart to plot those 3 value, and three boolean (P0.0, P0.1, P0.2) as an indicator. Boolean indicator will on if input from slider exceed the limit in certain situation. This simulation will work as follow:
1. Define the upper & bottom limit (ex. 8 & 4V)
2. Make an input from slider (0-10V)
3. If input (2) exceed the upper limit but less than 10 second (ex. you have 9V input for 8 second, but after 8 second you change the slider back to normal between 4-8V) then the boolean indicator P0.0 & P0.2 will stay off
4. If input (2) exceed the upper limit more than 10 second (ex. you have 9V input for 4 second, change to 8.5 V for 3 second, and then change to 10V for 3 second) then the boolean indicator P0.0 will turn on for 5 second, turn off, then follow by indicator P0.2 for 5 second, and turn off
5. Wait 15 second, then repeat process from (2)
Same process for input that exceed the bottom limit (P0.1 and P0.2 as indicator).
Can you help me make the block diagram of this process? I will appreciate any of your help.
Best Regards
juventom 
Attachments:
State Machine Digital Output.vi ‏28 KB

I would highly recommend you to open the template in LabVIEW to design state machines. You can the Standard State Machine template if you go to File -> New.. and Browse to VI -> From Template -> Frameworks -> Design Patterns.
Also, here is a good explanation of one:
https://decibel.ni.com/content/groups/northeast-oh-labview-users/blog/2009/09/08/state-machines
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • Need help created state machine that is time based

    I need help with my labview program. My goal is to write a program that allows the user to turn a toggle button on/off. When they do this it will start a loop witch turns on a digital switch for 45 minutes then off for 30 seconds and on and on till the user toggles the switch off. The timing does not have to be precise. I am using the NI 9476 digital output card.
    I have written the code to turn the switch on/off. I know need to add the looped fuction for on 45 minutes/off 30 seconds. I assume the most efficient method would be using a state machine, but I was having trouble figuring it out.
    Attached is the program I have written thus far without the loops.
    Thanks,
    Barrett
    Solved!
    Go to Solution.
    Attachments:
    Test Setup X01.vi ‏16 KB

    I cannot see your code since I don't have 2010 installed. A state machine would be good approach but in order to allow the user to cancel and possibly abort the process at any time your state machine should have a state such as "Check for timeout". In teh loop containing the state machine use a shift register to pass the desired delay value and the start time time for that particular delay. Once the user starts the process set the delay time to your desired time (45 minutes expressed as seconds) and have another shift register that contains the next state to go to after the delay completes. Use a small delay (100ms to 500ms depending on how accurate you want your times to be) to prevent your state machine from free running and then check the delay again. Use the current time and compare it to the start time. If the desired time has passed then go to the next state. You can store the next state in a shift register. No do the same thing for your Off Time state.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Simple Delay in State Machine.vi ‏14 KB

  • Need help creating smooth graphic with transparency for web use

    I have created a logo that is mostly white with white text and will appear over a textured background image. The logo contains text that I've converted to outlines. I've tried saving it as both a .gif and a .png, but when it's imported into iWeb, the outline of the graphic looks jagged and rastered. When viewed in Photoshop, it looks OK as a .png, but not great as the .gif.
    I've tried saving it out as RGB, indexed color and greyscale, using PhotoShops "save for web" function or just saving it as 72dpi myself. I don't know how to get the edges to remain smooth. Any advice would be greatly appreciated.

    Thank you J - here's the weird thing. I actually HAD saved it as a PNG24, and it looked fine on my machine. When I sent it to my client, who used it on his iWeb page, it looks jagged.
    After I got your answer, I went to his iWeb page and downloaded the same background image he's using and imported it into a Dreamweaver page on my machine, and placed the same PNG logo over top - it looks as crisp and clean as a whistle. I have to assume that something's happening when he imports it into iWeb. Since I know zero about iWeb, I guess I will have to post another question on their forum, unless anyone knows what could be causing this.

  • Need help creating a rectangle with a bunch of  text scrolling up within it

    Hey everyone, I'm using Motion 2 and want to add a large amount of text scrolling up. Which behavior would be best to use, the Scroll up or Motion Path?
    I want to create a rectangle where the text will be scrolling within it but I'm not sure how to do that. I'm I suppose to create a mask rectangle and then add the text?
    Please help
    Thank You

    As with most things there are a number of ways you could do it.
    One way is, if your making a rectangle anyway (as a bkg for the text) you can make an image mask (command shift m) on the text object and drag the rectangle into the mask well (then turn the rectangles visibility back on). This works with a filled rectangle.
    Of course you have to format the text to fit in the rectangle as it won't act as a bounding type area (like in AI, PSD).
    o| TOnyTOny |o

  • An example of a state machine with transition array?

    I am looking at state machine design patterns and am interested particularly in a state machine with boolean trasition array which defines the next state to be executed using an array. Here, the index of the first “True” boolean in the boolean array corresponds to the index of the new state in the array of enums. Has anyone got an example of this design pattern as it would greatly help in my understanding of it. Refer to figure 3c in http://zone.ni.com/devzone/cda/tut/p/id/3024#toc2 for clarity on what i am asking for.
    Thanks in advance.

    That seems like a lot of extra work. Why not just use a queue, and queue up the enum you want to go to next? Look up examples on queued state machine. No need for an array and then a boolean to index that array. here is an example
    CLA, LabVIEW Versions 2010-2013

  • Need help on struts configuration with ColdFusion 10 using IIS

    We need help on struts configuration with ColdFusion 10 using IIS.
    Earlier we were using ColdFusion 8 with IIS 6 for one of our application.  This application internally calls struts. After upgrading to ColdFusion 10 struts calls are not loading. We get 404 error.
    In ColdFusion 8 struts were configured using  actions extension .do in IIS from this file-
    C:\ColdFusion8\runtime\lib\wsconfig\jrun_iis6.dll.
    But in ColdFusion 10 this file is not present as ColdFusion 10 uses Tomcat in place of Jrun.
    Also there is no information in ColdFusion log file.

    Duane wrote:
    doctormirabilis, Welcome to the discussion area!
    1) how can i configure the time capsule in order to operate as a remote base station synchronizing with the relay using the ethernet port?
    Configure the Time Capsule to act as a bridge (not distributing IP addresses). Also configure the Time Capsule to create an 802.11n wireless network with a unique network name (SSID). That's it.
    2) how can i avoid that my powerbook while accessing my wireless network does connect through the relay station instead of using the time capsule?
    Configure the Time Capsule to use a different network name than the WDS link between the 2 AirPort Express (AX). Configure the PowerBook to use the Time Capsule network.
    There are 2 pieces of information that you should be aware of...
    (1) None of the PowerBooks are capable of 802.11n.
    (2) The WDS link cuts your available bandwidth in half. So the wireless link to your neighbor's has a maximum potential of 27 Mbps.
    Let's for a minute assume that you have a Mac compatible with 802.11n. In your configuration the time you could take advantage of the 802.11n speed is when the Mac is sending/recieving data directly from/to the Time Capsule.
    There would be NO speed increase in Internet access. The speed of Internet access is going to be controlled by the slowest link in the path to the Internet. That is probably the connection to the ISP. The next slowest path is the WDS link to your neighbor's.
    Duane,
    I am in a similar situation, sharing internet with my neighbor. Do you think it would be plausible to hook up a vonage phone adapter to time capsule's ethernet port if time capsule is bridging from my neighbor's router in the configuration you have described? A check of my upload speed shows 1.67Mbps (powerbookG4 w/ airport extreme). Vonage reccommends 90kbps minimum upload speed. Am I going to lose some speed putting the Vonag adapter behind time capsule?
    Thank you

  • Need help re-synching iPods with new computer and getting iTunes to...

    Need help re-synching iPods with new computer and getting iTunes to recognize our iPods (it doesn't even recognize them when they're plugged in).
    Hubby wiped my harddrive for me, so now I need to get everything back in proper places. I'm using windows XP and installed iTunes once again (I believe it's version 8). I also installed all of my iTunes songs. Now I need to know where to go from here. We have 3 iPods and I need to get them all synched once again. I know how to create different libraries for each of us, but I can't figure out how to get our songs back into our iTunes libraries. When I open iTunes and plug in an iPod, iTunes doesn't even show that an iPod is plugged in.
    What do I do now to get each of our iPods synched with our own libraries?
    TIA
    Brandy

    Thanks Zevoneer. The "Restart ipod service" worked and itunes is now recognizing my ipod! Hooray!
    Okay, now how do I synch all of our ipods with our individual libraries (I don't want all of my kids' songs and vice versa)? We each have hundreds of songs on our ipods that we don't want to lose.
    Thanks again!

  • As this is an adobe DRM protected book you will need to import the book with adobe digital editions to open this book. I USED ADOBE DIGITAL EDITIONS TO UP LOAD THE BOOK TO MY TABLET. HELLP

    as this is an adobe DRM protected book you will need to import the book with adobe digital editions to open this book. I USED ADOBE DIGITAL EDITIONS TO UP LOAD THE BOOK TO MY TABLET. HELLP

    To attempt a new chat session...
    For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    http://helpx.adobe.com/x-productkb/global/service1.html

  • Need to create a textinput with effects

    I need to create a textinput with effects- it should show a blue icon infront of it when the icon is focused and the blue icon should fade afterwards. I am pretty sure I need to use skin but the problem is I have only two states with textinput control and not sure how I would use those to ensure a handling mouse hovering effect. Right now I am not able to create a custom component bacuae I have to modify the whole code wherever there is textinput control.
    Thanks in advance.
    Rachel

    You might find this blog post useful: http://flexponential.com/2010/01/24/custom-focusskin-for-spark-components-in-flex-4/

  • I need to create a link with confirmation..

    Please I need a help o this :
    I need to create a link with confirmation, it means that after clicking the link it does not redirects to the next page, but first it displays a question like "Are you sure you want to go to page XYZ" ? Yes / No  .If you click "No"  then message just dissapears, if you click "Yes" it goes to the next page...
    Any dea ? thanks in advance...

    <a href="XYZ.php" onclick="return confirm('Are you sure you want to go to page XYZ?')">XYZ.php</a>

  • I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    I am new to IPAD and I want o use facetime, how can I use it to communicate with my mac at home, do I need to create another account with a different email account

    do I need to create another account with a different email account
    Yes, the email addresses need to be unique to each device. You may use the same Apple ID on each device, but the email address used by each device needs to be different.

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

    There's a lot of results in Google when you search for this but unfortunately refreshing the page doesn't seem to generate a different code anymore. Mine also says already redeemed

  • I have misplaced my iPod Touch 4th Generation. According to Find my iPhone, it should show up in offline mode. I need help on locating it with a software or some other way. Help?

    I have misplaced my iPod Touch 4th Generation. According to Find my iPhone, it should show up in offline mode. I need help on locating it with a software or some other way. Help?

    There is no other way.
    Sorry

  • How to create State machine workflow?:

    How to create State machine workflow

    Hi,
    According to your post, my understanding is that you want to send email to Assigned to person when item is created in Task List.
    You can set E-Mail Notification to Yes under your Workflow Tasks list > Settings > Advanced Settings. By doing so user specified in AssignedTo will receive e-mail notification when task is created.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/44f63c3c-8dfc-4f02-b627-a92249404ae3/task-list-advance-settings-email-notification-send-email-when-ownership-is-assigned-or?forum=sharepointgeneral
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Need to create P.O with reference to only P.R

    2)Need to create P.O with reference to only P.R. Mean without P.R system should not allow to create P.O how to do?

    hi
    try this
    go to SPRO-MM-Purchasing- Authorization Management-Define Function Authorizations for Buyers
    click on Function Authorizations: Purchase Order
    create  a new entry and
    check ref to PR then
    goto SU01 and on parameter tab enter the Parameter id = EFB and parameter value is what you define in the functional authorization key
    Enter the desired key as a parameter under the parameter ID EFB in the user master
    Also make sure that,In OMET in details of function Authorization>Possible ref. objects>Tick only Ref. to purchase requisition and not anything else.
    this way u can restrict the user from creating po with ref to pr

Maybe you are looking for

  • Qualified Table (Bank Details) Import Question

    I am using MDM 5.5 SP6 I am using the Standard SAP delivered Vendor Master Repository and trying to load the Qualified Bank Details table. Bank Details qualified table we have 9 non-qualified fields and 6 qualified fields. Do we need to load the non-

  • Make 'Deprec. Areas' tab 'read only'

    Hi, Gurus When we create a new asset, we inform the asset class which contains it (tr. u2018AS01u2019). After filling all required data, we get to u201CDeprec. Areasu201D tab. All data within this tab are loaded from other sources, so that we donu201

  • Nested Sequence and Maximum Render Quality

    I use quite often nested sequences and sometimes within nested sequences. Do I have to check the flag Maximimum Render Quality in each sequence setting or is it enough to have it marked in the root/top sequence? I guess, I have to. Is this correct? r

  • Since updating my imac 27" it will not let me open any of my programs and is saying to reinstall all, cant even get into safari. please help!!

    Since updating my Imac 27" 8 month old computer it will not let me open up any programs including safiri and iphoto. it is pretty much saying that i need to install all the program again, which i can not afford nor have the time too. can someone plea

  • How to Extend TimzZone Function on JDK 1.1?

    We are using Oracle 8.1.7 and try to perform a timezone function on it. However, Oracle 8i only support JDK1.1.8 which has a lot of incompleted timezone function in the library. But JDK 1.3 timezone functions work properly. My idea is to write extend