Dynamic duty ratio update in every cycle in PWM

Hi All,
I am a LabVIEW newbie working on generating PWM signal. I have to generate a PWM signal such that its duty ratio and in effect the pulse width should change in every cycle based on the values stored in an excel sheet. I have downloaded a ni example and trying to modify it but not with much success. I am using NI PCI 6132 and BNC 2110 in my setup.
I have read examples about generating PWM based on dynamic duty ratio by manual control using 1,2 counters but have not found anything which updates the duty ratio in every cycle.
For an example I am attaching a csv file containing 4 duty ratio values and the vi. My aim is to generate 4 pulses with the duty ratio stored in the csv file and then stop the execution of the program. For the starters I am keeping the frequency as 1 Hz. I know the vi is not proper and I am working on it, but I thought to get some suggestions in the meanwhile.
Thank you very much for your help.
Solved!
Go to Solution.
Attachments:
retriggerable_pwm.vi ‏32 KB
dutyratio.csv ‏1 KB

The 6132 counters can't do what you are asking.  Using this hardware you would need to build the appropriate digital output array based on your desired times and use a buffered digital output task:
Newer STC3-based hardware (e.g. PCIe-6320) is capable of buffered counter outputs:
There are a few downsides to using the digital output method that may or not be an issue for your application:
1.  It requires a much larger buffer (1 byte per sample compared to 8 bytes per period).  If you need high timing resolution and need to output a long sequence of pulses you might not be able to write the entire buffer at once.
2.  More data needs to be streamed across the bus (also 1 byte per sample compared to 8 bytes per period).  Might be an issue if you are running concurrently with other streaming applications.
3.  Less timing resolution (10 MHz max output frequency on the 6132 compared to 100 MHz counter output timebase on an X Series).
Best Regards,
John Passiak
Attachments:
DigOutputArray.vi ‏26 KB

