How to create timer to delay On/Off

I am currently using the evaluation version of LabView to figure out if LabView is a good choice for an application I would normally use ladder logic for. I am trying to find examples on how to do the following, any advice would be appreciated:
-Timer for delaying On condition
-Timer for delaying Off condition
-Counter
-Latching circuit

Hi agon,
From my experience, the cRIO should definitely be able to do that - though that would of course depends on the specifics of your application. In order to properly evaluate this system, you would likely need hardware. Have you been in contact with your local field sales engineer or inside sales engineer in Austin regarding your interest? If not, feel free to send me a private mesage with contact information (name, e-mail, phone number, company) and I can get one of them to get in touch with you. They would have more information about this, but we could likely set up a demo or something similar so that you can get a good visual feel for how LabVIEW/cRIO works and how it could be scaled up to your application.
A great resource for now is the cRIO Developers Guide: http://www.ni.com/pdf/products/us/fullcriodevguide.pdf. This discusses high-level benefits of the cRIO's Real-Time OS (namely determinism and thread priority setting) and FPGA (very fast, user customizeable logic, no VHDL programming, parallelism) and then details of how this is implemented in LabVIEW (which may or may not become too low-level depending on how familiar you are with LabVIEW).
As I touched upon above, evaluating us based on your application description would be difficult without hardware to play around with or see in action. However, the Developers Guide will show you how we communicate with I/O on a RIO and an idea of control code you can implement.
Rahul B.
Applications Engineer
National Instruments

