Use USB-6501 output like a chopper circuit

I’m terribly new to this sort of thing so forgive me if my questions seem trivial. I’m looking for VB code that allows me to pulse the outputs on the USB-6501 24pin I/O. Or, is it possible to view/edit the code that that MAX uses in its test panel ?
If any of these are possible, could someone point me to a link please? I’m trying to edit the output so that I can make the ports behave like a chopper circuit (ie. Pulse the output high for 25ms, low for 75ms. My expected result would be 25% of ttl voltage or read from a meter connected to the output – 1.25V rms). Does anyone see a problem with this?

Hi Gunnar-6501,
I meant that, while you will be able to generate a pulse, it will not be an accurate 25ms each time.  Because you will have to use software timing, the operating system will experience periods of slow operation that will cause the pulse to not reliably repeat every 75ms.  It will also not be exactly 25ms each time either.  Software timing will allow you +/- 5-10ms with each pulse in regard to both the duration and the duty cycle.  
In regard to the TTL voltage, you are only able to output a TTL signal.  The NI-6501 does not have the capability to output low-TTL steps.  You may be able to do this with an analog DC signal, however.  I would recommend looking into some of our hardware that includes some type of sampling clock such as many of our PCI cards or compact DAQ solutions.  These will give you a reliable sample clock to base your pulses and duty cycle on and many also have low-TTL steps for digital I/O.
| Zach J. | Applications Engineer | National Instruments |

