Signal generator fo usb-6211

Hallo, I'm in the process of generating square wave with adjustable duty cycle for my usb-6211. After searching, I find two generators available: IVI FGEN, and DAQ Assistant. The latter seems suitable to my device, but without capability of changing duty cycle. Consequently, I'd love to know whether there exists any kind of signal generator which yields up square wave with adjustable duty cycle and whether it is feasible to connect it to DAQmx Write to feed to the signal to AO0/1 of my usb-6211.
thanks in advance,
win2

Hi win2,
you are right, the DAQmx functions are what you need. The FGEN drivers are only for the hardware based function generators.
As you mentioned that you use DAQ Assistant, I guess you use LAbVIEW (which version?) to try to produce the rectangel with adjustable duty size.
Right? Please let me know, which version of DAQmx you have installed on your PC, too.
Here you have two links, where you can find an example how to generate a squares with adjustable duty cycle using the analog output.
This example, i guess, is what you want to achieve:
http://zone.ni.com/devzone/cda/epd/p/id/5235
It shows, how to use software timing to adjust the duty cycle.
The second example shows, how to create a "selfmade" signal:
http://zone.ni.com/devzone/cda/epd/p/id/1621
If you want to send TTL signals, please keep in mind that you can use one of the four digital outputs.
Creating a digital pulstrain allows to set the duty cycle directly.
I hope, this helps
regards
Kilian

