Using pwm to power solenoid

Hello, 
I am new to electronics and would like to power a solenoid using pwm and digital output from myDAQ. Please help.
Zach

See duplicant here:
http://forums.ni.com/t5/LabVIEW/Using-PWM-and-digital-outputs-of-myDAQ-to-power-multiple/m-p/2615449...
-AK2DM
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • How do I use sqrt() and pow() math functions?

    I tried starting with import java.lang.Math.*; and using sqrt() and pow(), but I get an error response in compilation.
    //** 1/pi calculation program using Ramanujan's forumula **//
    //** by n=2 iteration, double precision value for 1/pi repeats **//
    import java.lang.Math.*;
    import java.io.*;
    public class CalcInversePiRamanujan {
      public static void main(String args[]) {
        double n=0, term, four_n_factorial=1, n_factorial=1, inverse_pi=0;
        inverse_pi = four_n_factorial * 1103 * 2 * sqrt(2) / 9801; //** initial value for n=0 **//
        System.out.println(inverse_pi);
        for (n=1, four_n_factorial=1, n_factorial=1; n<=3; n++) {
            four_n_factorial *= (4 * n);
            four_n_factorial *= (4*n-1);
            four_n_factorial *= (4*n-2);
            four_n_factorial *= (4*n-3);
            term = four_n_factorial;
            n_factorial *= n;
            term /= pow(n_factorial, 4);
            term *= 1103 + 26390 * n;
            term /= pow(396, 4 * n);
            term *= 2 * sqrt(2);
            term /= 9801;
            inverse_pi += term;
            System.out.println(n, term, inverse_pi);
        System.exit(0);
    }

    all methods in math class are static so you have to call them as
    Math.pow() and Math.sqrt() you dont have to import any additional packages as Math is a class available in java.lang package
    you have to change your
    System.out.println(n, term, inverse_pi); to
    System.out.println(n+ term+ inverse_pi);
    math class also provides the value of Pi you can access it using Math.PI

  • How can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    how can I use microsoft word, power point and those apps in my new iMac ? i bought this iMac yesterday so am new on tho and i would like to know

    If you absolutely must have the Microsoft applications, you can purchase and download them from http://microsoft.com/mac.
    Free software suites LibreOffice and OpenOffice offer similar functionality (word processing and spreadsheets).
    Or you could do worse than look at Apple's Pages, Numbers and Keynote, which should already be installed in your Mac and can export to Microsoft formats if need be.
    Matt

  • Can I use the same power charger in another country (South Africa) and just but a socket adapter?

    I am moving to South Africa from the US for a year and want to know if I can use the same power charger in South Africa and just but a socket adapter or do I need to get a new power charger for S.A.?
    This question was solved.
    View Solution.

    Hi,
    Nowadays laptop chargers can be used for normal electricity around the world (110V to 250V). All we need is a small plug adapter similar the the ones we use to travel overseas. Most electrical shops, travel agents and airports ... sell them.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • To upload photos from my pc onto my ipad using a usb stick. I bought a camera connector kit and tried placing the usb stick onto one of the white square adaptors, stuck it into the ipad2 and I got 'the device uses too much power'' message. Pls help.

    I am not very familiar with the ipad2. I wished to transfer some photos from my pc (not an apple pc but that is the only one I have) to my ipad2 as I thought it would be easier to cull them, edit, crop etc to create albums for our recent trip (the photos are already on the pc and no longer on the camera memory card). When I place the usb stick on the adaptor and stick it onto the Ipad2 I keep getting 'device uses too much power/ requires too much power' message. I read somewhere on the internet that a usb hub could be used to solve the issue but that did not work either. What am I doing wrong? Is there actually a way around this problem. If not why does apple sell this product for Ipad users at all?
    Thank you for any help/ solution you can offer.
    Regards

    I'd ask that on the iPad forum.
    https://discussions.apple.com/community/ipad

  • On my MacBook Pro with Retina Display, Why does the "USB Devices Disabled Unplug the device using too much power to re-enable USB devices" keep coming up after I unplugged the usb device?

    On my MacBook Pro with Retina Display 15", that I purchased a few weeks ago, started coming up with the following message on my desktop:
    "USB Devices Disabled Unplug the device using too much power to re-enable USB devices".
    I unplugged the device and the message still keeps coming up.
    This is what I have done so far to troubleshoot:
    I shut down the laptop. When booting up I pressed the command+option+p+r at the same time. It comes up with a menu to reinstall OSX, Get help online, Run Disk Utility, etc. I choose the disk utility and repair the disk and then restarted.
    The message keeps popping up and I can't seem to get rid of it. Why does the message keep popping up even though I don't have any devices hooked up to the laptop at all? Any help to reenable my usb ports and get rid of the messaage would be helpful.

    I talked to Apple Support and we at least stopped the bleeding, a little bit. These are the troubleshooting steps I did before I contacted Apple Support:
    1. Reinstalled OSX
    2. Restore the last known good Time Machine Backup.
    This did not fix my issue, so I called Apple Support and they told me this:
    1. Turn Power off.
    2. Wait 15 seconds.
    3. Plug in Magsafe adapter.
    4. Wait 15 seconds.
    5. Hold down the Shift+Option+Power Button for 20-30 seconds.
    6. Turn Power back on.
    Ok, this stopped the bleeding a little, but as soon as I plugged in a Apple USB Superdrive
    and a Apple Mini Displayport to VGA Adapter. This "USB Devices Disabled" pop-up pops up like every 30 minutes now. At least, it is not constantly popping up after I close it, so I guess it will do for the temporary. Going to contact Apple support, later, though to see what else can be done.

  • HT4101 When I connect my camera I get an error message saying USB device uses to much power. What do I do to rectify this

    I am unable to download photos from three different cameras, Sony, Samsung and Nikon using the lightning USB camera connector. I get a error message saying the the USB device uses too much power.

    You may be able to over-come the problem by using a powered hub.
    https://touch.ebay.com/tablet/item?itemId=130511148857&rd=vi

  • Lacie "using too much power", USB disabled, can't access ext HD?

    Last night, moving items to my Ext HD, i got an error message about the USB "using too much power" and then it disabled it.
    I'm using a 15'' 2006 Macbook with 10.6.7 operating system.
    I've googled the issue and have run out of ideas.
    The Ext HD is a 500GB LaCie Little Disk New Pack USB2.0 Black
    Restarted the macbook.
    Booted the macbook into safe mode.
    I've tried plugging something else into both my USB ports (it detected the item, a camera card reader) and was usable.
    When I plug in my Lacie Ext HD now using its usb cord, the blue light on the Lacie flashes as if its detectable/inuse but there's nothing in my Mac menus showing access to it.
    HELP ?
    Error Message:
    Because a USB device was drawing too much power from your computer, one or more of your usb devices have been disabled.
    To prevent damaging your computer, the USB device drawing too much power has been disabled. Other devices may have also been disabled. When you disconnect the device drawing too much power, your other USB devices will be enabled again.

    Maybe the disk will work through a separately powered USB Hub?
    Bob

  • Sharepoint 2010 question : Error while deploying wsp file in using managment shell (power script)

    When I tried to deploy the wsp's using managment shell (power shell scripts) everything looks good.
    When I go and take a look the "manage farm solutions" thru sharepoint central admin, I see the deployment failed in two servers.
    Error is
    Could not load file or assembly 'c:\windows\Temp\solution-cxxxxxxxxxxxxxx\xxx.xxx.dll" or one of its dependencies. Access is denied.
    Can you please let me know what could be the reason.
    Note : I have two app servers and two web servers setup. The deployment is sucessful in 2 apps servers . but 2 web servers are giving error.
    Thanks
    Pichaimani

    Hi,
    According to your post, my understanding is that you wanted to failed to deploy the wsp's using managment shell.
    You need to make sure that the dll is registered in the GAC.
    Go to %Windows%\assembly. If the dll isn't there , you need to install it to the GAC on the server. Simply drag it into that folder in Windows Explorer, and it should install itself.
    Here is a similar thread for your reference:
    http://stackoverflow.com/questions/1265505/sharepoint-could-not-load-file-or-assembly-the-system-cannot-find-the-file-sp
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Why does my Macbook pro said "unplug the device using too much power to re-enable USB devices" when i plug in my iphone's charger to connect my phone with the mac?

    my iphone 5's charger is not working anymore with the mac or the normal plug in neither, i dont know why. whenever i plug in my mac, i have to twist the charger a little and my mac said "USB Devices Disabled: Unplug the device using too much power to re-enable USB devices". of course it cant connect with the itunes in my mac, but somehow it still syncs the music to my iphone... i don't understand why. please help me thanks!

    try resetting the ipad,or change the cable ,it woould work 

  • I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I can no longer charge my iPhone5 through either of my macbook pros. I get the error message that a USB device is using too much power. Can anyone help?

    I reconnected the original powered hub that I thought probably caused the problem and this time it shut down the whole computer. When I rebooted everything now works perfectly. The system reset. I tried another powered hub and it didn't have the same effect so the old one is heading for the bin and with fingers crossed all systems are now working perfectly. Trying to reset PRAM or reset the SMC didn't work but causing the same power issue did. Thanks for your input though. It did get me to think what was the original cause.
    Cheers
    Guy

  • I can no longer download photos to my ipad with the camera attachment. the message says thats its using too much power. i have a 100% charge and i used it before and it worked fine.

    I can no longer upload photos with the camera attachment. I am getting an error saying the device uses too much power. I have used the device before. Is there anything that can be done to fix this problem?

    You don't actually say what the problem is, but maybe this can help:
    USB and Firewire information:
    http://support.apple.com/kb/HT1151?viewlocale=en_US
    http://support.apple.com/kb/HT4049?viewlocale=en_US

  • What version of Flash Player should I use with my Power PC based Mac?

    I did the following (see below from a Recent Forum) - and even got a sucessful INSTALLED, but when I go to YouTube....I can not get anything and I am asked to update FLASH.....thoughts?
    What version of Flash Player should I use with my Power PC based Mac?
    Please follow these instructions for installing the most recent version of Flash Player that supports PowerPC based Macs
    1. Follow the instructions for uninstalling Flash Player on the Mac: Uninstall Flash Player
    2. Download and extract the Flash Player 10.1.102.64 zip file
    3. Navigate into the folder "/Flash Player 10.1.102.64/10_1r102_64/"
    4. Mount the file "flashplayer10_1r102_64_ub_mac.dmg" by double clicking
    5. Install using the normal procedure

    I was finally able to successfully installed FP on my Mac OS 10.5.8 using the last trick shown below by Chris (Adobe Flash Player.pkg file). This, only after several (at least 10) attempts, and only after restarting my computer after downloading the install file. Thanks for the helpful post.

  • TS1388 My battery on my macbook pro all of a sudden keeps using the battery power really quickly, so I am having to rechareg it constantly.  Does anyone know why this occurs or how to fix it.  I have used all the energy saving tips.

    Hi My battery on my macbook pro keeps running low on power very quickly and I have to keep recharging it.  This has never happened before. I have used all the power saver options, but it keeps happening.  Can anyone help. The battery seems to be losing power even when it is turned off.

    Hi BigThinker,
    How old is your Mac? If it is an older one, then the battery may just be dying. You can check by clicking on the Apple in the upper left-hand corner, then clicking on About This Mac>More Info>System Report, then click on Power (about half way down the list). At the top of the resulting display, you should see the following type of info:
    The Health Information will tell you if your battery is going to need replacement soon. If it says Normal, then it is not the battery.
    Cheers,
    GB

  • HT4101 When connecting my camera to my IPad mini via lightniing to usb camera adapter,I get "The attached accessory uses too much power" .Any solutions?

    When I connect my Ipad mini to my camera via lightning to usb camera adapter all i get is a message "The attached accessory uses too much power."Any solutions

    It depends on the camera, but some have a special mode for offloading photos but not trying to charge the camera through the USB port. For others, you may have to pull out the SD card (if that's what it uses) and use the Lightning to SD card reader instead.
    Maybe if you told us what camera you are connecting, somebody here with the same model can give you more specific information.

Maybe you are looking for

  • Please help my desktop images, wallpapers gone.

    Please community i need your help. I restored my computer from Lion to lion, before i had Leopard and i had all my favority desktop wallpapers, for example aurora , earth horizon , earth etc..      When i installed for the first time Lion , i got eve

  • PSE 8 Won't Launch After Installing Maverick

    I can't open PSE 8 and get an error 150:30.  I tried to use LicenseRecoveryLauncher but it won't open either because it says PowerPC applications are no longer supported.  Can anyone help me get around this issue???

  • STO delivery with zero quantity

    Hi Gurus,                We are facing a problem in STO scenario. We are in ECC 6.0. We have settings for WM (Warehouse Management) are in place.  STO is created. When trying to create a delivery the system is creating the delivery document but it is

  • While downloading iOS7.1.2 I got error and I can't download it again. What should Ido ?

    while downloading iOS7.1.2 igot error while installing it and I can't download it again. what should Ido ?

  • Lost language selection option

    Hi, I accidentally upgraded our GroupWise system using the gw8.0.2-92377_full_linux_en package rather than the gw8.0.2-92377_full_linux_multi package. Now the language selection dropdown box is not there anymore on the WebAccess login screen. I tried