Digital Output Driver

Hi,
I am using the Ni 6221 card and I am stuck with this problem.
I haven't figured out why it doesnt work.
So I am running 7 valves (solenoids) in my system. I wanted to added 2 more.
But I am facing a problem of controling the two new valves independantely.
Lets say that I have 3 out of 7 valves on, without turning those valves OFF, i want to turn on the two new valves.
When I run my code independately from the main vi, it is working as desired.
But when i put it back to the main program. the solenoid won't turn on when it command it.
I think its because my main program is using the NI 6221 and its port as well.
Best regards,
Krispiekream
Solved!
Go to Solution.
Attachments:
V7 & V5 On_Off Folder.zip ‏60 KB

I'm glad you've got it working now.  But I'd counter that it isn't global vs. locals issue at all, but the problem is that you are using globals and/or locals.
You should be passing the data into your subVI's by wire.  And if you need to maintain the values of that wire between iterations of your while loop, you should be using a shift register.
But you've been on the forums for awhile, so I'm sure you've seen threads discussing this before, so I don't need to tell you all that. 

Similar Messages

  • Digital stimulus-f​requency response: Need to drive with digital output trigger. Using counters for response.

    I need to drive stimulus-response with a software driven digital trigger and NI-TIO counter based response. No analog I/O is really relevant, although I have a PCI-6035E multi-function DAQ as part of my gear. I intend to use the analog, but its timing is non-critical and can be software timed.
    The real trick is that I want to set the basic timing of the system (in the range of 1 - 50Hz) from the timer0 on the 6035E. This signal needs to be replicated to drive a trigger pulse and to route through RTSI (or a PFI) to trigger frequency counts using the four possible groups of counter/timers on the 6602.
    What I need is:
    while( enabled )
    Repeat at (
    software controllable rate = 1-50Hz)
    Trigger Sets a PFI line for 10-20us
    same trigger sets an RTSI line
    - Software Set Delay (usually zero)- stable is more important than the delay time!
    Count for software set time on 4 counters
    analog samples
    Post-process
    I want to do this in LabView. I have checked out the Advanced sychronization demos online, but the examples all use analog triggering and buffered digital I/O. This doesn't really address what I need to do.
    I have made some failed attempts which relied on software to sync up the trigger and the response frequency acquisition. This is definately flawed. I need to start the counting right after setting the digital output trigger, and stop the count after a fixed interval for frequency calculation.
    I am having trouble working through the signal routing to get the timing to trigger off the digital stimulus output pulse.
    Any help would be appreciated
    Thanks,
    Joe

    Joe
    What are you using the trigger from the 6035E for? I do not know what you mean by, "to trigger frequency countes."
    If you are having problems just routing the signal to the 6602, here is a vi that shows you how to route a signal through the RTSI cable to use as the source of a counter.
    Brian
    Attachments:
    Route_RTSI_to_Source.vi ‏67 KB

  • Solution to my Audigy 4 Digital Output probs... please make a stic

    I was recently playing Q3TA with my son when my overheat protection kicked in. I exited to windows to see the temp and throttle back my CPU a tad, and when I returned I had no sound from my digital output. Analog was working fine, however.
    Setup:
    Giga-byte GA-MA78GM-S2H w/780g chipset
    Athlon 64 X2 5000+ BE
    Integrated Realtek HD audio (disabled)
    Integrated ATI HD 3200
    2xGB 800MHZ DDR2
    Creative Audigy 4
    Boston acoustics Digital BA735 2. speakers
    I went over every setting in all of my consoles, HQ's and drivers. I played with driver versions, DirectX versions, diagnostic programs and procedures in the knowledge base. In defeat, I even wiped out my XP install and started fresh with the Aud-4 removed, using analog on the integrated card thru headphones. Then I disabled the integrated card and reinstalled the Audigy 4 only to find that there was still no sound from the digital speakers.
    Solution?
    I[color="#ff0000"] unplugged the power to my speakers, and reconnected everything. As soon as the power was back up, the sound started playing (I had a .MP3 on for testing).
    This stumped me for two reasons that occur to me know:
    . These speakers (and possibly many others) don't fully power down when you turn the volume knob off and the light on the satellites goes out. The decoder and subwoofer unit keep their light on.
    2. Apparently, some situations introduce a faulty signal to the digital output that scrambles the speaker units and they refuse to operate any longer.
    Now I know, unplug the power to my speakers. My system works on all three sampling frequencies in "audio console" 44., 48, and 96KHz. None of the troubleshooting procedures touched my problem, because they didn't even mention the speaker setup, let alone doing a hard reset.
    Please please please!
    Make this a sticky for future me!!!

    The Digital output jack on the card isn't of optical signal type.....you will need to get those I/O module mention bt johnston2 for optical connection.

  • No Digital Output available in Playback devices (USB audio device)

    If one has USB audio device with coax/toslink out, with proper drivers (like ie TurtleBeach Micro Advantage) available & installed then Digital Output is available to select in Playback devices. (and one can play AC3/DTS to external amplifier with ie
    VLC or MPC-HT with AC3Filter DS filter)
    But some USB devices (ie Phonic Digitrack -
    http://www.phonic.com/en/digitrack.html ) do NOT come with drivers (as Windows has default build in). Digitrack uses TI
    Burr-Brown USB Audio Codec 2906 -
    http://www.ti.com/product/pcm2906
    Sadly these Windows drivers do NOT have a clue about what the device actually has as inputs/outputs
    So even it had coax digital out & the sound IS send via it, the actual data send is in right way, not recognized/played correctly by Digital Amplifier (AC3/DTS)
    Does anybody know of a hack to make Digital Out available?
    Seb

    Hi,
    Generally speaking, An Audio Device do need more driver besides USB driver to make itself work properly. In terms of your situation, USB driver is not enough to make your Audio Device works properly.  I think S.Sengupta
    is right. Actually it would be better to contact Digitrack support to confirm its product compatibility with Windows 7.
    Roger Lu
    TechNet Community Support

  • 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 do I calculate 'uptime' of a digital output

    Hi everybody,
    I'm new to these forums and I am currently evaluating Labview for a series of lab tests where we measure energy balance in a chemical reaction. I've already 
    I have a USB 6008 wired to a relay drive (thanks to these forums) and a heating element and I want to measure the total time heating element is 'on' during 24 hours to calculate the energy the system is getting. The heating element switches on and off based on the signal of a thermocouple.  Is there an easy way to measure the seconds that the output port wire to the heating element is active? Device-independent would be preferable (like measuring the signal uptime of the input of the digital output of the USB6008)
    I tried a lot of options today, like while loops, sequences, case structures following several postings here but all of them failed miserably - while the problem sounds so easy. I could easily do it in the hardware by wiring the output of the relay drive to a bauser timer, but that would be giving up too soon
    Any help would be appreciated.
    Best regards,
    Dimitri

    Hi Dimitri,
    Welcome to the NI Forums! It's good to hear that you've already received some help here.
    Q: Is there an easy way to measure the seconds that the output port wire to the heating element is active? 
    A: Yes! The method we can use to perform this action depends on the sort of architecture that you're using at the moment, however we can take advantage of the section of your code which defines whether the line should be on or off. When it's on, using a While Loop we can  use a Timestamp to keep track of the current System clock; this Timestamp will update on every loop iteration. If we use a reference Timestamp which is created outside of the While Loop when we first begin to drive the line high, we can simply work out the difference between the current Timestamp and the reference Timestamp to get the total time.
    This kind of code will also be device independant because it relies only on the computer it is used on.
    I hope this helps!
    Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

  • Realtek onboard sound is stuck in digital output

    I just can't get this thing out of digital output mode. Now I have no sound because all the analog ports won't work. Keeps saying nothing is plugged in. I can't reset the analog speaker because it's grayed out in Vista. This problem looks to be very widespread with computers using Realtek and Vista, just do a google search and you'll see for yourself.
     I have a real feeling it's software problem between Realtek and Vista. But I really think Realtek is just awful to began with and shouldn't be put in any computer period. If I can't get this thing working by tomorrow I'm going to get a real sound card.
    Message Edited by hn333 on 04-09-2009 09:02 PM
    This question was solved.
    View Solution.

    Sound issues seem to be higher these days in general -  all the sound vendors - XP (SP2 and 3) and Vista.
    You may to try http://www.realtek.com.tw/downloads/
    Installing the latest driver from realtek.tw seems to be helping a lot of folks. You didn't list the model of your PC, but you can look up your model's product specification to find out which codec package you need ... AC97, HD Audio, ALC888.
    If you don't mind, please come back and let us know what fixes it.
    ... an HP employee expressing his own opinion.
    Please post rather than send me a Message. It's good for the community and I might not be able to get back quickly. - Thank you.

  • No digital output

    All of a sudden the Digital Output on my iMac has stopped working. There is no red light coming out of the toslink cable. In System Preferences/Sound there is no Digital Out in sound output devices anymore. I have checked that the cable is ok.
    Previously the system switched over from internal speaksers to digital output automatically when inserting the toslink cable but now nothing is happening except that the sound is vanishing.
    Is this a hardware error? The iMac is just 3 months old so I sincerely hope not.
    Thanks for all tips&tricks I can get.
    Regards

    Hi,
    Generally speaking, An Audio Device do need more driver besides USB driver to make itself work properly. In terms of your situation, USB driver is not enough to make your Audio Device works properly.  I think S.Sengupta
    is right. Actually it would be better to contact Digitrack support to confirm its product compatibility with Windows 7.
    Roger Lu
    TechNet Community Support

  • Write digital output on wireless node

    hello
    i have wsn kit with 9791 gateway, i need to program node 3202 to write a digital output, i want to know how can i do this in labview ?
    do i have to write program ? what library in labview should i chose ? is it using FPGA module in labview ? i really spent alot of time searching for this answer and i am new in labview program
    thank you 

    Hi,
    In order to use the WSN-3202 with Gateway-9791, you have to install LabVIEW and NI-WSN driver.
    You can find the software version support for your WSN at http://zone.ni.com/devzone/cda/tut/p/id/12734#toc0.
    After you have install the software, you can configure your WSN using Measurement and Automation Explorer (MAX) and add WSN node to the gateway, it might not looks exactly the same in the picture below because I am not using 9791 as the gateway.
    Next, you can open an empty project or your existing object and add your gateway into your project.
    After you add the gateway and your node into the project, you can access the DIO at WSN-3202 through the share variable node. You can just drag the DIO from the project explorer into your vi.
    Best Regards,
    KH
    Application Engineer

  • Trouble with Digital output on Live Value under Windows

    I have a soundblaster li've value card in my system using the digital output in win98se and all works fine. I just upgraded to WinXP. The windows drivers worked fine once i switched them to digital output. However, i lost the Creative mixer and wanted it back. I then downloaded your Unipack driver for the Li've card for winXP and lost the digital output even when i toggled to digital output control. I then downloaded the li've value from the Gateway site since they OEM'd the card in my system and the digital is working again. However, they do not provide the Creative mixer. Is there anyway I can get the Creative Mixer to work in XP wiith the li've value card? Thanks
    Soundblaster FAQ states:
    Some name brand systems shipped with a special Li've! Value card that was made to work with digital speakers. If you system shipped with a Li've! Value and you have digital speakers you will need to use drivers provided by your system manufacturer. If you use the drivers on the Creative website your card will no longer work with your digital speakers.
    Boston Acoustic Digital Speakers or Prebuilt System With a Digital Li've! Card
    If you have a set of Boston Acoustic digital speakers that came with your system and they are not working with your sound card, make sure you have it connected to the digital out on the card. Also make sure that the digital out is enabled.

    I still always get the value 0.0 returned for minA. I
    know that the data is being correctly stored because I
    have a seperate report frame that displays all values
    for all entries.
    Any ideas where the flaw is?
    Thanks!
    Hey, there. It's unlikely that your users are entering negative numbers which are the only numbers that will be less than zero. You need to initialize your minA to be some quite large number.

  • AT-MIO-16D Digital Output wiring

    I need to drive a relay coil from one of the outputs of an AT-MIO-16D module.
    From the AT-MIO-16D User Manual (p. 2-35) it remains unclear for me
    how to do it. It seems that the Digital outputs are of "sinking" type, i.e.
    they
    connect to either ground or to a high resistance, however the electrical
    specifications
    considers both output "source" and "sink" currents.
    Assuming "sink" type, I think the wiring should be as follows:
    +5Vdc to relay coil (flyback diode in parallel)
    relay coil to DAQ module output point
    -5Vdc common to DAQ Dig Gnd point
    My questions are:
    1. Is my suggested wiring right?
    2. Do I need some resistor to limit the current through the DAQ board or
    is the coil resistance enough?
    3. How do I protect t
    he module against the reverse voltage generated in the
    coil once
    disconnected? With the flyback diode suggested I am protecting the power
    supply
    output but not the DAQ module.
    Please attach a suggested wiring diagram to your answer.
    Thanks in advance for your support.

    We use a MOSFET (2N7000) switch in our systems to isolate the DIO ports from the relay drive. The attached schematic shows the circuit.
    One problem we have with this is when the board powers up the DIO ports are configured as inputs, and the circuit sees enough voltage to turn on. The 47k resistors were recently reduced to this from 100k, which seemed to help.
    Attachments:
    DIO_Relay_Drive.bmp ‏1440 KB

  • What's the usage of Digital Output.vi (kei224v6.llb)

     I would be gratefull if you could inform me for the usage of Digital Output.vi in kei224v6.llb.
    I'm using Keithley 224 Programmable Curent Source.
    Thanks

    Hi thanserwood,
    the Model 2243 is an optional IEEE-488 interface for the Model 224 Programmable
    Current Source. This interface adds extra versatility to the Model 224 by allowing the transmission of data and commands
    over IEEE-488 bus. The interface provides all the logic necessary to interface the Model 224 to the bus using standard
    IEEE-488-1978 protocol. Additionally, the Model 2243 incorporates a separate digital I/O port that may be used to
    interface the Model 224 to other digital instrumentation.
    The digital I/O port consists of four input and four output lines as
    well as IEEE-488 common and +5VDC. The outputs will drive one TTL load.
    The instrument can be programmed to generate an SRQ upon any change in
    the four bit input data.
    In the manual you will find further information.
    Regards
    Indiana

  • SPDIF Dolby Digital output of K7N420

    Hello,
    I have two computers, and the SPDIF output of one computer (the K7N420) is running into the SPDIF input of the Live! Drive of the other computer.  When I select "Stereo" or "Dolby-Surround" for the digital output in the nforce control panel of the K7N420, the signal gets through just fine.  However, if I select "Dolby-Digital" nothing comes through.  Does anybody know why?
    The FAQ for the Live! Drive says "The Optical In and SPDIF In can accept PCM (20 bit, 48kHz, stereo)."
    However, I can't find anywhere what the nforce's SPDIF output is when in DD mode.  Could this be why?
    Has anybody else run across this problem?
    Thanks,
    -Arpad

    Dolby Surround was the name for the older technology, also called Dolby Prologic.
    It is backward compatible, which means that if you play a DS stream to a stereo decoder, it will get only the 2 "classic" channels (left & right). If you play it to a Dolby Prologic decoder, additional infomation (hidden in the usual 2 channels) are displayed.
    for more information, let me refer you to the dolby knowledge base.
    Hope it clarifies the point.
    Frenchy
    PS: there are lots of interesting info on that website, take a lok if you are interested in DD, DS, 5.1...

  • Need 1200 digital outputs that can be updated at 1 MHz

    I need to control about 1200 digital outputs (CMOS or TTL)  at high speed (1 MHz).  Any platform
    that gets the job done is OK, but I usually program in a WinXP environment.   I also have a problem
    of distributing these signals to many units over a roughly 50 by 50 foot area, so I also need hardware
    to either drive the outputs over an extended length of wire or to wirelessly distribute the signals to
    multiple substations which each operate between 10 and 50 units.
    A small number of inputs (maybe just two) would be very useful to control the timing of the
    state transitions.

    Thanks for  your response.
    Our application is controlling LED's for a computer graphics application.
    http://gl.ict.usc.edu/Films/RelightingHumanLocomotion/index.html has
    some pictures of the apparatus, as well as a short video showing how
    it works and the results we've got so far.
    The basic idea is to capture varying illumination conditions extremely
    rapidly using high-speed (Vision Research) cameras that go at 5000 fps
    or so.  The signals that drive the lights are just 5V DC,
    currently supplied by a large number of PICS, but we are hoping to find
    a more
    centralized solution, as well as a higher performance solution (large
    program memory for many lighting patterns, high speed processing to
    support flexible computation of patterns, high speed updating of
    outputs to allow for multiple on/off states within a single 200 usec
    interval
    to simulate grayscale control of the LED's).
    If the system is fast enough, it is possible that a smaller number of
    outputs could drive a large bank of latches that provide the final
    outputs,
    but ideally this would be handled by the NI hardware.  In other
    words, we would just buy enough output units, hook them up, and then the
    programmer just sets the 1200 bits of memory as desired and then triggers the refresh.
    To distribute the signals, one possibility is to have output units with
    between 10 and 50 outputs that can be connected to the central
    controller with long cables (up to 40 feet) and which in turn drive
    individual lights through wires about 10 feet long.  Wireless
    would be
    even better if it exists.

  • PCI 7342 digital output

    I am using PCI 7342 motion controller and UMI7772. There are 6 relays in my system, which are 24Vdc coil voltage and 37mA coil current for each. Can I use digital output on PCI 7342 through UMI7772 to drive these relays?
    PCI7342's digital output is 0-5V, 24mA, but through UMI7772, I can get 5-30Vdc, 100mA output. Am I right? I am not sure 100mA is total or for each output.
    Thanks for reply.

    Don't forget that a relay is basically an inductor and therefore the inrush current can be somewhat higher than the rated current. But I don't think that this might cause problems in this application.
    In any case you should connect a breakdown diode in parallel with the relay coil to keep off inducted voltage from the 734x outputs, or some other snubber circuitry.

Maybe you are looking for