Simple digital output

How can i use counter as simple digital output(On, OFF) for 6602?
I want to use counter output (PFI_32) as simple On/Off output, because in the future
I want to change my application to pulse generation.

Hi,
An example of writing to a digital output line can be found at:
C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Do\DOoneline.C
As in the LabVIEW example, you will have to set the line to number 28. Program is hardcoded to use
DIO_28 of TIO board. DIO_28 is pin 32.
I hope this helps, and have a Great Day!
George

Similar Messages

  • Using mathscript to generate multiple digital outputs for switch control

    Hello 
    I am new to this NI LV and a have kind of a basic question. I would like to use Mathscript to generate an array of bolean numbers which will be used to control the Digital I/O lines. I am using NI 6251 USB device and the Mathscript code runs well. But I have a problem using this array to control the Digital output. So I created a simple test programme where I set the DAQ assitant to generate 4 digital outputs(P0.0 ~ P0.3) and it gives error that  ".. number of channels in the data does not match the number of channels in the task..." (see attachment) . How can I solve this problem thank you.
    Attachments:
    K-9.jpg ‏36 KB

    looks like you did not initialize all 4 of the elements in the bool array....

  • How to control a digital output signal using the DAQ assistant?

    I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Finally, I would like to reverse the polarity of the switch (to off) about a second after the initial digital signal, all of which is during continuous data acquisition.
    I am able to actuate the switch only when pressing the "run" button in the DAQ assistant window. I am proficient with data acquisition but have never tried programming an output... Please help!
    Thanks!
    -a troubled researcher
    P.S. I am running LabVIEW 8.5 as well.

    blsmith4,
    You probably won't get the control of the digital port on your card by only using the DAQ Assistant. One of the following examples should provide you the functionality that you would like out of the box:
    Digital - SW - Timed Output (Simple)
    Digital - Continuous Output (More Complex)
    Continuous Write Digital Port - External Clock - Non Regeneration (Most Complex)
    Let me know if these work better for you.
    Best,
    Jason M.
    Applications Engineer
    National Instruments

  • Coax digital output in X-Fi sound ca

    Hi everyone!
    Since I am founding severe problems to listen correctly my audio-dvd records I am seriously considering to change my SB Audigy 2 ZS for a X-Fi sound card in the hope it will work properly. But I can not find out what of the X-Fi sound cards family will give me the outputs I need. I need a coas digital output to connect to my HT system, for the DD and DTS media, and the three analog output, for the audio-dvd media. All the specs I have read talks about the digital optical output present in the cards, but no mention of the coax output. I don not want those add-ons that offer multiple I/O conenctions in the front of the computer, I would like the old system with all the required connections in the rear of the PC. Could any of you confirm if any of the X-Fi sound cards family has those connections? Or, even better, could any of us put some light on the problems I am having to listen the audio-dvd media?, it seems a sw problem, that causes crashes of the Creative Audio-DVD sw, the Power DVD 6 & 7 player everytime I try to play such a format. The DTS or DVD are played correctly, even when my Windows XP Pro SP2 seems to have some problems when selecting the digital output of the sound card. Are those problems still present in the X-Fi solutions?
    Best regards.

    HSE wrote:
    Excluding the XtremeGamer, all the X-Fi cards have coax SPDIF-out via flexijack, if you already have the mini-to-RCA cable or adapter, it's the same as in an A2ZS. The problem is that, unless you can find a retail XtremeMusic (which is being discontinued), only cards with I/O dri've or console can decode DVD-Audio. Besides, Audigys and X-Fis use the same DVD-A player, if the latest version (2.00.75) BSODs on you, it will probably do so with an X-Fi.Have you tried processor affinity settings for the DVD-A player? it solves the BSOD problems in some cases.
    First of all, thank you very much HSE for your reply.
    It is great to know that the flexijack provides with one coax SPDIF-out, I was most uncertain about it since in every spec page I have found all it is explained is "Flexijack: Line In / Microphone In / Optical Out? via shared 3.5mm mini jack" (c&p from the Creative spec page) that only remarks the "optical", not the "coaxial".
    What is a bad surprise is what you say about the XtremeMusic, that it is not easy to find. I thought that all the X-Fi family had the same compatibility with DVD-A. Then, if I buy a Xtreme Gamer, for instance, I will not be able to decode DVD-A?. I thought that all I needed was the three analog outputs to deli'ver the audio signal to the external decoder...
    Finally, I have to say that I do not get a BSOD with the DVD-A player. It did not recognize the DVD-A as a correct media, and get some kind of crashed, shooting an exception taht is caught and handled by the Visual Basic Suite. The latest version does not shoot the exception, it just not recoignize either the DVD-A. If I use the PowerDVD sw, it only recognizes de DVD format, not the DVD-A and, if I keep on trying, it eventually stop working at all. But not a BSOD. I will check what you say about processor affinity wit DVD-A player, although at this momento I do not know what are you talknig about :-) I will do some SOG :-)
    One discouraging point is what you say about Audigy 2 and X-Fi using the same DVD-A player, since I have the feeling that everything is related with the sw. I do not know if is something related with any Windows or Creative sw upgrade, but some months ago it was working perfectly until it stopped to work. Fortunately I have only a few DVD-A, but the ones I have I would prefer listen them in DVD-A instead of "simple" Dolby Digital or even DTS.
    Once again, thank you very much for your time and help.
    Best regards.

  • Jitter on digital output

    does anyone know if jitter on digital output has been fixed 4.1 to 4.2?

    update: looking at the DAQmx control samples, it seems some of them set the start trigger for the AO to the AI start trigger. I mimicked this using kAO_START1_SelectAI_START_1 with the aoTrigger method, and the sync seems better now: the output starts exactly 10mSec after the input (or 5, if I preload only one frame) and stays in sync for about 25mSec. That it goes wrong.
    At the moment I'm using no DMA, just one simple interrupt routine that basically does
    board->Interrupt_A_Ack.writeAI_SC_TC_Interrupt_Ack( 1 );
    board->Interrupt_A_Ack.flush();
    toggle ^= 1;
    board->Static_Digital_Output.writeRegister( toggle ? 0x00 : 0xff );
    for( u32 i = 0 ; i < numSamples ; ++i )
      const u32 val = board->AI_FIFO_Data.readRegister();
      board->AO_FIFO_Data.writeRegister( val );
    In the screenshot in the attachment you can see this goes wrong: cursor A shows the position of the input signal (=AI 0, yellow) that should be shown 10mSec later at the output (blue line=AO). Cursor B shows this 10mSec later position, and you can see there's some garbage right after the cursor. This is the data that was written to the AO FIFO in the fifth interrupt (interrupt position show in purple).
    Trying to figure out where that comes from, I put board->AI_Status_1.readAI_FIFO_Empty_St() in the interrupt loop. And effectively, when trying to read the 500th sample, it reports that the FIFO is empty. Consequently the data written to the AO FIFO does not make sense anymore. But I do not understand how can this ever happen? The SC_TC interrupt is fired whenever 100 samples are read from the input. So after this interrupt occurs, the FIFO should always contain at least 100 samples, no?
    Attachments:
    tek00000.png ‏22 KB

  • Simple digital stereo

    The more I read on digital stereo the further down a rat hole I seem to go. What's a recommendation for doing simple digital audio output, how to output the digital flac, mp3 to some hardware that will attach to speakers? Either my home stereo or some hopefully cheap hardware. I've got a Zotac that I'd like to start out with to do proof of concept. It has spdif out.
    Don

    > I don't know what a Zotac is,
    Sorry the Zotac mention was a last minute thing, it's a little micro PC.
    > ... but have you read the wiki on sounds system? https://wiki.archlinux.org/index.php/Sound
    I'll read through that. I've been through so many linux audio pages on and off over 6 months I'm not sure where I am. I figured I'd devote time this winter to getting something set up.
    > Beyond that... Really gonna depend on how you are planning to interact with it, is it headless? What kind of display are you expecting? But so far we basically know that you want to play audio over hardware... What kind of answer are you expecting?
    I was thinking I'd put as small a monitor as I can find in my stereo cabinet to run either a linux audio app like banshee or something web/perl home grown. What I'm looking for is the middle hardware/software, what do I need to run on the linux box to output the digital stream and what do I need to either hook it directly to something that will drive speakers or to my home stereo. It's that middle ground that I can't seem to figure out.

  • Trigger digital output at every 10 digital pulses

    How can i generate an output pulse at every 10 input pulses comming from an encoder?
    I need to trigger a sensor at every 10 encoder pulses to get data from the sensor.

    Hello jyp777,
    What you will need is a counter with an if statement that activates a digital output every 10 ticks. To do this, I would look at a LabVIEW example titled: Counter - Count Edges (Continuous Clock) that can be found under Help >> Find Examples... >> Hardware Input and Output >> DAQmx >> Counter Input in LabVIEW. Using this example VI, it should be a simple step to add a condition that triggers a digital output when the count reaches 10. 
    You can also use a Digital Output example if you need help in this area. These examples can be found by going to :
    Help >> Find Examples... >> Hardware Input and Output >> DAQmx >>Digital Output. I would recommend "Digital - Continuous Output.vi". 
    Happy LabVIEW coding!
    Thanks,
    Collin D.
    Applications Engineer
    National Instruments

  • Button timer digital output

    Hi folks,
    Want to control digital output USB6215 with button. The active time presetable from control, like 5.2 seconds
    Hopefully simple solution
    -Stefan

    srydstrom wrote:
    Hi folks,
    Want to control digital output USB6215 with button. The active time presetable from control, like 5.2 seconds
    Hopefully simple solution
    -Stefan
    it is a simple solution..have you looked at the NI shipped examples? Goto Help>Find Examples...>Hardware Input and Output>Daqmx>, if your button is external hardware...you need "Analog Input or Digital Input" to acquire the signal..if not, then software controlled...this all needs to be sent to >Digital Output.
    note: the Requirements box will indicate what NI devices you can run with these examples...

  • 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.

  • USB-6009 Digital Output Current

    You need to have all those grounds connected together - USB-6009 Digital Ground, ULN2003 GND, and the power supply ground. In this case it will not matter how they are connected.  If they are not connected, then one of the devices could be damaged.
    Lynn

    Hi, I'm trying to increase the voltage of the digital outputs of USB-6009 device. I read a couple topics about using a relay but I could not manage it.
    I was thinking to use 5V supply on the card since it has 200mA current on it, but when I use it with open-collector output, it can not switch the relay. When I measure the current between
    5V and ground: 200mA,
    5V and output, I read a value around 30-40 mA.
    Why can't I use that 200mA with an output? This is the relay I'm using.
    If this is not possible, can I use an external 5V supply (with more current) and a digital output to switch the relay without damage the 6009?

  • USB-6009 pulse train generation with digital output....

    Hello!
    I've bought a new USB NI-Card (USB-6009) and now I'm trying to adopt an old vi that uses traditional DAQ drivers. I wrote that vi for a PCI NI-Card (PCI-6024E), which has two counters to generate two pulse trains simultaneously. Now I've only one counter and that's why I'm searching for a good way to create pulse trains using a digital output! The pulse trains are both ranging between 100 Hz and 100 kHz.
    I'm sure somebody has an idea how I can solve the probem in the best way
    Kind regards,
    Peter

    You can't do it with this low cost board. Both digital and analog outputs are software timed only. The analog out is rated at only 150  samples/sec and the digital is about the same. You can't even use one of the counters because it is not a hardware timed counter output. It is an event counter only as an input.

  • HT5783 My MacBook Pro (Mid-2009) digital output has stopped working. It turns on the red light at the other side of the plug, but fails to connect with my receiver. Output from Airport works fine.

    It was working fine until now, and now suddenly, the sound is gone. I've tried PRAM and SMC reset. Nothing works.
    Using the same cable with my airport express, through airplay, the sound comes out fine.
    It wasn't working when on Mavericks, nor now, on Yosemite.

    Hey marcalc,
    Thanks for the question. I understand that you are experiencing issues with the digital output of your MacBook Pro. The following resource may provide a solution:
    OS X Mavericks: If you can’t hear sound from your speakers
    http://support.apple.com/kb/PH13841
    If you’re trying to listen through a digital receiver
    If you’re using your computer’s digital output port (not available on all computers), choose Apple menu > System Preferences, click Sound, then click Output. Make sure Digital Output is selected.
    Make sure your computer is connected to a digital-ready receiver using an optical digital cable, and that your receiver is set up for digital input (see the information that came with your receiver).
    Try adjusting the volume on your receiver. You can’t use the computer’s volume controls to adjust the volume while using digital output.
    Thanks,
    Matt M.

  • How to give delay in switch on digital output lines

    Hello All,
    I am working on PCI-6514 Digital IO card, I am writing a sequence to my application using DAQmax for  Digital input and output lines
    I want to switch on one output line0 and after a delay 5sec switch on line1 output and after a delay of 3sec switch on line2 output and sense input line 0 and line 1 .
    How can we know the status of output ie output is on or off.
    Since i am using the IO card for first time suggest me in this.

    Hi
    I am going to assume that you are using LabVIEW 7.1 for this application.  If you are trying to acquire data from an external device after outputting data to that device, the DAQmx tristate property node will give you this functionality.
    You will then need a DAQmx write.vi to output your digital data followed by a DAQmx channel property node. Select Digital Output>>Tristate on the property node and wire a true constant into it. After the property node, you can use a DAQmx read.vi to read the data coming into the digital lines. By using the tristate property node, you can avoid stopping the digital output task and starting an entirely new task.  I am attaching an example program that will demonstrate this.
    Regards,
    Hal L.
    Attachments:
    digital input and output.vi ‏39 KB

  • 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

  • Dtt3500 and Audigy Gamer, digital output only 2 channel unless its D

    Ok I recieved a response concerning my last comment but unfortunatly it did not answer my question at all. I have a DTT3500 and a sound blaster Audigy Gamer hooked up with the digital out to the /8 din adapter. I try the advanced 3d demo that came with the Audigy software and I only hear the front 2 channels, no center and no rears. The demo where you move the little icons and sound moves along with it. I have 5. activated in my windows control center along with audioHQ and digital out only is selected. my DTT3500 has 4./5. digital selected along with dolby digital/pcm audio and digital in. I am not getting the effect of multisurround at all. My center works and my rears work because playing music I can use all 5 speakers. When I use the analogue outputs I hear multisurround from the advanced 3d demo but my center doesnt work. The analogue setup sounds better but without a center channel its useless to me. Am I doing something wrong? I am using the adapter and digital DIN, what gives? The only reason I noticed I wasnt getting surround was while playing games nothing comes from behind you even on 5. games. The goldmine demo doesnt even work right, when the bird flys behind you it disappears but there is still sound from the rears. Analogue fixes this without a center but the manual and setup say to use the digital din. Do I just have a setting wrong? I would like to experiance the full capacity of multispeakers in my games.

    Dennis,
    With these speakers the connection that I would suggest would be to use the Digital out on the back of the sound card into the DIN Input on the DTT3500's. This will require a converter cable for /8'' Minidin to standard DIN which can be purchased from here:
    http://us.creative.com/products/prod...0&product=0375
    You will also need a standard DIN cable (one should have shipped with your DTT3500's).
    This should give you 5. with digital output only enabled on the Audigy.
    Jeremy

Maybe you are looking for