Similar Messages

  • Configuring and Controlling Agilent 332220A signal generator...

    Hello,
    I am trying to configure and finally control Agilent 33220A signal
    generator through my Labview VI. Signal Generator has USB, LAN and GPIB
    interface. Measurment studio recognises it, however I need assistance
    to proceed from that point. I would be happy, if some body can guide me
    through this process.
    Any online manual or user guide would be great.
    Thanks in advance...
    Shivaram

    Hi Sine,
    Just to recall what all I did,
    *  Downloaded agilent signal generator instrument drivers from the link given below.
           http://sine.ni.com/apps/we/niid_web_display.download_page?p_id_guid=E3B19B3E9066659CE034080020E74861
    *  Extracted the downloaded zip file to get a folder by name "ag33xxx".
    *   Then copy paste this folder in the location given below.
           C:/Program Files/National Instruments/LabVIEW 7.1/instr.lib
    *   That's it. You are done. Connect the signal generator either through USB cable or RS232 or via LAN.
    *   Now you can communicate and control the signal generator
    through the labview VIs. You can do so by right clicking in the block
    diagram then, point to "Input", "Instr Drivers". I have attached a
    screen shot of it.
    *  I have also attached a VI, which I have developed with the help of this form.
    Hope this information helps...
    -Shivu
    Attachments:
    agilent_signal-gen.jpg ‏78 KB

  • How to output the digital clock and synchronization signal from the NI USB-6211

    Hello,
    I need to connect the NI USB-6211 to control a digital to analog convertor chip (AD5541). However, this chip requires three input signals :1) Clock input, 2) Logic input or a synchronization signal  and 3) Signal Serial Data input (CS, SCLK, DIN).
    how to output the digital clock and the synchronization signal from the NI USB-6211?

    Hi SaberSaber,
    You should be able to use the counters to generate a pulse train that could be used for clock and synch purposes.  
    Hope this helps.  Let us know if you have more questions.  
    Dave C.
    Applications Engineer
    National Instruments

  • How to use voltage signals as input signals into USB-6211

    Hello everyone,
    I have a USB-6211 and a PDQ80A -quadrant photo detectot from thorlabs, i am trying to take three voltage signals from the PDQ80A into my PC using USB-6211 from NI. THese voltage signals are X,Y and sum (X+Y).  
    Looking forward to your reply.
    Thanks in advance,
    _Perseus 

    Technically, the question was in the title.  But of course, the answer to that is... Connect them using WIRES.   It's designed for voltage signals, just wire your cell outputs to whatever DAQ input channels you're going to read.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • How to send TTL output AND acquire AI voltage data using USB-6211

    Hello,
    I am relatively new to Labview, so please bear with me.  I have a research application involving 2 pressure transducers and a high-speed camera.  I wish to acquire analog voltage data from the 2 pressure transducers.  However, at the start of the acquisition, I will need to send a single TTL output to trigger the camera.  This TTL pulse must be sent out at exactly the same time that the AI acquisition begins, in order to ensure that my 2 pressure measurements and camera images are 'synchronized' in time.
    Is this possible on the USB-6211 running with LabView 8.20?  I currently have a fairly simple LabVIEW vi that uses a software trigger to start an AI acquisition - I have attached it with hopes that it may help anyone willing to assist me.  I would prefer to be able to simply add something to it so that it will output a TTL pulse at the start of the acquisition.  
    Thank you in advance.
    Regards, Larry
    Message Edited by Larry_6211 on 12-19-2008 11:24 AM
    Attachments:
    USB6211_v1.vi ‏212 KB

    Hi All,
    I'd like to clear a few things up. First, you'll find that if you try to set the delay from ai start trigger and delay from ai sample clock to 0, you'll get an error. Due to hardware synchronization and delays, the min you can set is two. Note that when I say two, I am referring to two tick of the AI Sample clock timebase, which for most acquisitions is the 20MHz timebase. I modified a shipping example so you can play around with those delays if you want to - I find that exporting the signals and looking at them with a scope helps me visualize what is going on. The Manual has some good timing diagrams as well but it looks like you've already hit that. The defaults would give you a delay of  250ns from the start trigger - is this too high for your situation? What is an acceptable delay? I tend to think that "exactly the same time" is a measure of how precise rather than an absolute (think delays in cable length making a difference.)
    With all that in mind, I see a few options:
    Start your camera off of the AI start trigger (an internal signal) and just know it is 250 ns before your first convert. 
    Export the convert clock to use as a trigger. This assumes your camera can ignore the next set of convert clocks.
    More complicated option: Internally you have an ai start trigger, sample clock and convert clock. From your start trigger to the first convert is 250ns but if you export your convert clock you're going to get future convert clocks as well. One option would be to generate a single triggered pulse using a counter (start with the  Gen Dig Pulse-Dig Start.vi example) with the AI start trigger as the trigger for the counter, an initial delay of 250 ns, and a high time of whatever you want it to be. This should give you a singe pulse at very close to same time (on the order of path delays) as your first convert clock. 
    Hope this helps, 
    Andrew S
    MIO DAQ Product Support Engineer
    Getting Started with NI-DAQmx
    Measurement Fundamentals
    Attachments:
    Acq&Graph Voltage-Int Clk.vi ‏37 KB

  • USB-6211 - Getting Error 50103 when attempting to use two counter method

    I am using a USB-6211 and want to measure the speed of a motor by counting pulses coming back from sensors on the motor. Speed will vary from 0 to about 5k Hz.
    My strategy is to use "Method 2" in the manual to measure using two counters.  To do this I am attempting to generate pulses of known duration with Counter 0, route these pulses to the gate of Counter 1, send the motor pulses into the source of the counter1 and letting the counter determine and report the number of pulses that occur during the "gate time".
    To get the pulse generator going at 8,333 Hz I do this:
    AGniDAQmx_CreateTask(instrHandle,"TimingPulses, Task_Handle8)
    AGniDAQmx_CreateCOPulseChanFreq(instrHandle, Task_Handle8,"Dev1/Ctr0","Out",DAQmx_Val_Hz,0,8.333,0.5)
    AGniDAQmx_CfgImplicitTiming(instHandle, Task_Handle8, DAQmx_ValContStamps,1000)
    AGniDAQmx_StartTask(instrHandle, Task_Handle8)
    This works fine.  (By the way, I do stop and clear the task before exiting.)
    Now I add this code in a new task to try to use the Counter0 pulses to measure the input pulses with Counter1.
    AGniDAQmx_CreateTask(instrHandle,"MotorPulses, Task_Handle5)
    AGniDAQmx_CreateCIFreqChan(instrHandle,Task_Handle5,"Dev/ctr1",MotorPulses,0,10k,DAQmx_Val_Hz,DAQmx_Val_Rising,DAQmx_ValHighFreq2Ctr,0.12,10,"")
    AGniDAQmx_ReadCounterScalarU32(instrHandle,Task_Handle5,10,E)
    AGniDAQmx_ClearTask(instrHandle,Task_Handle5)
    This function fails on the CreateCIFreqChan() call with an DAQMXError 50103.
    Apparently Counter1 resources are being tied up by Counter0.  Is this true?
    Any suggestions?
    Thanks,
    -CBJohnson

    Hi Mallori,
    Thanks for the great reply message.  I do appreciate your help.
    Yes, I think you understand my application.  The motor can turn from zero to about 5K RPM and one pulse is generated with each turn of the motor.
    This application is using Agilent VEE but the statements are "C-like" so that's why I posted them like that.  I can't "cut-and-paste" directly from the VEE statements and I have to type them.  I mis-typed the Implicit Timing statement.  It was missing an "_".  It should have been:
    AGniDAQmx_CfgImplicitTiming(instrHandle,Task_Handle8,DAQmx_Val_ContStamps,1000)
    I think I understand what you are saying about DAQmx_Val_HighFreq2Ctr using the resources from both counters  That explains why I get the message about resources not being available.  
    I have tried to use Counter Method 1 and it *almost* worked.  A problem comes about when the motor speed is zero (stopped) and, since these motor pulses are being fed into the Gate of the counter, the zero value makes it simply time out.  Increasing the timeout value to infinite (-1) makes the entire program hang.  I need it to go on -- looking for other user input, reporting other data being collected, etc. If the counter is waiting for the Gate signal to rise to start counting and to drop to stop counting and do the calculation, it will not work since it just times out.  I went to this counter method (actually called counter method 3 in the DAQ manual) because then I am trying to generate the pulses of known period and send these pulses to the Gate.  Then I am feeding my pulses into the Source of the counter and letting it determine how many pulses occured during the "gate time".  In this case, zero pulses during the "gate time" should be OK; it should simply report that zero pulses were detected and start counting again on the next rise of the Gate pulse.  I thought I could simpy adjust the length the "gate time" to measure my range of frequencies.
    Make sense?  Any way to do this with the two counters of the USB-6211?
    Thanks, Mallori,
    -Craig

  • Curent measurement via usb 6211 - needed advice

    Dear LabVIEw users...
    Needed some help about info on USB 6211 specifications.
    If I generated an AC signal e.g. sine or square wave (max/min = +/- 10V; offset=0), what is the max current produced by the AO DAQ NI USB 6211? Is it 2mA??
    Is there a limit (or range) on the current values I wanted to measure through AI channel? 
    Thanks a lot. 
    I am trying to generate an AC signal to an electromagent for actuation purposes and I am not sure if USB 6211 could produce enough current for this purpose. I may need to amplify the output AC signal. 
    Looking forward to receive some good advice from you guys..
    Thanks.
    Alam
    DeakinUSer 2013

    1. Yes, AO current limit is 2mA.
    2. There's no current limit define for AI, but you should not directly feed current into it, since it's designed for voltage. Please consider measure voltage across resistance and translate it back to current.

  • Can you record sound using a USB 6211 and convert the data to a .wav (or other sound) file?

    Hello,
    I am trying to build a system that will use a USB 6211 to record sounds from multiple electret microphones and then save the data as a .wav file or other sound file.  I have already built my mics and hooked the mics up to the USB 6211; the DAQ device seems to do an adequate job recording the signal - I've recorded from 3 mics at a time at 11,025 Hz, although I don't know how good the signals are since I can't save them for playback after the fact, and they aren't going through my sound card. Ultimately, I would like to save the data as a multichannel audio file which I could then open in a program such as Audacity for further editing and analysis. Since Audacity can import a variety of sound files, my file format doesn't need to be .wav if another format would work better.
    Any advice would be appreciated.
    Thanks, Eric

    If you are sampling all three simultaneously, your highest frequency recordable will be (11,025/2)/3, so about 1800Hz and that will pretty coarse (traditionally digital sound recording is at 44Ks/s at the low end). As to converting to a .wav, there are functions on the "Graphics and Sound" palette for saving waveforms to a .wav file.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Trigger rearm time on USB 6211

    I am using a USB 6211 to generate raster waveform and digital trigger to drive the galvanormeter mirror. I just want to send one cycle of waveform for every trigger pulse. The problem is that it seems like the USB 6211 trigger rearm speed is limited to about 20 Hz, which is quite low. Is this correct?
    Any solution?
    Attachments:
    Triggering.png ‏76 KB

    I might use the wrong word to explain it. What I mean by observing the behavior of the device when it was programmed as shown in the code is that no matter how fast my triggering clock was, there seem to be a certain period of time when the device did not accept any trigger pluse. That period of time was about 50 ms or about 20 Hz clock rate. The code worked as I expected it to be at trigger frequency less than 20 Hz. As soon as the clock speed pass 20 Hz, the extra pulse was not accepted.
    One thing that I did to verify the 50 ms time limit was by sending 200 Hz of clockspeed and found that the one that close to 50 ms did trig the device.
    Is there any example how to setup this device to surpass that trigger speed?
    If not possible with the USB 6211, which DAQ device you would reccomend to achieve more than 100 Hz trigger speed, or even better for up to 200 Hz?
    Thanks for your response : )

  • How to measure frequency by USB 6211?

    Dear all,
    I'm using USB 6211 to measure the input analog voltage signal, then use a counter to yield the frequency. Please find the VI figure in the attachement.
    The problem is the insteal of measure the right frequency, which is from 300Hz to 1000Hz. There is a lot of high frequency noise from thousand to milliion Hz. I think it pick up the high frequency harmonics. How to avoid it or use a more effective way to achieve the measurements.
    Regards,
    Alan
    Attachments:
    flow rate frequency measurement.JPG ‏43 KB

    You have to suppress high frequencies on the analog side of your signal. You must set it to a frequency which is not higher than half of your aquisition rate. If you sample with 10 kHz your filter must have a cutoff frequency of max. 5 kHz. Otherwise you will see the signal mirrored at the half of the sample rate. A 6kHz signal will lead to a 4 kHz signal after the sampling.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Displaying a graph from a signal generator

    I am extremely new to labview and I am still trying to navigate my way around the basics.
    How do I display a graph using a signal generator?  I am using NI USB-6251 and I have connected the signal generator to AI.0.  I used the input daq which turned into a task.  Used the read component and wired it to a graph indicator, but I am not showiing the waveform. What am I doing wrong?

    Hello eckhartp, 
    My recommendation if you are just getting started would be to begin with one of the analog input examples included with LabVIEW.  From within LabVIEW, you can select "Find Examples..." from the Help menu, which will bring up the Example Finder.  I would recommend taking a look at "Voltage - Continuous Input.vi", which can be found by searching in the finder.  You should be able to select your analog input channel from the pull down, and see your data on the graph.  Use one of these examples as a template for your project.
    Alternatively, here is a good reference page for DAQmx general information:  http://www.ni.com/white-paper/5434/en
    Feel free to post any follow-up questions you may have!
    Kevin W.
    Applications Engineer
    National Instruments

  • How interface N5181A MXG signal generator with labview by using LAN Interface????????????

    hai every one ...i have a doubt how  to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and
    how to find IP Address of N5181A MXG signal Generator????????
    when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me?????? 

    You can set the IP Address on the instrument.  You may need to be in the same subnet of your controlling computer, so you may need to set your computer's IP Address to something static.
    Use VISA.  It makes life easier if you decide to use another bus (like GPIB, USB, serial, etc).  In MAX, create a network session with the static IP address you set the instrument to and use that as the VISA Resource.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Usb 6211 and LabView - good for IV characteristic aquisition?

    Hi there,
    I pre-emptively declare my lowest level in using LabView and all the annex tools, so my question won't result too silly.
    I need to automatically acquire the IV characteristics for 4 solar devices, so I am thinking about connecting them to the USB 6211 in order to switch from one device to another one.
    My question is: can I use a LabView Program in order to simulate the Voltage signal to apply (range c.ca -1 to +1 V), and then collect the relative current?
    If so, how??
    Many thanks in advance for any sort of help.
    Laura

    http://zone.ni.com/devzone/cda/epd/p/id/5918
    http://zone.ni.com/devzone/cda/tut/p/id/7229
    LabVIEW has a toolkit available for this.  It uses an SMU card but you could simulate that with your 6211 and a current sensing resistor.
    Using LabVIEW: 7.1.1, 8.5.1 & 2013

  • USB 6211

    Hi,
    Can I use USB -6211 to be like a relay to turn ON and OFF the signal?  The signal ON/OFF should happen instantly like a relay, no ramping.
    /Kawsy

    Hi mnk,
    The USB-6211 will not quite work like a relay as there is no way of physical disconnecting its pins. However, if you simply wish to output signals ON (5V) and OFF (0V), you can do so by simply writing the appropriate value on the pins. Since this is an analog output, there will be some ramping at a very fine level. The specifications claim that we have a 5V/us slew rate, but this can vary depending on what load you connect this to. Examples on how to write to your analog output channels can be found in our LabView shipping examples.
    Hardware Input and Output >> DAQmx >> Analog Generation >> Voltage >> Gen Voltage Update.vi.
    I hope this helps,
    S_Hong
    S_Hong
    National Instruments
    Applications Engineer

  • USB-6211 special DO pulstrain

    Hello,
    I have a USB-6211 and I want to generate a pulstrain for a power supply.
    The pulstrain is determined in ms on and off time (e.g. 49ms off, 1ms on, 5V).
    The length of the pulstrain is infinite, but must be haltet when an error happens.
    (I do not understand why I need to configure the length of the train in before hand, I just want on or off.) 
    What is the best method to do this? 
    Kudos will be given!
    Thank you 
    The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

    Can anyone give me a hint please.
    The Enrichment Center is required to remind you that you will be baked, and then there will be cake.

Maybe you are looking for