Similar Messages

  • Pulseaudio will not use USB for output? [SOLVED]

    Odd problem.  In pavucontrol I under Configuration I see my usb headset configured for stereo output and mono input, yet under Output and Input I do not see it listed.  Has anyone had experience with this issue?
    TIA!
    Last edited by askreet (2011-05-15 00:43:42)

    Force restarting pulseaudio fixed this.  Couldn't tell you why.

  • Acquire resistance value using usb 6501

    I want measure a variable resistance value continuously for a LabVIEW program, what kind of daq card i want to use, and also i want control a stepper motor using same daq card

    How quickly do you need to control that stepper motor?  How fast do you want to measure your resistance?  What is the range of the resistance you are going to measure?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Reading states of usb-6501 kit from command prompt?

    Hi all!
    I have been planning to use USB-6501 kit as one part of my test bench.
    There will be need of checking state of some relays on 
    tested  unit.
    I would like to connect  6501  to those relays and read those
    states using bare command prompt commands like readDigPort.exe
    1. What software in need to install minimum to use writeDigPort.exe or readDigPort.exe commands at command prompt??
    Those commands should be included in python script.
    2. Is there such Linux commands also included somewhere in installation media/net ?
    I am Using Fedora 3 ( Comedi not supporting 6501 ?)
    3. I need only easy way to set and read values from 6501 ports which are my possibilities to do it?
    Thank you!
    Narsu Man

    Hello,
    Here are the answers:
    1) You need NI-DAQmx Base driver for Linux. You may find the driver from web:
    http://digital.ni.com/softlib.nsf/websearch/930D8687AD03A02C86256F8C00823BDB
    Supported platforms and installation instructions can be found from here:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/42b73a7b82f0fec786256fb1007227ec
    Please read the readme-file before installation.
    2 & 3) LabVIEW and C-examples are shipped with the driver. C examples are installed by default to /usr/local/natinst/nidaqmxbase/examples. Use the example as a basic body for your application. NI-DAQmx Base Function reference help can be found from here:
    http://digital.ni.com/manuals.nsf/websearch/D7184CB9E6366E2186256FBF0076BBC3
    This should help you to continue.
    Vesa K
    National Instruments

  • How to I connect Sourcing digital output from My Interface Board to NI USB 6501 channel configured as Digital input

    When I connect an input to DI channel of USB 6501 card  from my board which has sourcing Output t, iIn the Off state it is not pulled down properly. The volatge on the port in is 2.1V -2.5V based on the pull down resistor on my board. I suspect that  it acts as a voltage divider.
    The state on the card is still show as "HIGH "state, even my sourcing output driver has a pull down  resister.  when I use this interface board for PCI mseries devices it works fine. Do the pull down resister on my sourcing output is not worth. Is this because of pull up resister 4.7k inside USB card 6501.
    USB 6501 specifications shows the Digital input accepts both source and sink modes. By default the card is in sourcing digital input mode. How do we can convert this in Sinkind digital input mode.
    Could anyone Please give your suggestions to overcome this issue .
    Thanks you.

    You really should not have both a pull up and pull down on the same line.  Really weird things can happen.  If you insist on having a pull down on your board, then I highly recommend putting a digital buffer chip between the DAQ and your board.
    Some boards with DIO have a pull up, while others have pull down.  You just have to watch the specs.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can i use the NI USB-6501 digital I/O with matlab?

    I want to use the  NI USB-6501 digital I/O with data acquisition toolbox in matlab?

    The USB-6501 is supported by Data Acquisition Toolbox in MATLAB releases R14SP3+ and later.
    The full list of National Instruments devices supported by Data Acquisition Toolbox is here:
    http://www.mathworks.com/products/daq/supportedio14005.html
    Begin to learn how to use digital input and output here:
    http://www.mathworks.com/access/helpdesk/help/toolbox/daq/f11-17944.html
    Inside MATLAB you can view demos in the documentation.
    To see two digital demos you can type these commands at the MATLAB command line:
    >> showdemo('demodio_intro')
    >> showdemo('demodio_line')
    Best regards,
    Sherryl
    Sherryl Radbil
    Data Acquisition Engineer
    The MathWorks

  • Using usb mic with logic output stops

    using usb mic with logic output stops

    Aggregate devices are setup in the Audio/Midi setup of OSX Utilities, (Not in Logic). It gives you a way of having for than one audio i/o device. Once you have set up your aggregated devices in Audio/Midi, when you start Logic you will need to go into Audio preferences and choose the Aggregate device.

  • Digital audio input via mini jack/toslink from ADA, monitored via USB audio output... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    Digital audio input via mini jack/toslink from ADA converter, monitored via USB audio output to amplifier... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    You can output audio thru HDMI, with appropriate adapter.
    You can use additional cheap external usb audio for monitoring.

  • Use DAQmxSetDigitalPowerUpStates In VB6 for USB-6501

     How do I use DAQmxSetDigitalPowerUpStates In VB6 for USB-6501
    I am trying to set thre default power on state for all digital lines
    DAQmxErrChk DAQmxSetDigitalPowerUpStates("Dev3", "Dev3/port0/line0:7", DAQmx_Val_Low, 8)
    The above line of code Crashes VB6.0 SP5 VB shuts down as soon as I try to exicute this code

    Hi CUImsch,
    The DAQmxSetDigitalPowerUpStates function takes four arguments: deviceName,
    channelNames, state, and "...".  The "..." indicates
    that you can include additional channelNames and state arguments. The final
    channelNames and state pair must be followed by a NULL argument. For example,
    to set port0 to a default low state use:
        DAQmxSetDigitalPowerUpStates("Dev3",
    "Dev3/port0/line0:7", DAQmx_Val_Low, NULL)
    If you want to set multiple ports with the same function call, include their
    channelNames and state arguments after the first port's arguments and follow it
    with NULL to indicate that you're done listing channels.
        DAQmxSetDigitalPowerUpStates("Dev3",
    "Dev3/port0/line0:7", DAQmx_Val_Low, "Dev3/port1/line0:7",
    DAQmx_Val_Low, NULL)
    The NI-DAQmx C Reference Help contains more information on this function.
    Specifically under the Help Contents: NI-DAQmx C Functions » System
    Configuration » DAQmxSetDigitalPowerUpStates.
    I hope this helps! Let me know if there is anything else I can help with or
    clarify. Have a great day!
    Message Edited by ryan_d on 09-24-2007 06:10 PM
    Ryan D.
    District Sales Manager for Boston & Northern New England
    National Instruments
    Attachments:
    SetDigitalPowerUpStates.JPG ‏155 KB

  • Using USB-8451, and AD7747 from Analog Devices to measure capacitance and convert the capacitance to digital output

    Hello,
    I am new to LabView and data aqusition. I have LabView 8.5.1 installed on my laptop, and I studied the Getting Started document of LabView, except the data aqusition chapter.
    I have microfabricated a differential capacitive sensor, and now I want to test the capabilities of my sensor.
    After asking NI engineers, I have been suggested to use USB-8451 with AD7747 (24-Bit Capacitance-to-Digital Converter) from Analog Devices because AD7747 has I2C serial interface.
    I have ordered USB-8451, AD7747, and Evaluation Board for AD7747. And I am waiting for them.
    Are there any suggestions about how to connect my differential capacitive sensor to AD7747, and eventually to USB-8451?
    You may want to know some further information to answer my question:
    *The sensor is similar to the sensor on pages 501, 514, and 515 of "Microsystem Design" book from author Stephen D. Senturia.
    *The datasheet for AD7747 can be reached from this link: http://www.analog.com/static/imported-files/data_sheets/AD7747.pdf
    *My purpose is to make a very precise and accurate "displacement measurement micodevice" by using "the change in the capacitance" during the motion of the mobile fingers of the sensor.
    As an initial challenge for myself, I will feel satisfied if I can measure the capacitance change in my sensor when I apply an external mechanical disturbance to my sensor. For example, there must be a change in capacitance if I just swing my hand from top of the sensor region.
    I am looking forward for your reply,
    Thanks in advance,
    Sincerely,
    sriverfxtr

    Hi Aaron,
    Here you go, this is made with a USB-8452.
    When you run the code tick the power en dac enable box on.
    Maybe you can help me with my problem, I want to use a fiber to sense light from a led.
    Do you use any fiber hardware with the TCS3414?
    gr,
    Attachments:
    TCS3414.vi ‏63 KB

  • Using USB-6008 software timimg Generate waveform

    I am using USB-6008 device. Base on it's User Guide, this device on support software-timed and maximum update rate is 150 Hz.
    By place a time delay VI for 1ms, I have a 1.660Hz sine signal. Is this wrong for place a time delay VI for software timing?
    I would like to generate a 60 Hz signal by using software-timed VI on USB-6008 device. How should I do?
    Thanks a lot.

    DephinTW,
    The update speed of the USB-6008 is largely dependent on the speed of
    you computer as well as anything else on your USB bus. If you are using
    an older computer or have other USB devices on the bus, you may not
    achieve this rate. In order to output a 60Hz signal, the minimum output
    sampling rate is 120Hz. This corresponds to an 8.3 msec. delay between
    samples. Instead of using the "Wait" VI, you should try using the "Wait
    Until Next ms Multiple" VI. Place this in parallel with your
    generation. This will synchronize the output with multiples of the PC
    clock, rather than waiting for a fixed amount of time, irrespective of
    code and USB overhead.
    Hope this helps,
    Ryan V.
    National Instruments
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Can I measure period with USB 6501?

    Hi,
    I was told that I can use the one counter in the NI USB 6501 to measure period.  So, I wrote this little VI, modeled after the VI I have that measures encoder period using the counters built into the NI cDAQ 9174 with the NI 9401 digital I/O module.  I have my encoder wires GND and 5VDC on terminals 1 and 2, respectively.  Also, I have encoder channel A and Channel B wires connected to terminals 9 (P2.7) and 24 (P0.7) respectively.  With the MAX, I can count edges with this wiring.  The purpose of this VI is to display an average value of 25 period measurements of the encoder.  The encoder (120 cpt) is turning at about 2-5 rev/second, so, not that fast, maybe a total of 500 period per second; should be easy for this counter.  I'm just spinning it with my finger, so, not that fast.
    Please advise how to use the USB 6501.  I can't find any wiring instructions, other than the pinout, but, the pinout doesn't tell you which channel is the counter gate on the USB 6501, so, I found a response on MAX at channel 24.
    When I run this, the array is correctly initialized to 0.5, but, then I get this error, 200431. I found some things on the forum that suggest I cannot measure period, that I can only count edges.  Should I throw this 6501 away?
    Thanks,
    Dave
    Attachments:
    USB 6501 error.docx ‏24 KB
    USB 6501 period measurement.vi ‏26 KB

    The 9178 also only has 4 counters.
    Do the 5 period measurements actually have to take place at the same time?  Sometimes it might make sense to cycle through the channels to reduce the number of counters used (you wouldn't have to rewire connections or anything as the input terminals are software-defined).  Switching from channel to channel in software should take on the order of ms depending on which hardware you end up using.
    The 9171+(9401/9402) is a relatively cheap way to add additional counters to a system as the 9171 chassis has 4 counters just like the 9174 and 9178.
    Best Regards,
    John Passiak

  • Multiple USB Audio Outputs?

    Is it possible to set up the mac mini to have multiple USB audio out puts? I'm wanting to use a mini displayport + usb audio > hdmi cable to a plasma for computer use. But is I want to listen to just plain music use USB audio to a DAC into a 2 channel system. So for this system I would need to use 2 USB outputs for music.
    Thanks

    Sure,
    You can output sound through more than one little external USB sound card, but probably not to more than one at a time. You'll have to select the Output in the Sound Preferences each time to switch them, too.
    But don't overlook the Mini's internal sound output as one of your 2-channel or 5.1 audio outputs. The 2009 Mini has better audio output than the PPC Mini, that I also had and used an external USB sound card with (M-Audio Transit). Of course, now there are cheap little external USB sound cards that look like a little thumb drive for an added 2-channel audio output. So, I'd use the Mini's internal output and an Optical cable for 5.1 sound out, if I were going to use one of those cheap little sound cards. But you can go the other way, too, if you want, with a better USB dongle (like the M-Audio Transit) for your 5.1 sound.
    Please let us all hear how it goes and what path works for your application.
    Peace to you,
    C. Livingstone

  • KMS using wrong video output

    Hi all,
    I have a Zenbook Prime and used it in dual screen mode via its HDMI output yesterday with xrandr. I unplugged the cable, conditnued using it, stopped it.
    Now when I start it, as soon as initramfs finished loading, Linux uses the HDMI output to display my tty (even if no cable is plugged), so it prompts for my username on the HDMI output and the screen of my laptop becomes black. All the boot sequence up to this part is made on the correct screen but then this screen is not used anymore by linux. Even if with xrandr I try to use it I stays black. I can still control backlighting but nothing is displayed.
    After some research, it appears that this decision is made by KMS (https://wiki.archlinux.org/index.php/Ke … de_Setting). When I disable KMS with nomodeset my tty is displayed on the laptop screen. The problem is that my graphic driver (intel) requires KMS to be enabled and thus prevents me from starting the X server without KMS.
    So what I tried then is to force KMS to use my integrated screen instead of the HDMI output, with the video= parameters on the kernel command line. With these parameters I succeeded to disable the HDMI output, but could not enable mine with parameters like
    video=HDMI-A-1:d video=eDP-1:1920x1080 D video=DP-1:1920x1080 D. So all my screens are black.
    Also, if I plug a archiso usb key it starts its tty on the correct screen.
    Any idea on how to debug better/fix this problem? I tried dmesg but see no interesting information about KMS...
    Olivier
    Last edited by jolivier (2013-07-31 12:55:08)

    Ok I found this topic https://bbs.archlinux.org/viewtopic.php?id=167314, apparently my problem is related to theirs and is due to the 3.10 linux kernel. I thought this forum content was indexed by google but apparently not ^^, next time I'll also search here.

  • Cant hear monitor when using usb mic

    hey all, question. when my usb mic is plugged in and armed for recording, i cant hear the previous track to keep my timing. the built in mic isnt that great so i like to use my external. its like when its plugged in it overrides all monitor functions. i just wanna be able to record a track while the previous one plays back. thanks guys for the help with an obvious newby.

    Make sure you have the correct output selected in GB Prefs>Audio/MIDI. I assume you're using your computer speakers? If so select Built-In Output. Also make sure the recorded Track isn't muted and that the volume is up.

Maybe you are looking for

  • Acrobat 9 PRO - Forms Tracker Question

    1. When distributing a form via acrobat.com to multiple targets, can I keep email addresses confidential from individual members on the distribution list? 2. When distributing a form to multiple email addresses simultaneously, is it possible to creat

  • Camcorder advice needed

    I am planning to purchase a new camcorder soon. Unlike my previous recorders, I want this one to be compatible with my iMac for editing purposes (deleting video scenes and adding music) followed by the burning of DVDs. I have a lengthy list of camcor

  • IMac fan constantly running, I've tried everything!!

    Hi, I have a Mac (21.5-inch, Mid 2010) Processor: 3.06 GHz Intel Core i3, Memory: 4 GB 1333 MHz DDR3, Graphics: ATI Radeon HD 4670 256 MB, Running Yosemite 10.10.1 The fan is constantly running quite loud. I have never had this problem until recently

  • Playing a ipod in the car

    I do not have a CD player in my car but have a slot for it to go and a multipin socket at the back where the CD player would dock. Would it be possible to buy a adapter to play my ipod through it. I suspect not and unique to the Car Manufacurer. A VW

  • Iphone 3G in a reboot cycle...

    Hello, Well one day i thought i would update my iphone, because some of the apps i wanted required this update. So i go ahead and update also restoring it to factory setting and deleting my apps. Later on that day i'm over my girlfriends and it's all