Similar Messages

  • How to create timer in Flash Lite 2.0

    Hai
    In Flash Lite 2.0 I need to create session(ie)When i enter
    into a scene i will set the time to 60 secs and the time starts
    counting from 0 when it reached 60 secs it has to exit the
    application.
    I have no idea about how to create timer in Falsh Lite
    2.0.Can anyone please help me.

    I have solved my problem.
    should be:
    fscommand("launch","\\windows\\wmplayer.exe");

  • How to create shortcut to turn on/off Wifi in Snow Leopard

    I want to use the F5 key on my MBP to turn on Wifi with a single hit on the keyboard and turn it off again with a single hit using F6. Is this possible? I've tried to do it under Preferences/Keyboard/Keyboard Shortcuts but I can't add F5 (not by typing and not by hitting that button). That button seems to be dedicated for the illumination of the keyboard. How can I change these settings so that I can have my fast function key at my disposal.
    Cheers,
    BassPlaya

    Since nobody has posted a solution, here's one way to do it, expanding upon WZZZ's answer above should actually be:
    networksetup -setairportpower en1 off
    networksetup -setairportpower en1 on
    where en1 is the Interface Name of your Wi-Fi device. It was en1 on my laptop, but you can check and be sure using:
    networksetup -listnetworkserviceorder
    Also, you can toggle it if you grep the current state using -getairportpower first. Here's the full command to toggle Wi-Fi state on and off (the whole thing is one long line):
    networksetup -getairportpower en1 | grep "On" && networksetup -setairportpower en1 off || networksetup -setairportpower en1 on
    But typing it every time into Terminal is no good, so here's how you create a keyboard shortcut that runs a shell command:
    1. Start Automator, and create a new Service.
    2. Set "Service receives selected: to "no input" in "any application".
    3. Add an action named "Run Shell Script". It's in the Utilities section of the Actions Library.
    4. Insert the bash command you want into the text box and test run it using the Run button (top right). It should do whatever the script does (off, on or toggle), and there should be green ticks below the Action.
    5. Save it, giving it a service name you can remember.
    6. Go to System Preferences -> Keyboard, and go to the Shortcuts tab
    7. Go to the Services section, and scroll down to General - you should find your service there. If you select the line, you can click "add shortcut" and give it a keyboard shortcut.
    The shortcut key will now trigger whatever command you set up earlier, no matter what app you're in, but shortcuts from the app take priority (so if your hotkey clashes with a hotkey in the app you're currently running, the app's hotkey will trigger).
    Also, I don't think you can use any of the function keys. I don't know why, but I've never had those ever work, even with the Fn key. Command Shift A or something like that works fine.

  • How to create time dependant master data table in R/3?

    Hi gurus,
             I am new to BW.I try to execute the 'Time dependant Attribute' into BW.in my scenario my source system must give me the data like "salesrep ID,Manager ID,Date to,Date from,Sales region". I like to know how to define this master data in SAP R/3(Source system)?. Give me the steps to create master data table in R/3.
    Manager may change periodically.even i need to maintain all the changes in R/3.
    Thanks & Regards,
    Bharath

    built-in type method means.,
    there is no need to create data element and domain objects seperately for each and every field of the table which ever you are creating, system will implicitly fix the size based on the data type you selected....

  • How to create time column in SharePoint custom list.

    Hi,
    Actually my requirement is, I should create a Custom List in SharePoint which should has "Effort" column with the "Time" type.
    User Should enter only Hours and minutes in that field. How should i do it?
    By Default we can have "Date and Time" or "Date" alone. There is no feature to have only "Time" :(
    Thanks in advance.
    Poomani Sankaran

    you can use JSLink script for that. You can use text field attache JSlink script and change her client side rendering. some information and samples about client side rendering: https://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
    I's good because in worst case you will have pure SP text field. In case of migration to new version or cloud you will have no problems. 
    Even more you can attache Jquery UI Time spinner http://jqueryui.com/spinner/#time or you can download Time picker extension http://trentrichardson.com/2010/04/19/timepicker-addon-for-jquery-ui-datepicker/
    and create fancy time picking design.
    Tomas.

  • How to create event trigger to kick off another report

    Hi i am having two reports, first report runs for 10 minutes , i want the second report to run automatically after first report is completed. how to do that?

    the event needs to be triggered within the start and end time (try scheduling "once" with a specific time interval).
    From the admin guide:
    Scheduling objects based on an event
    When you schedule an object that waits for a specified event, the object will
    run only when the event is triggered, and only when the rest of the schedule
    conditions are met. If the event is triggered before the start date of the object,
    the object will not run. If you have specified an end date for this object, and
    if the event is not triggered before the end date occurs, the object will not
    run because not all of the conditions will have been met. Also, if you choose
    a weekly, monthly, or calendar schedule, the object will have a specified time
    frame in which it can be processed. The event must be triggered within this
    specified time for the object to run. For example, if you schedule a weekly
    report object that runs every Tuesday, the event must be triggered before
    the end date of the instance (the end of Monday, in this example).

  • How to create a pushbutton delay in the FPGA module in Labview 8.2

    I am a very inexperienced programmer of Labview, and I have what I thought would be a simple problem. I have a CompactRIO system that utilizes Labview 8.2 as well as RT and FPGA modules. I am running an end of line tester that uses a pushbutton to start the test. I am looking to force an operator to hold the test start pushbutton for one second before testing begins. If the pushbutton is released before the second is up, the test will not start. In the FPGA module, I cannot figure out how to accomplish this. I have tried using both flat sequence and while loops, but I cannot get the program to work as stated above. With the flat sequence there is not a way, that I could see, to break out of the sequence should the pushbutton be released. Using the while loop, I was closer to a solution, but could not get the program to read the input consistently. I did verify that the 24Vdc signal is getting to the input card whenever the pushbutton is pressed. The program worked fine without trying to add the delay when I was just looking for a transistion to 24Vdc on the input card when the pushbutton was pressed.
    Any ideas?  Thanks!

    Here's how you might do it with a button on-screen in LabVIEW for Windows.  If you need more specific help, post your code, or a small portion of it that demonstrates the bit that you can't get working.  (The snippet is in LabVIEW 2009 since that's what I'm using, but the attached VI is saved for 8.2)
    Attachments:
    Hold 1 Second.vi ‏8 KB

  • How to create "time sheet" bar chart?

    Hi Experts,
    I am using Crystal Reports 2008 and I would like to ask the steps to create a time sheet liked bar chart with following information:
    Imagine I collected the CPU usage of a computer every 30 seconds.
    In the report layout, X-axis should be the time of date. Such as 00:00, 06:00, 12:00 and 18:00. Y-axis should be the exact date. Such as 2009/05/01 to 2009/05/31. Highlight color should be applied to identify the usage. Such as <30% is gray, 30~70% is blue and >70% is red.
    Here is my target layout: [timesheet|http://img200.imageshack.us/img200/1292/timesheet.png]
    I tried to use bar chart template but crystal report sum up the total duration, not the exact time. When using Gantt chart, it almost fulfilled my requirement. But the bars of same date is not aligned horizontal, just like stairs.
    Thanks a lot for help!
    Regards,
    Albert Lai

    Thank you for reply!
    I tried "horizontal stacked bar chart" but it still have problem...
    Let's see my screen dumps: [Chart Expert - Data|http://img514.imageshack.us/img514/6595/timesheet2.png], [Chart Expert - Highlight|http://img411.imageshack.us/img411/1924/timesheet3.png], [Result|http://img269.imageshack.us/img269/8195/timesheet4.png]
    Is that no one will use Crystal Reports like my sample?
    Regards,
    Albert Lai
    Edited by: Albert Lai on Jun 4, 2009 3:24 PM

  • How to create an accurate delay?

    We try to control our 3-D piezostage using PCI-6229. Currently we restricted ourselves to send analog output in only 2-D. We want the increment, say in x-direction, is 0.1V per 10ms.  Using DAQ express indeed speed up the design but it  was done using “wait milliseconds” function(wait 10ms before increase another 0.1V), which is not accurate as the clock is software dependent(interruption from other software in Windows based system). How can I increase the accuracy? Can I use “multiple milliseconds” function or better still, “time” express vi? If we want to use DAQ express and use “hardware time”(external clock) to be the clock, how can it be done? Can someone please help out?

    When you say “DAQ express” I assume you mean DAQmx, in
    LabVIEW 7.0 or later. You could go the route of trying to do precise software
    timed stuff, but using WinXP you will always run into the problems that you
    mentioned. Hardware timed, will always be more accurate, but setting up the
    control may be a bit tricky. To program a hardware timed acquisition you can either
    do it explicitly with the DAQmx functions, or you can use the DAQ assistant
    (which is an Express VI). With the DAQ assistant once you drop it down it
    should be pretty straight forward how to configure it, a window will pop and
    you will have to fill in what you want. I would also recommend taking a look at
    some of the shipping examples to get a feel for DAQmx programming without using
    the DAQ assistant. You can find these examples in LabVIEW by going to: Help
    Menu >> Find Example. Then from there: Hardware Input and Output >>
    DAQmx >> Analog Generation. If you look at the examples that are Internally
    Clocked, those will be the easiest to work with initially. Now I am not too
    sure how well this will be for stage control, generally this is done either
    with a motion board or if fine enough control is needed FPGA. But with those
    examples, it should give you a good starting point to work from.
     -GDE

  • How to create a Flash Sound On/Off Button

    I created a flash intro with background music, I want to be
    able to turn the sound off and on. I tried the tutorial (
    http://www.entheosweb.com/Flash/flash_sound_button.asp).
    This is the error I get.
    Target not found: Target="../sound" Base="_level0.music"
    Any tips would be a great help.

    search google for a tutorial on using the sound class. that
    tutorial you referenced is antiquated.

  • How to place time stamps without creating delays?

    Hi,
    I am measuring signals when the PFIO input is triggered. This occurs at a variable rate, but in the khz range. I need to place a time-stamp every 100ms or so on the measurements, but I am not sure how to do this without creating a 100ms delay in the program.
    Sorry if this question seems a bit basic... I recently took a crash course in Labview to solve the current prob. I am using version 4.1
    Thanks in advance,
    Harry

    The major issue is that the time your timestamp is read is not deterministic for a couple of reasons.
    The timestamp is created at some time before it is added to the start of the array.  The time this occurs, whether before the data acquisition or after, is not determined.  The code is parallel.  In actual practice, it will tend to be about the same offset each time (see second point below), but if you modify the code, this offset could easily change.  Note that LabVIEW 4.1 does execute the items in a diagram in a sequence.  However, you do not have much control over what that sequence is.  It tends to be the order the objects were dropped into the diagram, moderated by data flow constraints.
    You are relying on the OS to give you reliable timing.  Most desktop OSes have a normal jitter of about 10ms, and it could go to seconds in some cases (e.g. a large e-mail arrives).
    Your solution is to use hardware timing.  Set up one of the counters on the MIO board to run freely using one of the internal clocks.  When you read your data, read the timer as well.  You may be able to synchronize this by using a buffer for the data reads and one for the timer.  It has been a long time since I used this type of board, but I think you can set it up to simultaneously acquire both counter and analog data.  You only need the first point of the counter data, which can then be converted to a timestamp based on the clock speed.  You will need to account for rollovers in the counter.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to create an object alive all the time on a server side

    Hi,
    I work on an Intranet with J2EE technologies. I need an object to do several tasks in background on the server side. Like start scheduled processes on a database and files, stocked on the server. What is the way to do this. I thought to use the JNDI by declaring the object in the Deployement Descriptor, and to manage a timer within.
    I don't know if this works.
    Anyway, my question is how to create an object on the server that is ALIVE ALL THE TIME and visible by the other objects running in the same VM.
    Thank's.

    This may not be the correct design, but I had success doing the following:
    1. Create an Stateless EJB that does a task, i.e. update a database table.
    2. Create a subclass of java.util.TimerTask to call the EJB methods.
    3. Kick off the TimerTask from a servlet.init method.
    Seems to work pretty well to do scheduled tasks, such as refreshing lookup tables. I would imagine the same could be done with an MBean, but I haven't had time to fully understand JMX yet. (It's on the list).
    As for event driven procedures, that can be done through a servlet interface.
    You may also wish to review a scheduler here: http://www.part.net/quartz.html. Note, I have NOT even looked at it yet, so I have no clue if it's any good. But, it is on my list of tools to evaluate (that's a long list) someday when my head's above water. Have a look, and caveat emptor.
    Hope this helps,
    Perry Tew

  • How to create automatic timer process in BPM?

    Can anyone tell me how to create an automatic timer process in BPM?
    Can I just create an manual process, and drag the timer event into the swam lane, can connect the timer to the service and then to the end event?
    Thank you

    Hi,
    You can make use of Global Automatic activity to kick off your process at a particular time. Place a Global Automatic activity in your process and right click on the Global Automatic activity and select Properties --> General --> Global Automatic Type: Automatic Schedule, Automatic Schedule: <Configure with your requirement>.
    Else you can make use of due transition/timer activity to get your task done.
    Bibhu

  • Guided Procedures - Runtime "Create Time-off Request"

    Hi Everyone,
    I’ve created a Time-Off Process using the tutorial downloaded from SDN site.
    When I try to start the Runtime project (Employee side) I find the “Processors Table” in "Create Time-off Request" screen.
    The Approver name is not correct… is not what I expected!
    1) How can I change (in the Design Time project/area) the Approver and HR Consultant parameters?
    2) How can I hide (in the Runtime area) the “Processors Table”? 
    Furthermore, I would like to have more information about the “Parameters Consolidation” meaning. Could you help me to catch this meaning?
    Thanks in advance,
    Enrico

    Hi David,
    thanks for you useful answer! You gave me an answer of 80%!
    Now I try to explain you my problem for the other 20%!
    Now, ... I can't modify the Time-Off exemple, right?! But I would just like to start from this example and modify it!!!
    Can I do it starting from the project code?!
    Can I see the code lines which describe the Time-Off behaviour, so that I can customize it???? ... enfact, if I could do it, I wouldn't have to rewrite the whole code, and I also could understand the logic of TimeOff project structure.
    Do you understand me? Was I clear?

  • I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    I've used an external drive for time machine which has important files on it. After trying to back up my computer, it suddenly needed to be "repaired" by utilities. Now it's not being "seen" at all! How do I recover my important files off the drive?

    If the external drive can be seen at all in Disk Utility, follow the instructions for repair here.

