How can i output a square wave from one of the digital lines of NI 9401

hello,
i m very much new to the LABVIEW environment and NI. please help me guys. i am using cDAQ 9172 and NI 9401 which i believe is a digital I/O device. i want a square wave of amplitude 4 to come out of it so that i can use that to control the speed of a DC motor by pulse width modulation technique by varying the duty cycle. how do i output a continuos square wave?
Thank tou for reading.
hoping for a reply at the earliest
Regards
ashutosh

The DIO ports on a MIO will not satisfy your needs (unless you move to LV RT).
They do not support buffered outputs.
Your update rate (how often you can set the port and clear it) is going to be limited by how fast (a-hem slow) windows will let you iterate,
and,
be non-determinstic.
You could use,
1) LV RT with the existing board, or
2) FieldPoint PWM module, or
3) Arbitrary waveform generators, or
4) HS DIO board, or
5) use the analog output of your baord where you que-up a 0 -5V waveform of the proper shape (i.e. make sure that the duty cylce fraction of the update values are high, the rest low).
This is just to get a PWM signal out.
Now there is another issue. Determinism. How often do you plan on reading your inputs and making a change to you
r PWM? If you plan on doing more often that 10/second, write your code to handle windows going out to la-la land when you expect it to be working.
Can you tell I like LV-RT.
I hope my ramblings have helped.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How can I output a square wave to control a stepper motor using 7332 controller?

    I have the following system configuration for testing a linear actuator (LA):
    LabView 7.1
    NI FlexMotion 7332 Motion Controller
    NI Flex DMM 4070
    The LA is a stepper motor with Step and Direction of Rotation inputs, as well as some discrete I/O for Power Enable and other functions.
    The LA specification only requires that I send a 50% Duty Cycle square wave signal with frequency less than 300 Hz to it in order to make it step.  The LA has it's own power source.  I only need the 7332 to generate the drive signal and the DOR signal to the LA.  Using some of the example VI's, I can get the LA to work, but I will need to incorporate the functions in to a custom application. 
    How can I weed through the numerous advanced functions the 7332 offers and only generate a DOR signal and a step command at a user-defined frequency.  How do I set up the controller for this?
    Thanks

    Hello,
    All the VIs that you can use to create a pulse train and digital I/O from your motion controller are found in the "Analog & Digital I/O VIs" sub-palette in the "Flex Motion" palette. Use "Load PWM Duty Cycle" and "Configure PWM Output" VIs to create the square wave. Use the "Set I/O Port Direction", "Set I/O Port MOMO", and "Set I/O Port Polarity" VIs to create digital output. I hope you find this information useful. You can learn about the specifics of these VIs and their inputs/outputs in the NI-Motion VI Help.
    Regards,
    Aaron B.
    National Instruments

  • How can I move an icon/file from one screen of my ipad to another?

    How can I move an icon/file from one screen on my ipad to another?

    Press and hold the icon until they start to wiggle. Then while holding it, drag it to the edge of the screen and wait for the page to switch, then let go of the app

  • How can I move an original Version from one Project to another Project?

    How can I move an original Version from one Project to another Project?

    From the Aperture User Manual:
    To move an image into a different project
    Drag the image [from the Browser] into another project in the Library inspector.

  • How can I transfer my iTunes library from one comptuer to another in my houser

    how can i transfer my itunes library from one computer in my house to another in my house?

    Type "move itunes library" into the google search bar

  • How can i move my iTunes' library from one mac to another without losing playlist etc???

    how can i move my iTunes' library from one mac to another without losing playlist etc???

    Use migration assistant, email it to the other computer or transfer the file using iChat.

  • HT2729 how can i transfer my itunes music from one computer to another?

    How can I transfer my Itunes music from one computer to another

    Copy the ENTIRE iTunes folder from the old computer to the new computer.

  • TS2776 How can I transfer e-mail contacts from one IPad to another?

    How can I transfer e-mail contacts from one IPad to another?

    Depends on how big the file is.  If itis only a couple of pages, or mostly text, the easiest way would be to e mail it.  If it is a very large file you are going to need wifi.  Take both pads to starbucks, and e mail it from there.  Or if you have wifi, use drop box, for example. 
    Your other choice, avoiding wifi would be a bluetooth type transfer.  There is an app call bluetooth file lite that reads like it will do what you need.   The good news is it is free.  The bad news is that it has terrible ratings.  For grins, i am installing it now on a pad and a phone, and will see if it works.
    With a bluetooth method, you need both devices in  the same place.  If you are trying to send your file across country, bluetooth will not work for you.  you need e mail or drop box type solution, and if the file is big, you will almost certainly need wifi.

  • How can I transfer all iTunes purchases from one apple id to another

    How can I transfer all iTunes purchases from one apple id to another?

    Delmar Ford wrote:
    Don't agree. I have two accounts, one for work which I set up years ago and bought a few tracks. I've recently bought iPhone and iPad and created a home ID and wanted to transfer the old purchaces. Everyone says it can't be done, but I've done it.
    1. on the iPhone/iPad change your "store" Apple ID to the one you want ot transfer from.
    2. go into iTune on the device and download the purchaces.
    3. on you PC/Mac change the iTunes login to the same as the device's ID
    4. sync your device
    5. change both ID's back and the purchaces stay on both iTunes and your device.
    Delmar,
    The procedure you describe is putting content from two different IDs into a single library, which can readily be done.
    However, each item of purchased content will still be tied to the ID from which it was originally purchased, and they will be treated separately for purposes of Cloud, Match, Purchase History, etc.

  • How can I move someone's hair from one photo to another and place it on another person?

    How can I move someone's hair from one photo to another and place it on another person?

    Duplicate post.

  • How can I move someone's hair from one photo to another and place it on another person? I have gone through every instructional video you have and have not been able to master this

    How can I move someone's hair from one photo to another and place it on another person? I have gone through every instructional video you have and have not been able to master this

    Open picture B, the one you wish to select the hair from to add to the picture.
    Use one of the selection tools, e.g. selection brush, lasso tool, to select the hair. You will see an outline ("marching ants") once the selection is complete
    Go to Edit menu>copy to copy the hair to the clipboard
    Open picture A, then go to Edit>paste
    Use the move tool to position the hair from picture B.
    In the layers palette you should see picture A as the background layer, and the hair (B) on a separate layer.

  • How can I move my iPhoto Library from one Mac to another without losing the comments on the individual photos in the process?

    How can I move my iPhoto Library from one Mac to another without losing the comments on the individual photos in the process? The source Macbook (OS 10.4.11 and iPhoto 6.0.6 (3.2.2.)) is with my husband in Germany, the target MacBook Pro (OS 10.8.5, iPhoto 11) is with me in Japan. Thanks for your help.

    I copied the iPhoto Library to a CD and from there to the new MacBook
    If you copied the library to the CD via the Finder it would be no different than the methods Terence suggested.  If you used the Share ➙ Burn menu option from inside iDVD you'll get a mini library that has to be accessed from the open library and the events/alubums copied into the destination library.  Not the same as the other methods.
    The Share ➙ Burn method is no longer supported with iPhoto 9 and later.
    OT

  • How can I move my telephone number from one Iphone to another

    How can I move my telephone numbers from one IPhone to a new one?

    if you are talking about your contacts.  backup your old iphone then do a restore to the new phone and that will transfer your contacts your settings and pics and music. 
    if you are talking about chaning your phone number from an old phone ot a new one that has a different number.  you have to contact your phone carrier.

  • How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    You've logged into your account and viewed your purchase history and there aren't any error messages shown (e.g. 'problem with a previous purchase'), and you haven't got any purchases due (e.g. pre-orders and/or subscriptions) : Why can’t I select None when I edit my Apple ID payment information ?

  • How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    Tthe brute force method: start with Settings > iCloud and turn off Find My (you will need the password), then change the iCloud ID, then go to the apps such as Messages, FaceTime, etc, and delete the Apple ID and enter the new one.

Maybe you are looking for