Using a timer to ramp up voltage in code?

I'm currently using a small VI for the Xandrex XPD power supplies, and I have to automate this program so that the voltage will ramp up, say .2 volts every 500 milliseconds to a user defined voltage (say 15Volts). While I know some basic loops can do this, I am somewhat green with LabView and any help that could be given would be much appreciated. Right now my VI can set current limits and voltages on the PSU. With that out of the way I believe there shouldn't be much more needed in the VI to create a ramp time.
I have attached a picture of my block diagram, if there is anything else that's needed I'll post it up. Thanks!
Attachments:
Block diagram1.jpg ‏49 KB

Here's the VI in 8.0 form. One thing to be aware of is that the time between steps will not be exactly 500msec because Windows is not a realtime (deterministic) operating system. Most of the time it will be very close, but if something happens that severely loads the CPU it is possible for the value to increase significantly.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
Attachments:
ramp up.vi ‏11 KB

Similar Messages

  • How to use a Time - Voltage Array to Control a Analog Voltage Output using DAQmx Write VI

    I have an array of Time values associate with Voltage values that I want to use to control a Anolog Votage Out Device (PXI-6251) using DAQmx.  The array contains 1,000 elements.  The time values are NOT evenly spaced, the rate changes through the array.  The array is output once, timed to other processes.
    My problem is I haven't been able to locate a reference on how to handle the timing variability in the array.  If time was equally spaced I could use a loop....
    The attached showes the array, first row is time (ms) and the second row is voltage (volts).
    Can someone point me in the right direction?
    David
    Attachments:
    TimeVoltage.png ‏11 KB

    David,
    if you have only Base version of LabVIEW, this will be a time consuming task.
    If you have either Full or Professional, you will find interpolation-functions in the mathematic palette.
    I am not sure which ones serves you best,  but i'd startexperimenting with Interpolate 2D.
    hope this helps,
    Norbert 
    [Edit]: You could also use a polynominal fit on your voltage values. You will get a function describing the voltage over time. But you will have to modify this function to take care of the variation of time spacing. If you have a function describing your voltage over your (nonconstant) timestamps, you can simply create values for constant timeslices for your voltage.
    Message Edited by Norbert B on 11-06-2008 10:21 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How do I use my Time Capsule with hotel wired internet

    How do I use my Time Capsule as a wireless router on my hotel free internet ethernet cable?

    It may not be possible..
    If they use a web access page, then there is no way you can set the TC to authenticate.. you must use the computer to authenticate and then use the computer to bridge to the TC for wireless clients to access.
    Look up instructions on using ICS (internet connection sharing) in the Mac.
    eg for 10.6.8 http://support.apple.com/kb/PH6589
    eg http://support.apple.com/kb/PH10740
    Of course if there is no login then you could just use it.. but I doubt you would be asking if it just worked.

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • Can I use my time capsule for a hard drive only?

    I have a brand new Time Capsule.
    Instead of backing up all of the time, can I just use the Time Capsule for my music and photos?

    Music and Photos  would be fine.. but not itunes and iphoto.. the libraries are far more complex and if you load it onto the TC you will have no backups.. the TC is a backup device which has no method of backing itself up.

  • I want to use my Time Capsule as a central 'hub/hard-drive' in order to keep all my working files in one place. I then plan to use my laptops/desktops as peripheral devices for editing and creation of these files. Is it possible? Create a personal cloud?

    I want to use my Time Capsule as a central 'hub/hard-drive' in order to keep all my working files in one place. I then plan to use my laptops/desktops as peripheral devices for editing and creation of these files. Is it possible? To create a personal cloud?
    Can someone advise as to whether i can do the following:
                                Future Internet connection -------------------TIME CAPSULE (containing all files) -------------- Backed up on the WD 2T Hard-drive I have
                                      (not connected yet)                                         I                                                          (*connected to timecapsule physically)
                                                                                                            I
                    I                                         I                                                I                                                              I                                                I
          Macbook Pro                             iMac                                       HP (PC)                                             OLD Macbook Pro                         iPhone
    (used for remote working)       (Used for home working)     (used for heavy CAD and rendering)    (not being used for anything at the moment)        (& iPods)
    I am looking to have all my files in one place as i am hopelessly disorganised. I know the online clouds are a good solution (used Dropbox at work and uni for 3 years) however i am wanting to create my own 'dropbox/icloud' at home. So whenever i get back home with my laptop, any work i have been working on whilst out that day is updated to the timecapsule, and then ultimately as i turn on the other devices, they update to those newer versions of the files. Please tell me that the 3TB time capsule i have can do this, otherwise it feels rather overpriced as a wireless storage device?
    Another note (to those in the know) If i am to be working on large files (REVIT/SOLIDWORKS/KEYSHOT/CREO/AUTOCAD) - is the timecapsule connection good enough to support editing and updating these files?
    I know i may be asking a question that many have before, but as a bit of a technical novice I wanted a clear-cut answer to my specific circumstances. Your help is greatly appreciated.
    (*can i use this WD hard-drive that is connected to the Time Capsule as a back up? so that the time machine back-ups/any back ups are also backed up onto this one? can the WD be a backup for the TC?)
    Kind Regards
    Joe

    The diagram was supposed to look more like this......
    Internet ---------TIME CAPSULE(containing all files) --------WD 2T Harddrive
                                                I
         I                           I                          I                            I                                   I
    Macbook Pro         iMac                 HP (PC)            OLD Macbook Pro           iPhone
    Sorry!
    Regards
    Joe

  • Using asynchronous timer for data flow control

    Hi all,
      I am using system sleep to control the data flow (some digital lines and analog output). The pseudo code is something like this
    Sleep(150);
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to another digitla line     
        #pragma omp section
          Sleep(2); // sleep 2ms
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to one channel
        #pragma omp section
          Sleep(1); // delay 1ms
    // the following sections are exectuted in parallel
      #pragma omp parallel sections
        #pragma omp section
          DAQmxWriteDigitalLines(...); // output TTL to one digitla line
        #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    #pragma omp section
          DAQmxWriteAnalogScalarF64(...); // analog output to another channel
        #pragma omp section
          Sleep(11); // delay 11ms
    // ... other stuffs
    I am running windows XP and I know it is not possible to get realtime control but  I want a as precise timing as possible. Above code is not perfect but it works 95% of times. I just read an article about using the asynchronous timer to control the time delay. I try that idea with the following code frame
    int CVICALLBACK ATCallback(int reserved, int timerId, int event, void *callbackData, int eventData1, int eventData2)
    if (event==EVENT_TIMER_TICK)
    int *nextdelay = (int *)callbackData;
    SuspendAsyncTimerCallbacks();
    if (timerId>=0)
    double time;
    if (*nextdelay==0) time=2.0;
    else if (*nextdelay==1) time=1.0;
    else time=12.0;
    SetAsyncTimerAttribute(timerId, ASYNC_ATTR_INTERVAL, time);
    if (*nextdelay==0)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to another digitla line
    *nextdelay++;
    else if (*nextdelay==2)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    *nextdelay++;
    else if (*nextdelay==3)
    #pragma omp parallel sections
    #pragma omp section
    DAQmxWriteDigitalLines(...); // output TTL to one digitla line
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to one channel
    #pragma omp section
    DAQmxWriteAnalogScalarF64(...); // analog output to another channel
    *nextdelay++;
    ResumeAsyncTimerCallbacks();
    return 0;
    void main(void)
    int n = 0;
    int timeid;
    timeid = NewAsyncTimer(120.0/1000.0, 3, 1, ATCallback, &n);
    But it doesn't work. There is no compilation and runtime error but the timing just not right. I wonder do I have to suspend the timer in the callback function when I reset the delay for next call? If I do so, I am worry if it will apply too much delay (since I suspend and resume the timer in the delay) so it will cause even worse timing. But if I don't suspend the timer before I reset the time, what happen if the code running in the callback function not finished before the next callback arrive. It is quite confusing how to use asynchronous timer in this case. Thanks.

    Yeah, unfortunately the 6711 doesn't have clocked digital I/O.  There are only two counters anyway so even if you could use them to generate your signals you wouldn't have enough (*maybe* something with the 4 AO channels and a counter depending on what your output signals need to look like?  The AO channels can output "digital" as well if you write 0V or 5V only).
    A PCI DAQ card which does support clocked digital I/O and has 2 analog outputs is the 6221 (or if you could use PCIe the 6321 is a more updated version with two extra counters and some additional functionality).
    If there isn't a way to implement clocked outputs afterall, one thing you could do to make your code a little more efficient is to consolidate the writes.  You can put your digital lines into a single task and write them at ocne, and you can put your analog channels into a single task and write them at once as well.
    I'm not sure about the callback issue, you might find some more help in the CVI forum.  I don't think it's going to solve your underlying problem though as ultimately the execution timing of your software calls is at the mercy of your OS.
    Best Regards,
    John Passiak

  • I'm running Pages version 5.2 on a Desktop Mac version 10.9.2. with the Pages app open how do I use the Time Machine to go back five hours to see the work?

    I'm running Pages version 5.2 on a Desktop Mac version 10.9.2. With the Pages app open how do I use the Time Machine to go back five hours to see my page? Can I access Time Machine within an app like Pages? How do I enter Time Machine within the application? It always takes me to the Finder. I apolgise for the mumbo jumbo. I simply do not know how to use Time Machine. It makes sense when I follow the Tutorial but then I lose it.

    OK. You've kind of skipped over the reason why you want to go back five hours, but my assumption would be that you've made changes to a Pages file that you want to revert.
    There are two ways to tackle this. From Pages itself, open the current version of your document, and from the File menu, click Revert To, and Browse All Versions. You'll then be in the Time Machine interface for that file, and can browse back to the version you want.
    Or, outside of Pages, you can select the file (or the folder it was originally in, if you've since deleted it) and enter Time Machine from the TM menu (it sounds like you've already tried this?)
    best
    Matt

  • How do I use my Time Capsule to back up my wife's MacBook Pro running 10.4.

    I just installed a Time Capsule. I've extended the range with two Airport Expresses. I've connected my MacBook running 10.6.3 to the wireless network. I've connected my wife's MacBook Pro running 10.4.11 to it. I've connected my wife's 3G iPhone to it and my first gen iPhone to it and our Apple TV to it. All devices can connect to the internet. I've connected the Time Capsule to the printer and printed wirelessly from both computers.
    I've backed up my MacBook and seen that the Time Machine is backing up my MacBook as it should.
    How do use the Time Capsule to back up my wife's MacBook Pro running 10.4.11? I've tried connecting them via ethernet cable and via USB cable. In both cases the Time Capsule failed to show up as an external drive and wasn't seen by the 10.4.11 back up utility.
    How do people do this? (Other than convincing their wives to let them upgrade their MacBook Pro to 10.6.3?)

    James Elliott1 wrote:
    How do people do this? (Other than convincing their wives to let them upgrade their MacBook Pro to 10.6.3?)
    That really is your best option. Sooner or later, you're going to have a problem with the "other" data on your Time Capsule, since the backups of your Mac will, eventually, fill up all the available empty space. That will, of course, limit the space available for the other backups.
    There's a very cumbersome workaround in the blue box of #Q3 of the Using TIME MACHINE with a TIME CAPSULE *User Tip,* also at the top of this forum.
    Another is to connect a USB drive to the Time Capsule, partition it if desired, and back up one Mac to it and the other to the TC's internal drive.

  • HT201945 How do I use my time capsule on an existing WIFI network?

    How do I use my Time Capsule on an existing WIFI network?

    Use an Ethernet cable to connect from one of the LAN <--> ports on your existing wireless router to the WAN "O" port on the Time Capsule and then use the setup "wizard" on your Mac to configure the Time Capsule.
    It will suggest that you set up the Time Capsule to create a new wireless network. If you don't want or need another wireless network, you can turn off the wireless function of the Time Capsule and use it as wired hard drive only.
    Leave the Ethernet cable connected at all times. If you need to locate the Time Capsule in a different area, you can put it anywhere that the Ethernet cable will reach up to about 330 feet or 100 meters.
    The only exception to using an Ethernet cable would be if your existing wireless network is provided by another Apple router. Then.....you would have the option to have the Time Capsule connect using wireless and extend the network, although using a wired connection would still be the better way to go in terms of performance.

  • How can I use my time capsule with Ethernet cable? How is it also possible to use time capsule as a normal external hard drive?

    My problem is that I don't know how to use my Time Capsule with Ethernet Cable, as when I use wireless it is really slow.

    Make sure that there is an Ethernet cable from one of the LAN <-> ports on your modem/wireless router to the WAN port on the Time Capsule
    Click on the Wireless tab at the top of the page
    Change the setting for Wireless Mode to Off (I assume that you do not want the Time Capsule to provide a wireless network since you already have a wireless network)
    Next, click the Internet icon at the top of the screen, then click the Internet Connection tab
    Connect Using = Ethernet
    Connection Sharing = Off (Bridge Mode)
    Click the Update button at the bottom and wait 30 seconds for the Time Capsule to restart and display a green light
    Then, you must power off your entire network...all devices....in any order that you want
    Wait a minute
    Start your modem/router first and let it run a minute
    Start the Time Capsule and let it run a minute
    Keep starting devices one at a time until everything is powered up
    If you are using Time Machine for backups, you will need to reset the connection because you have changed the way in which the Time Capsule connects to your network
    Open System Preferences (gear icon) on the dock
    Open Time Machine
    Click Select Disk
    Click the Time Capsule to highlight it
    Click Use for Backup or, it might be Use Disk
    Now you can connect your Mac using an Ethernet cable to one of the LAN <-> ports on the Time Capsule to back up using Ethernet. Be sure to turn off the wireless on your Mac before you start the backup.
    If you want to backup using wireless, disconnect the Ethernet cable from the Mac to the Time Capsule and turn on the wireless and connect to your wireless network. Your computer will now backup using wireless.

  • How can I use my time capsule with windows7

    How can I use my time capsule with windows7?

    This is asked regularly.
    https://discussions.apple.com/message/10978060#10978060
    Look at the more like this. On the right column next to the post.
    Load airport utility for windows.. which will also load bonjour for windows.
    In windows explorer type \\TCname or \\TCipaddress (replacing with the actual values.. names with spaces will give you trouble so change all names in the TC to SMB compatible or actual ip address).

  • How do I use my time capsule as a wifi extender and still use as a backup in Time Machine

    I purchased a new airport extreme and want to use my existing time capsule as a wifi extender in another part of the house.  How do I set this up so that I can still use the time capsule as my backup (time machine) hard drive?

    Hello BNOLTNER,
    Thanks for using Apple Support Communities.
    Please see the directions in the following article for configuring your extended network.  Your Time Capsule will still be seen on the network, and may still be used as a backup destination.
    Wi-Fi base stations: Setting up and configuring an extended wireless network (802.11n)
    http://support.apple.com/kb/HT4259
    Take care,
    Alex H.

  • How do I use my time capsule as an external hard drive?

    I am trying to use my time capsule as an external hard drive but can't figure it out... can anyone help me out?

    1.  Run AirPort Utility
    2.  Click on your Time Capsule
    3.  Click Edit
    4.  Click on the Disks Tab
    5.  Click on Enable file sharing
    6.  Choose the way you want to control file sharing access, whether it is by the Time Capsule password, an independent disk password, or accounts for different users.
    7.  You should then be able to access your Time Capusle drive from Finder.