Maybe you are looking for

  • IPhone 5 Battery Indicator and Reboot issues

    Hello Apple community forum, I have an iPhone 5 that I purchased approximately 20 months ago. It has worked flawlessly and been well taken care of. Only until recently, maybe 3 weeks after I updated to IOS update 7.1.1, I have been having a plethora

  • Jawbone Icon pair and connect to 4s but stopped working after 2 weeks.

    The 4s shows the headset is connected and paired, but when a call is placed it does not show the bluetooth on the phone menu and does not send audio to the jawbbone.  The jawbone also thinks it is connected and will give you a report of how much talk

  • Smart view 11.1.2.3 error in Excel after installation

    I have Microsoft Office 2007 and install smart view of Hyperion Workspace 11.1.2.3 bit but got an non identified issue at open Excel. Kindly help.

  • Hyperlinks not visible in UI

    Hi All, My requirement is to add two hyperlinks DISPLAY and CHANGE for the purchase order number. For this I proceeded like this: 1) I created two custom attributes DIS_PO and CH_PO under context node HYPERLINKS of the view IncidentHeader of SRQM_INC

  • SCROLLING MESSAGE PLEASE HELP

    HI I WANT TO DISPLAY A SCROLLING MESSAGE IN JFRAME PLS TELL ME HOW TO DO IT THANKS