PWM using USB 6251

I am new to labview, I would like to generate PWM signals of On time in the order of 0.1µs with duty cycle of 1%. I have seen sample programs for generating a PWM signal . I have NI USB 6251 hardware, Is it possible to generate the PWM of the mentioned requirement. I need this PWM signal to switch IGBT drivers.
If this cannot be used, kindly suggest me what hardware to be used _
Thanks in advance
Sriniketh

Hi Sriniketh,
why don't you call your local NI office? They will be happy to help you selct your DAQ hardware!
Each counter can be used to generate a PWM signal: two counters, two PWM signals…

Similar Messages

  • How correctly using USB 6251 to measure DC voltage

    Hi all
    I have encounter a problem like in the topic http://forums.ni.com/ni/board/message?board.id=170​&message.id=404676&query.id=250408.
    I'm sorry for repeating of topic but I've read all of your advices and have not yet resolved problem. 
    My task very simply: I use USB 6251, differential mode to measure voltage of battery Energizer 1.5V. But result shows >10V ??? Mean.vi shows bigger 4V (see the attached picture)
    I don't understand what happed with my task?
    Please help me!
    Thank so much!
    MC  
    Solved!
    Go to Solution.
    Attachments:
    Acq gragph voltage.JPG ‏22 KB
    result of measurement.JPG ‏50 KB

    Thank Flaugher
    I did not connect bias resistors. But now I do another way: connect possitive pole of battery to the AI0 and other to the AI GRD, choose input configuration "RSE" and get good results. 
    Attachments:
    good results.JPG ‏23 KB

  • Pwm labview using NI USB 6251

    Hello I´m new in LabVIEW
    I would like to generate 3 PWM signals using NI USB 6251, but I have only 2 counters..
    I use the example of LabVIEW of this link http://www.ni.com/tutorial/2991/en/
    but how can I generate the other pwm?
    Besides I need to generate a specific number of pulses like 10
    How can I do that? and how can I show the pulse in a waveform
    Thanks!

    Hi ZelDrums,
    sounds like you bought the wrong DAQ hardware for your task!
    Which frequencies are we talking about? For low frequencies you could use software timing to generate a PWM: switch on/off a digital output pin with some delay in between…
    Besides I need to generate a specific number of pulses like 10 How can I do that?
    Well, generate a signal (aka waveform) consisting of your ten pulses. There are a lot of signal generation functions!
    and how can I show the pulse in a waveform
    Please use proper LabVIEW terms. You probably want to show your signal (aka waveform) in a chart or graph: just wire your waveform to an indicator of your choice!

  • How can i deliver a single pulse of varying amplitude using Analog output and USB-6251?

    I am trying to generate an analog output for the following waveform:
    Pulse width: 300 usec, Frequency 40 Hz, Amplitude is following a sine wave with a 2 second period.
    My approach is: Use an async timer with 1/[40 Hz] sec  interval. I set the DAQ output rate at 1 MHz and the approach has been to generate and write 300 samples of the amplitude I need to send out, then wait for the next async interval callback , update amplitude etc etc.  The assumption is that once the 300 samples are written and the task started , a 300 usec pulse would be sent out , task then stopped and then the analog output would be set to 0 waiting for he next pulse.  The reality is that I get a stream of pulses of 300 usec which last the whole timer interval. 
    So , trying to establish whether what I am trying to do is feasible without actually sending a large array to the USB-6251 which would write zeros for the period after 300 usec.
    Here is my timercallback code for review:
        switch (event)
            case EVENT_TIMER_TICK:
                DAQmxErrChk(DAQmxStopTask(TaskAnalog));
    Determine Voltage value algorithm here
                //Generate Waveform and start Task
                //Prepare AO arr
                for (k=0;k<300;k++)
                    AOArr[k] = 0;
                    if (k<G_PulseWidth)
                    AOArr[k] =  VOLTAGE_OUTPUT;
                if (AOArr!=NULL)
                    DAQmxErrChk(DAQmxWriteAnalogF64 (TaskAnalog, (int32) 300 , 0, DAQmx_Val_WaitInfinitely, DAQmx_Val_GroupByChannel , AOArr, &sampsPerChanWritten, NULL));
                DAQmxErrChk(DAQmxStartTask(TaskAnalog));
                break;
    Thanks

    I did resovle the issue I encountered. It was due to bad configuration of the Task.
    My initial configuration was:
    DAQmxErrChk(DAQmxCfgSampClkTiming(TaskAnalog, "",1.0E+06, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps , 300 * 1.0E+06));
    which should be:
    DAQmxErrChk(DAQmxCfgSampClkTiming(TaskAnalog, "",1.0E+06, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps , 300));      
    THis did it. works very well.
    THanks

  • Sample-and-hold vi for USB-6251

    I want to implement a sample-and-hold circuit on my USB-6251 device.
    The input will be an analog voltage waveform.  The output will be that same analog voltage waveform (this is the "sampling" in the sample and hold), with one caveat:   I want to hold the output at a certain level depending upon a digital input (ttl 5V hi or 0V low).  For example, when the digital input cycles hi, I want to take the value of the analog output at that point in time, and continue to output that voltage value until the digital input cycles back low (the "hold" in the sample and hold), at which point the output continues outputing the incoming analog voltage waveform. 
    I think I should be able to create such a VI using a comparison function, but I cannot quite figure out how to implement it.  Any suggestions?
    thanks!

    I would imagine this could be accomplished with the use of a simple true false selector.  In the false case the waveform coming from the Analog Read would be passed on and also into a shift register on the right side of the reading while loop.  This shift register would then also be the true case of the selector.  There would then be a producer consumer style structure where this output array would be fed into a DAQmx write.
    Doug Farrell
    Product Manager - Condition Monitoring
    National Instruments
    National Instruments Condition Monitoring
    Attachments:
    2009-03-20_135919.png ‏4 KB

  • How do I take 4 frequency readings with a USB-6251?

    Can I take frequency readings on 4 different digital input channels of my USB-6251?  I am using 1 of my counter channels for a Pulse-Width output.  Can anyone show me some example code for this or explain how to attempt this?
    Jeremy Backer
    CLAD

    Hi JMBacker,
    You can make a frequency measurement from
    you digital lines, but you would have to do it in software. To actually
    take a frequency measurement in hardware you would have to use a
    counter input.
    In order to do this with your digital
    inputs you will have to know your sampling rate, and do some
    manipulation to the array of values that you get when reading the
    values from the port. You would only be concerned with the 4 lines of
    the port you configure. Once you store that data in the array you would
    have to check for the number of samples between two transitions from 0
    to 1, then multiply that by (1/sampling frequency) and take the inverse
    of that value. This will give you the frequency value of one period of
    your input signal. You would have to do this process with each of the 4
    desired input lines in one port. 
    Attatched is an
    example program that takes that measurement and computes the frequency
    in software. This is in LabVIEW version 8.2.1, but can be used in any
    version at or newer than that version.
    Chris N WhiteHigh Speed Products Group
    Attachments:
    Meas Freq-Digital_mutli_line.vi ‏34 KB

  • Will USB-6251 execute multiple tasks at the same time?

    Hi all,
    I have an application controling an experiment and logging data using a USB 6251. One measurement uses Two Edge Seperation , and takes a while to complete (20 to 30 seconds). Meanwhile I need to execute another task repeatedly to sense a digital input pin. Does anyone know if the USB 6251 can execute a second task while it's busy doing the edge seperation task? So far I haven't found anything in the documentation or on the forums.
    BTW I can't just 'try it and see', or at least it's very tricky to do so. The control system is at the top of a scaffold tower, a long way from my development system. Every code change has to be deployed and installed to test it.
    I recomend you avoid such an installation if you can  )  It makes for a tough time debugging.
    Thanks for any help.
    Bandit.
    Message Edited by Bandit on 03-20-2007 12:05 PM

    A small addition to YatimM's answer
    You can execute two tasks together as long as they are not accessing the same channels or digital lines.
    For acquisiton on analog input channels, you cannot execute 2 tasks simultaneously even if they scan for 2 seperate sets of channels
    For Ex: task 1: acquiring from analog channels 0 to 3 and task2 : acquiring from analog channels 4 to 6, will still give a 'device reserved' error, because a single ADC is available and used for multiplexing all channels in a task/ scan list and the second task will give up this error

  • Acquisition usb 6251

    hey everyone,
    My name is Marek 
    Please help me solve my problem.
    Whether
    it is possible using a NI USB 6251 doing data acquisition and graph display
    of real-time of the sine signal of variable frequency within the
    0-30kHz? Please advice what should I use: DAQmx blocks or Assistant DAQ  or even something else?
    I would like to have a real-time measurement. 
    Best regards.

    Hi,
    If you are a beginner you shoud use the DAQ assistant otherwise you have the DAQmx functions. I invite you to start with those tutorial :
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    Do I Need a Real-Time System?
    Regards,
    Message Edité par Steve M. le 02-04-2010 10:06 AM
    Steve M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Vidéo-t'chats de l'été : présentations techniques et ingénieurs pour répondre à vos questions

  • Selecting analog cutoff frequency for NI-USB 6251

    Hello everybody!
    -I´m trying to acquire voltage analog signals by using a BNC 2110 and a bord NI USB-6251. Does anybody know if a programmable analog lowpass filter is available for NI USB-6251? If it is available, how can I set a value for the analog lowpass filter on labview?
    thank you in advance,
    best regards!

    Thank you for this information John Passiak!
    -If there is no programmable analog lowpass filter for NI-USB 6251, so I will need to use the standart cutoff frequency "fc" of the analog lowpass filter (fc= 750 kHz, as mentioned in the user´s manual) for acquiring my signals. By doing so, it will be necessary to use a sampling rate of at least 1,5 MHz to digitize the signal, in order to avoid aliasing! The maximal sampling rate "fs" available is fs= 1,25MHz (according to the user´s manual). Besides, the duration of the signals which I need to digitize take about 25s. That would lead to a considerably higher number os data, and problems to open and save the signals in Labview!  How can I solve this problem?
    thank you again for your help!
    best regards!

  • USB 6251 Active light flashes once on power up, then no activity

    Hi,
    My USB-6251's active light flashes once when turned on, followed by no further activity by either Active or Ready lights (both are off). The computer shows no recognition of the device. This is when plugged into a confirmed operating wall outlet and attached to a computer that previously recognized and used the device. I opened the device and can confirm that the replaceable fuse is not broken. Any ideas?
    Cody

    If you have been able to talk to the device before, then I am assuming that something must have gone wrong with the device itself. Best is to call NI's customer services and get the device repaired.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Usb 6251 can be programed by vc++6.0

    I buy a usb 6251 (DAQ) , can it be programed by vc++6.0?
    Solved!
    Go to Solution.

    Hi xiwang,
    Yes, you can use Visual C++ 6.0 to program a USB-6251. Support for the USB-6251 was added in NI-DAQmx 8.1. NI-DAQmx 9.0.2 appears to be the last version to claim support for Visual C++ 6.0 (for the ANSI C API, not the Measurement Studio C++ API).
    Brad
    Brad Keryan
    NI R&D

  • How to install windows 7 on my macbook pro mid 2009 using usb. right now aim using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me

    how to install windows 7 on my macbook pro mid 2009 using usb. right now iam using mavericks 10.9 can any one please help me. I tried to edit plist in boot camp but it went wrong please help me.
    Iam new to coding. please help me.

    try the solution posted by kunu here and report back
    https://discussions.apple.com/thread/5105056?tstart=0

  • After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    Did you talk to your carrier?

  • TS3274 How can I connect tv to ipad?  Want it to use netflex but will not connect using USB cable.

    How can I connect tv to ipad?  Want it to use netflex but will not connect using USB cable.

    http://store.apple.com/us/browse/home/shop_ipad/ipad_accessories/cables_docks
    You should find a solution here

  • After lollypop upgrade I can no longer transfer files from LG g3 to windows8 computer using USB charge cord. Can I roll back to Kittcat?

    After lollypop upgrade I can no longer transfer files from LGg3 to windows8 computer using USB charge cord. Can I roll back to Kittcat?

    That is definitely odd, grantcool. Let's help restore this important data transfer feature. To confirm, when you connect the USB cable to your phone and computer > Pull down the Notification Bar > Select USB Connected > Can you choose Media Sync (MTP) ?
    NicandroN_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

Maybe you are looking for