Similar Messages

  • RV042 Dynamic DNS not updating automatically

      I purchased 2 RV042's (h/w version 3) less than two months ago.  I updated them to the latest firmware (
    v4.0.4.02-tm (Jul  4 2011 13:30:56)), did a factory reset to make sure I was working with a clean slate, set up DDNS through DynDNS and a site to site VPN between the two.  Everything was working great for a month, then the DynDNS accounts expired because they weren't being updated.
      I reactivated the names on the DynDNS site, and started to monitor the "last updated" date and time.  After 24 hours there were no updates according to the DynDNS site.  I logged into one of the RV042's, and it said "Dyndns Enabled : Dynamic DNS is updated successfully."  This is a stale message from 24 hours ago when I hit save.
      So I went into Setup | Dynamic DNS | Edit Config and there it also says "Dynamic DNS is updated successfully."  I clicked "Save", status changed to "
    Dyndns Enabled : Updating..." for a few seconds, and then back to "Dyndns Enabled : Dynamic DNS is updated successfully".  I refreshed the DynDNS website and it shows the current time (in eastern time, i'm pacfic) as the last time it was updated.  So it works when I manually hit the "Save" button.  Not making any changed, just hitting "Save".
      I've let the other RV042 go over 48 hours and it still hasn't updated.
      So it apears for the time being, I'll have to remember to push the "Save" button once a week to prevent my DynDNS accout from expiring.
      Does anyone have DDNS working in the lastest firmware and h/w version 3?  If so, what is the update frequency?
      I'd like to hear any suggestions on how I might be able to fix this, or if this needs to be fixed in the next firmware release.  Hopefully, I've explained my problem clearly.

    Jasbryan,
    I am experiencing a problem with DynDns updater too. For me it seems that the updater (after a public IP change or reboot) only tries to update once, and if it failed then gives up and never tries again.
    I have to update manually (pushing the update button) which sooner or later succeeds. (Sometimes the first trial is successful, sometimes only the second or third.)
    I have an RV042 (v3) with firmware at 4.1.1 and a DynDns Pro subscription.
    I have a site-to-site VPN between two RV042s, both with dynamic IP. When the VPN tunnel drops, I usually detect that one of the public IPs has changed and the router for some reason failed to update DynDns. If I do it manually pushing the update button (one or more times), the tunnel comes up of course.
    Again, I suspect the problem is with the updater's "strategy" and timing. Should it wait a bit more after detecting a new public IP and retrying in every 5-10 minutes after a failed update attempt it would be more reliable.
    Janos

  • Measuring the changing duty cycle of PWM waveform

    I need to measure the changing duty cycle of PWM waveform.
    conditions:
    1. the period is fixed.
    2. but the duty cycle is changing.
    goal:
    measure the every duty cycle of a period in the waveform.
    Can you please give me a help?
    Thank you in advance.
    the waveform image is attached.

    You need to provide more specific information.
    What is the period? What is the minimum, maximum, and resolution of the PWM signal? What is the time scale in your image?
    How are you measuring or generating the signal you show in the image?
    What should the output look like? An array of duty cycles expressed as percentage? Some kind of plot on a graph?
    How long will this measurement last?
    Lynn

  • Dynamic sql and updating cursors

    hi to anyone,
    we use few temporary global tables which will be created on the fly if not present ( the reason is - they are not created by power designer ).
    addressing theses tables is only possible by using dynamic sql via "execute immediate" because they may not be known to the compiler as they are not created yet.
    Now I defined a cursor to walk through the table - using cursor reference "ref cursor". Using this cursor works, but i found no way using this cursor for update. i.e. declaring as .. for update of and later putting it into an execute immediate like " execute immediate 'update ' || w_temp_table || ' set f1 = :1, f2 = :2 where current of ' || w_cursor using w_1, w_2;" It doesnt work if I block this command using "begin / end".
    Does naybody know a solution ?
    thanks in advance
    wilko

    Thanks todd,
    my main purpose has been just using the dynamic cursor for update as I know that this is quite easy and also fast. I didnt concern about locking all rows I walk through. But you are right - at end you will use the most easy way. So what I did because of another cursor problem ( with analytical functions ) - I defined the temporary table before compiling and everything is much more convenient.
    thanks for help
    wilko

  • My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time?

    My new iMac has recently had OSX Lion installed on it and now when I start the machine it looks like its updating something every time, and the wireless doesn't work. So I restart and everything is OK - until I have to start up again the next time - then I have to repeat this again! Any help appreciated.

    I've been having the same issue, but have just discovered something on my own that hasn't been pointed out in any of the forums I've visited.  In what I thought would be a vain attempt to help myself, I went to System Preferences, Users & Groups, and then clicked on Login Items.  I discovered that one of the Items that was listed to open automatically upon login was iTunes Helper and that there was an exclamation point beside it indicating that it was incompatible.  I simply deleted that item and now I don't have the situation you described and my wireless is connected.  Hope this helps!

  • Firefox does not start up after an automatic update. Every time i try to open it, it just prompts the Mozilla Crash Reporter.

    Firefox does not start up after an automatic update. Every time i try to open it, it just prompts the Mozilla Crash Reporter.
    ''Add-ons: {972ce4c6-7e08-4474-a285-3208198ce6fd}:3.6.10
    BuildID: 20100914125854
    CrashTime: 1290192405
    EMCheckCompatibility: true
    FramePoisonBase: 00000000f0de0000
    FramePoisonSize: 65536
    InstallTime: 1287124738
    ProductName: Firefox
    ReleaseChannel: release
    SecondsSinceLastCrash: 422
    StartupTime: 1290192405
    Theme: classic/1.0
    Throttleable: 1
    Vendor: Mozilla
    Version: 3.6.10
    This report also contains technical information about the state of the application when it crashed.''
    Same thing happens when i click restart.
    No difference when i run it in Safe mode. And it won't let me create a new profile either. Is there anyway else i can extract my bookmarks? This is driving me crazy!

    Did the crash reporter send any crash reports?<br />
    You can see the crash reports in this folder:
    "C:\Users\&lt;user&gt;\AppData\Roaming\Mozilla\Firefox\Crash Reports"
    See: http://kb.mozillazine.org/Breakpad
    See also [[Firefox crashes when you open it]]
    Create a new profile as a test to check if your current profile is causing the problems.<br /><br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]<br /><br />
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"<br /><br />
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)<br /><br />
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox<br /><br />
    If that still causes the same problem then do a clean reinstall and remove the Firefox program folder.
    * Download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    * Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    * Don't remove personal data when uninstalling.
    * It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    See:
    * http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Question about the sensor... just got my 4s yesterday after screwing up my 3 with the laterd version update.  EVery call I have been on has either changed to speaker, called another number or ended the call or activated facetime, which I have turned off.

    Question about the sensor... just got my 4s yesterday after screwing up my 3 with the laterd version update. EVery call I have been on has either changed to speaker, called another number or ended the call or activated facetime, which I have turned off. never had this trouble with my 3...I don't even want to talk to anyone on this phone! Is the sensor bad? That is what the AT&t rep suggested.

    Restore as new... if the problem still continues then there is a hardware issue.
    If it stops after a restore as new, then the issue is with the backup the device is currently setup with.

  • Dynamic List to Update Field in  Record

    Hello,
    I have created an Update page in CS5.5 and have added a dynamic list to update a field in the record. Now I am stuck. How do I modify the code in the menu to have it update the field? 
    <select name="cemeteryID">
    <?php do {  ?>
    <option value="<?php echo $row_cemeteryList['cemeteryID']?>"<?php if (!(strcmp($row_cemeteryList['cemeteryID'], $row_cemeteryList['']))) {echo "selected=\"selected\"";} ?>><?php echo $row_cemeteryList['cemetery']?></option>
                  <?php
                  } while ($row_cemeteryList = mysql_fetch_assoc($cemeteryList));
                  $rows = mysql_num_rows($cemeteryList);
                  if($rows > 0) {
                  mysql_data_seek($cemeteryList, 0);
                  $row_cemeteryList = mysql_fetch_assoc($cemeteryList);
    ?>
    </select>
    Thanks!

    I figured it out.  Suprised that no one responded - oh well.

  • Semi - Smart Albums - all I want is to update iPhoto every time I add a new

    after reading the iPhoto Help files descriptions of Standard and Smart - Im after Semi - Smart.
    Standard: You can also create an album by dragging a folder of photos from the Finder into an empty part of iPhoto's Source list. iPhoto creates an album with the folder's name and imports all photos contained in the folder.
    - but what iPhoto 6 wont do is automatically update itself every time I add a new pic into the source folder.
    Smart Folder: "You can make a Smart Album that contains only certain types of photos, photos with high ratings, or photos that match other criteria, including EXIF information, such as a specific shutter speed or camera model....
    iPhoto automatically modifies a Smart Album when any photo that matches the album's settings is added to or removed from your library."
    but what iPhoto 6 wont do is to simply capture the folder name as Ive named it in my source folder structure.
    So Im after:
    a. drag a folder ( for example, cars, gemstones, Klimit art) into the iPhoto source pane, it becomes a semi-smart folder in that it watches every new change I make to the source files on my computer. I add a file, iPhoto 6 adds it. I delete one, it deletes it. I mod it - you get the game here.
    Do I need to upgrade iPhoto to handle this rudimentary task ? Seems like this action would be built in - am I missing something here ?
    TIA

    will try that out, thanks for the tip.
    Who would want to have to use Automator or Applescript to make such a rudimentary function enabled within iPhoto ? I would guess 95% of Mac users never use those things. The whole point of Mac is to keep your life from having to descend into mundane technical details, thus freeing one for more time with life's higher level tasks. This should be basic from-day-one type behavior in any photo app.
    Will chime back in on how difficult it get iPhoto to auto-update itself with every new pic I add/subtract to these watched folders.

  • Hello, my mac book air won't update. Every time i try it goes onto the purple starry screen and stays that way for hours, so i just have to shut it down. I have deleted a lot on my laptop so there is enough space, please help?

    Hello, my mac book air won't update. Every time i try it goes onto the purple starry screen and stays that way for hours, so i just have to shut it down. I have deleted a lot on my laptop so there is enough space, please help?

    I believe that system has a hall sensor on it to detect when the lid is closed so it can put the system to sleep and/or disable the monitor so it can be used with an external monitor only. If the sensor is marginal or has a bad cable, it may intermittently cut the monitor on and off, and may likewise put the system to sleep. One way to check would be to plug in an external monitor and if the laptop's screen cuts off or doesn't show up, start using the trackpad and press on a non-typing key like the shift key. If the external display suddenly pops and becomes active while the laptop display remains black, it's probably a problem with the sensor or the cable/connection. You might be able to fool the sensor into kicking on and off by moving a magnet over it. It's located on the left had side of the base with the unit opened up, and right over the audio output plug.
    I know of some people that put a small magnet right over the hall sensor's location so the laptop display turns off and they use the system with an external monitor, keyboard, and mouse. If fooling with magnets, make sure they're small and don't get them close to the hard drive because a strong magnet can wipe them out.
    I don't know if this will help you much, but it might.

  • Why does iphoto 11 tell me to update library every time i open it?

    why does iphoto 11 tell me to update library every time i open it?
    iPhoto '11 OSX 10.8.5
    I open iphoto and I get the message
    "the Photo library needs to be upgraded to work with this version of iPhoto"
    I click upgrade and after a few seconds the photos show fine, the application works correctly.
    then I quit the app. and reopen and i get the same message and the same results.
    this was happening before I did a complete erase of the Macbook Pro and install of Mt Lion
    upgraded from lion.
    only thing thats the same is the computer and the library I restored.
    RT

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • HT1600 my software update fails every time I attempt to update. I have restarted the device, selected software update but when it get to the end of "preparing software update", it fails and says the update was not successful. any ideas?

    my software update fails every time I attempt to update. I have restarted the device, selected software update but when it get to the end of "preparing software update", it fails and says the update was not successful. any ideas?

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.

  • Updates fail every time for CS5

    Sir/Ma'am,
    Why are my updates failing every time on a clean install with a good SN# that is activated?
    Red

    Nobody can know. You have not provided any relevant technical details like system info, error codes/ warnings and so on.
    Mylenium

  • Export updated data every one hour

    I need to export the updated data every one hour.
    As far as I know the SBO objects support only updated date.
    Please let me know if you have any ideas/solutions to solve this issue.
    Thanks in advance,
    Noam.

    Hi Alon!
    do you know something about BO_SP_TransactionNotification?
    You can read more right there: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/businessone/code-samples/using the sbo_sp_transactionnotification stored procedure.htm (BIGG thanx to <b>James Kofalt</b>)
    all you need is to write some T-SQL-lines to handle update-events.. Given article will tell you everything.
    Hope it'll solve your problem!

  • Was there a problem with the last update? Every time I try to watch a video on the net it goes back to the home screen

    Was there a problem with the last update? Every time I try to watch videos it goes back to the home screen

    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

Maybe you are looking for

  • OC4J 9.0.2.0.1 UTF-8 problems

    We were using OC4J 1.0.2.2.1 with default-charset="UTF-8" in global-application.xml and UTF-8 is working fine. We recently upgraded to 9.0.2.0.1. The same setting is not working. We tried setting the default-charset in application-deployments/**/wev/

  • Creating a website in AS3

    I have been banging my head trying to figure out where the objects for a AS3 website are stored that has an empty fla. Can anyone clear this up for me, or at best point me to a tutorial that explains how to create a website in AS3 this way. I underst

  • Errors Message while issuing the material in MB1A i.e unrestricted material

    Hi Expert, I want know the Message while issuing the material in MB1A we are getting the error unrestricted material, so what is the reason of error.(i.e there is no stock available or any other give me the reply as soon as possible) Regards, Ram Rat

  • Smart Album Not Updating Dynamically

    I recently upgraded to iPhoto 11.  My Smart Albums now no longer update dynamically.  For example, I have a smart album that contains the last 3 months of photos.  It does not update after I import photos from my camera.  I have to manaully edit the

  • Events , Phase Model, Freely Programmed SH

    Hi, Here is the situation. I have a freely programmed search help that I am using among several views in the same component. Each view is subscribing to the VH_WINDOW_OPENED event for this search help. The problem is that everytime I pull the search