Maybe you are looking for

  • Issue with fetching a record from IHPA table with PARNR value as condition

    Hi All, I am trying to fetch a particular record from IHPA table where i am giving the OBJNR number, PARVW and PARNR as customer no. , But I am not getting any record  but if i will give OBJNR and PARVW it will generate a record with having same PARN

  • How to pass Proxy user dynamically in Toplink proxy authentication?

    Hi, I'm using Toplink Proxy Authentication with my ADF JSF application and want to pass the Proxy user dynamically to the preLogin(..) method of mySessionEventListener (Currently proxy user is hard coded). This is to make my application user as the P

  • Video connectivity cable

    How can i connect my nokia C6-01 to TV. without HDMI cable, as per contenation of my nokia C6-01 phone setting and user guid. the picture of the cable is not HDMI cable. so i want to know that how can i connect my nokia C6-01 to TV without HDMI cable

  • How to derive the notification id from APEXP WF when creating Expanse report in 11i

    Hi, I am new to WF, I need to derive the notification id when creating AP Expanse report, I can achieve this by creating trigger on WF_NOTIFICATIONS table, but I need to derive this by creating custom procedure and that procedure need to be called fr

  • Help Please! My actionscript is rusty....

    Hello Flash Friends! Please help a rusty actionscript user - I'm just creating a simple movie that when you mouse over it calls a movie then when you take your mouse off the movie goes away - it'll be for stats kinda thing, but it's been a while sinc