Two digital channel output question

Hi, everyone
I need some helps on design two digital channel output
In brief, I want to use a PCI-6731 output with BNC2110. Two digital
output channel will be used, e.g. Dev1/port0/line0:1. I hope line0 could
output a steady finite samples in frequency f1 (e.g. 10kHz), and total
number of samples like N1 (e.g. 1E6); in the mean time, I hope line1
could output finite samples in frequency f2 = f1/M (e.g. 2kHz), and
number of samples like N2 = N1/M (e.g. 2E5). In another words, I expect
line0 and line1 output same time length samples sequence with different
frequency and also different number. Please note that parameter should
be expected to be controllable, and sometime f2 and N2 are not exactly
integer (then we need take round value).
Thanks for your help in advance.
Solved!
Go to Solution.

Attached is a vi that does what you want, I think. It used two digital outputs clocked by one of the counters. The digital outputs are fed waveforms that are generated by making two frequencies with an integer ratio. You can change the part of the code that generates the waveforms as you wish, and use the rest to do the output.
Richard
Attachments:
Synched DO waveforms.vi ‏38 KB

Similar Messages

  • Digital audio output question

    Right now I have my Mini's audio output connected to my amp with a stereo mini jack. But as I understand it the audio out jack can also accept a digital (toslink) connector. There is surprisingly little documentation on exactly how this works or what cables are needed. Anyone care to enlighten me?
    Thanx

    Hi David,
    Many people use the toslink optical audio cable.
    There are different brands available.
    I purchased several of these when they were on sale from Apple.
    http://store.apple.com/us/product/TL955LL/A?fnode=MTY1NDA3Ng&mco=MTA4NDk5MjQ
    Note the tip adapter in the second and third photo.
    This adapter lets you plug the cable into the audio out jack for the digital audio out portion.

  • How to switch two Digital IO in a DAQmx as a output

    Hello, i need to switch two Digital IO in a DAQmx (Output in a PXI-6528).
    LabVIEW launch next error:
    Error -200014 occurred at DAQmx Create Channel (DO-Digital Output).vi
    Possible reason(s):
    Terminal cannot appear multiple times within a single digital input or output task.
    Physical Channel Name: port3/line0
    Virtual Channel Name: PXI1Slot3/port3/line0
    Task Name: MyDigitalOutTask

    Hi Andreu,
    the best way to analyze your question is to post a short example on the programming language that you´re using in order to investigate a little bit.
    Moreover, under NI Find Examples of LabVIEW (if you programm with LabVIEW), you can find several examples how you can programm your digital port about (you can type "Write" or "digital" under Search tab).
    One example would be: "Write Dig Chan-Int Clk-Dig Start.vi".
    Regards
    Diego M.

  • I want to use two analog channels and one digital simultaneo​usly

    Hello and thanks in advance for reading this!
    What I am trying to do is generate two different signals from the output channels of my interface card (PCI6024E) and simultaneously use a digital line so that I can switch two tranzistors (one NPN, one PNP) which actually control the "flow" of the two signals. This means that both signals need to be "active" while the VI is running and at the same time whenever I want to choose the signal not in use I need to use the digital line so that I switch the tranzistors and I get the desired signal.
    I have already created a VI which activates a digital line and while I was trying to add with the NI-DAQmx Assistant the first digital output, I discovered that it c
    ould not be used simultaneously, because there was the error code -200324 saying that "Device not available in NI-DAQmx. It is possible that the device is being used by Traditional NI-DAQ or that the device is being reset."
    I did reset the device but as I get it when VI runs, it cannot have an active digital channel and an analog output channel at the same time (not to mention two analog channels). Correct me (And make my day if I am wrong but this seems to be the case. Thanks a lot for your time!

    Hey Shootist000,  Thanks for the replies.  First off, I am actually okay if we both have each other applications so I am not concerned about that. It is still unclear from what you have said as to whether I can in fact, use these two separte time machine backup to create two separate profiles on the new hard drive.  If that in fact can be done, then - will it create two copies of the apps we both have in the ROOT of the drive as well as placing all the ones we each have separately?
    And reading your second reply, makes me think that maybe the partition is the way to go to begin with and then down the road - after I am in the new iMac, I could reformat the iMac 27 with only one partion and restore my son's latest back prior to the reformat thus giving him full access to the 2 TB of the drive.
    If this is still making sense, does this mean :
    replace the 1TB with a 2TB - but have it partitione - 1.5 TB & 500 GB.
    Install(Restore using Time Machine) my latest back up prior to the  1.5 partition
    Install (Restore using Time Machine) my son's latest back up prior to the 500 gig partition
    Lastly, in order for us both to be using the partioned computer - I am assuming Switch user can no longer be used - so would we need to restart and select our respective partions in order to use the computer?   And if so, how would we each be able to be using time machine to back up - two separte external hard drives - with each one dedicated to only one partition? Or ? 
    Thanks so much.
    Ironically, I am only trying to do this so that I don't need to manually install all his apps, setting, games, blah blah for this temporary period.  :-)

  • Digital Audio output for W series - Alternatives

    There's a thread talking about the displayport does not have audio-output.  Its true and some people get victimized by ill-trained sales people who think their displayport is standard.  There's no literature on Lenovo website warning users about the audio issue either - such thread is closed with the fact that (some) other manufacturers in the same period does have have audio either and Lenovo think they should be in the same boat.
    Let's not go into the blamish again, but discuss what we can do with existing options with alternative digital audio out and line-in that the W series really really missed.
    We have (1) mini-dock and (2) USB soundcard listed as options
    I currently use a USB DAC (digital to analog) system and it do really good in terms of stereo music enjoyment.  However my particular system does not have digital manupilated sound like 3-D surround or multi-channel output and not suprisely, laptop USB generally produce greater latency than desktop USB ports.
    Besides USB, we have 1394 and express card 34 as expansion options.
    What's your setup for digital audio out?  Anyone know any internal soundcard that fits the slots of Wireless USB/Turbo memory PCI ports that all W-series have?

    Other alternatives include
    I know on mackbooks I've seen firewire used as an input for a Weiss Dac if you're into two channel audio.  Do any reiceivers take firewire as an input for hometheater?  Has anyone tested Firewire outputs on their W series?  I'm told that firewire is sometimes preferable to USB, I'm not sure why this would be, can USB support passthrough of DTS encoded signals?
    In the case that firewire works and you Do not have a firewire source, maybe something like this would be of value  It converts firewire to digital coaxial s/pdif and allows passthrough of DTS and AC3.
    http://www.m-audio.com/images/global/manuals/FireWire-Audiophile_Manual.pdf
    As I'm into audio the critical thing here (and what you're paying for when you purchase blue-ray, is maintaining the digital information from the disk in an unconverted form.  You want a direct bit pass through, and you want as little jitter introduced to the signal as possible.  You most certainly don't want the sound card getting in the way, Digtital to Analog converting and then reverse packaging it up and putting it out over the soundcard digital out.  My problem is I'm not familiar enough with computer audio to know how exactly the sounds is transmitted from your blue ray drive to the digital interface you've chosen.
    Anyone know why USB digital out would not be a prefered method?
    Moderator note; comment removed which contravened forum rules

  • Two Counter channels in one task ID with DAQmx?

    I am writing a program which will control the movement of a gimble on the X and Y axis with servo motors while recieving
    position feed back from two encoders on those axis. I am using a 6251M series card's AO to control the movement
    of the gimble, while running the encoders into a 6602 for position. When setting up my task ID in MAX I noticed I could add
    both ctr0 and ctr1 to the task ID, but  when I tried read the counters with that task I got an error in Labview and with the
    test function in MAX  saying I need to use a multichannel read. I can not find a multichannel read under the counter
    section of my DAQmx read, and was wondering if this is even possible. I am used to programming with Traditional DAQ
    and know you have to keep separate counter task ID's, but having bought an M series card and having to use DAQmx I
    was wanting to know if I could combine them.
    Thanks

    You can have multiple channels in a single task, but those channels all
    have to be of the same type.  You can have analog inputs together
    with other analog inputs, but cannot combine digital inputs/outputs,
    analog outputs or counter tasks with that analog input task.
    Once you pair only like tasks together then you shouldn't run into any more issues like this.
    Best of luck,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Using built in optical digital audio output for 5.1

    So, lets say i want to mix something in 5.1 using logic or soundtrack pro, can i use the optical digital audio output of my macbook to send the signal to a home theather or something to mix it?, or i need a special hardware card for this?
    Thanks a lot!!

    Hi alece,
    Just to clarify something;
    When using an optical cable there are several standards of audio that can pass through the cable:
    S/PDIF - a stereo signal - http://en.wikipedia.org/wiki/Spdif
    AC3 or Dolby Digital - up to 5.1 surround - http://en.wikipedia.org/wiki/Ac3
    Dolby Digital Plus - up to 7.1 surround - http://en.wikipedia.org/wiki/DolbyDigitalPlus
    ADAT Optical - up to 8 channels of audio - http://en.wikipedia.org/wiki/ADAT_Lightpipe
    MADI - up to 64 channels of audio - http://en.wikipedia.org/wiki/MADI
    I´m sure other people can add more to the list if they want to, my point is that these signals can pass through the exact same kind of optical cable.
    The important bit to know is what does your equipment and software support... in theory your question is quite logical, a software can play 5.1 surround to a optical output like Apple DVD Player does with the built-in sound card of a modern mac. However, Logic does not support live encoding of AC3. That is why you have to output the surround mix in Logic to a sound card with at least 6 channels (5+1 as in 5.1) connected to your speaker system. Typically this would be 5 active studio monitors plus a sub. If you were thinking to use an existing stereo I would not recommend it since most consumer speakers have no limiters to protect them from damage (but may be possible depending on your amplifiers inputs)
    I hope this answered your question
    Cheers Espen
    http://www.midiamore.com.au/

  • PCI 6601 Counter stops when digital channel operated

    This is a problem being re-visted from last year after thinking I had found a solution.
    Basically I have set two while loops up.
    Each While loop has a counter channel running in it, Ctr0 and Ctr3 respectivly.
    When the program is run the two counter channels generate a waveform as expected.
    I then have added into each While loop Digital output channels that provide logic for Direction and Enable.
    If the program is now run Ctr0 outputs as expected but Ctr3 remains off.
    I then put the digital WRITE vi's into case statements, put the case to false and started the program.
    Both counters outputted waveforms.
    Turned one of the case statements on and Ctr3 stops. It did not matter which case statement was turned off, Ctr3 always stops.
    Tried changing counters to Ctr1 and Ctr2 - Same result one counter stops
    Changed the 6601 for a 6602 and got similar results.
    I have attached vi in version 8.6
    Jack
    Labview Version 8.5
    Labview Version 8.6
    Labview Version 2013
    Attachments:
    Run 2 Counter Chg Freq 2.vi ‏28 KB

    Vi with digital channels added.
    Jack
    Labview Version 8.5
    Labview Version 8.6
    Labview Version 2013
    Attachments:
    Run 2 Counter Chg Freq 3.vi ‏35 KB

  • Optical digital audio output for mac book?

    Hello, I am wondering if MacBook pro Retina version has the Optical digital audio output or thunderbolt adapter? so i can use optical cable to do output for my music.

    Hi alece,
    Just to clarify something;
    When using an optical cable there are several standards of audio that can pass through the cable:
    S/PDIF - a stereo signal - http://en.wikipedia.org/wiki/Spdif
    AC3 or Dolby Digital - up to 5.1 surround - http://en.wikipedia.org/wiki/Ac3
    Dolby Digital Plus - up to 7.1 surround - http://en.wikipedia.org/wiki/DolbyDigitalPlus
    ADAT Optical - up to 8 channels of audio - http://en.wikipedia.org/wiki/ADAT_Lightpipe
    MADI - up to 64 channels of audio - http://en.wikipedia.org/wiki/MADI
    I´m sure other people can add more to the list if they want to, my point is that these signals can pass through the exact same kind of optical cable.
    The important bit to know is what does your equipment and software support... in theory your question is quite logical, a software can play 5.1 surround to a optical output like Apple DVD Player does with the built-in sound card of a modern mac. However, Logic does not support live encoding of AC3. That is why you have to output the surround mix in Logic to a sound card with at least 6 channels (5+1 as in 5.1) connected to your speaker system. Typically this would be 5 active studio monitors plus a sub. If you were thinking to use an existing stereo I would not recommend it since most consumer speakers have no limiters to protect them from damage (but may be possible depending on your amplifiers inputs)
    I hope this answered your question
    Cheers Espen
    http://www.midiamore.com.au/

  • Synchronization of two analogue DAQmx outputs, error -89131

    I am trying to synchronize two analogue waveform outputs.  I can run and observe both channels  in isolation but cannot work out how to run both at the same time.  I'm a novice Labview user.
    My system contains the following:
    Labview 2012
    Windows 7
    PCI-6035 DAQ card
    I've attempted to write code configured as MASTER/SLAVE, an error occurs when the code attempts to write the waveform to the SLAVE output (DAQmx Write), error code -89131
    Any help would be much appreciated
    Thanks
    Duncan

    Hi Duncan,
    For most DAQ devices, only one hardware timed task per subsystem (i.e. analog input, analog output, digital input/ouput, ...) can run at once.  Each subsystem has its own dedicated timing and triggering circuitry, and your code has two separate AO tasks trying to configure the AO subsystem's resources simultaneously.  After the resources are configured the first time, the second task notices that they're already being used, and it tosses you an error indicating as much.
    In order to configure multiple AO channels on a single device, you need to include both (or all) of them in a single task.  For your application, since it looks like your channels will be updating at the same rate, this will be fairly straightforward.
    Open the Voltage - Continuous Output example that you used as a starting point for your code.
    Configure the Physical Channel(s) input -- either in the existing front panel control or as a block diagram constant -- to include both channels.  You can use the dropdown, select Browse, and Ctrl-click multiple channels or you can simply type Dev1/ao0:1 into the field.
    Now that the task contains two channels, it expects you to define two waveforms to write to the output.  In the example, all you have to do is initialize a second element in the Waveform Settings array.  Just increase the array index value to 1 to view the second entry (should be grayed out, at first) and select the Waveform Type, Frequency, or Amplitude for the waveform you want to send out on AO1.
    That should get you going.  Let us know if you run into any other hurdles as you develop your DAQ application!
    KB
    - Additional reference: Simultaneous AO Tasks on the Same Device

  • New PB digital audio specs question.

    I just looked at the specifications posted on the developer note for the new powerbooks. The digital audio in/out is very welcome. As I read through it, I found that the PB is listed as providing digital audio output via SPDIF AND AC3 formats. The question is, does anyone know if that AC3 output means its passing multichannel AC3 to be decoded outside? or is it a stereo AC3? Can anyone check? thanks... btw, the specs look good for digital in/out.

    Thanks for your post, Machive 6.1. I had in fact read that article... in only states the following about AC3:
    During playback of a 1KHz, full-scale sine wave (S/PDIF output format, 44.1KHz output sample rate, 24-bit sample depth, unless otherwise specified) the digital audio output has the following nominal specifications:
    Jack Type: 3.5mm Analog/Optical Combo Jack
    Output Data Formats: S/PDIF (IEC60958-3), AC3
    Output Sample Rates: 32KHz, 44.1KHz, 48KHz, 64KHz, 88.2KHz, 96KHz
    Bits per Sample: 16 or 24 (S/PDIF),16 (AC3)
    Frequency Response: 20Hz – 20KHz, +/-0dB
    Signal-to-Noise Ratio (SNR): >130dB
    Total Harmonic Distortion + Noise (THD+N): <-130dB (0.00003%)
    Channel Separation: >130dB
    It is not clear whether that is multichannel or stereo AC3 output...
    Anyone has tried it?

  • Digital Coaxial Output to AV receiver - Not working

    I have hooked up my LCD TV to my HP Desktop (9340f) using the S-video output on an Nvidia 9800GT video card.  The video is great, but I cannot get the sound to work from my Harmon Kardon AVR146 receiver.  I have connected the digital coaxial output on the back of the HP to the digital coax input on the back of the receiver.  
    When I open the properties for the sound devices and test the Realtek audio output, I can hear the sounds (piano??) from the speakers that are hooked up to the receiver however, when I play video through windows media or play a video game there is no sound at all.   
    Any suggestions??
    This question was solved.
    View Solution.

    have you gone to Control Panel --> Sound then  verify that Digital Output is enabled.  not speaker ouput. 
    (If you are using Vista you should see a green check mark next to it)
    It always helps if you tell us which OS is installed. That way no guesswork..I'm thinking perhaps ESP required.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • I want to find the digital audio output on my Pavilion vd6853ea notebook

    I have spent far too long trying to find where this output is located.
    I have a very good Hifi and at the moment am using a USB cable to connect to my DAC.
    It looks like there is a realtec digital output somewhere on the notebook as it show up when I go into the playback devices and it tests ok visually.
    The 3.5 jack plug is just analog and not a hybrid spdif.
    Where is it????????
    Please help as I am getting really fed up now!
    This question was solved.
    View Solution.

    HI,
    macapaca666 wrote:
    Thank you so much for the fast reply.
    I thought that may have to be the case.
    Can I please ask you a few other questions?
    If I want to get a digital audio output not using a HDMI (My DAC doesn't have this input), can I get a good result with something like a Musical Fidelity V link USB to S/Pdif converter or a M2Tech Hiface digital audio interface? Sorry,  I cannot make a recommendation on either of those products as I am not familiar with them. 
    Is it possible to change the sound card with an optical or coaxial output? Your notebook's sound is an integrated solution. It is a chip soldered (integrated) onto the system board. It can't be updated.
    Thanks again for the kind help!
    John
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Example: "Digital - Conitinuous Output" How does it work?

    I have to generate a sequence on three channels (with my NI 9375 Digital Output card on a cDAQ9188).
    In 1 second, the sequence consists of, for example:
    channel 1: starting low .. on 15 ms high .. on 865 ms low again
    channel 2: starting high .. on 115 ms low .. on 650 ms high again
    channel 3: starting low .. on 85 ms high .. on 920 ms low again
    This have to be conituously generated and hardware timed.
    For this application, they advised me to work with the example "Digital - Continuous Output". Can anyone explain to me how I get this sequence with the "Data To Write" Controls-box on the Front Panel? And how can I visualise my generated sequence?
    Thanks in advance!
    Solved!
    Go to Solution.

    Hello Hannes,
    There are 2 major things that you have to keep in mind in this case regarding the example you're using:
    - The sample rate you're going to use has to be high enough.
    In your case the minimum sample rate has to be 200 Hz (seeing that your smallest step is 5 ms).
    Of course you could also use any multiple of this.
    - At the other side you have to check how the array of unsigned integers in the Data to Write is related to your digital outputs.
    Depending on which Digital Outputs you're using one of the bits in your unsigned integer will correspond to one of your Digital Ouputs.
    This mentioned the "difficult" part starts:
    Seeing the period is 1 second and if you have selected 200 Hz (5 ms period sampleclock) as the sample rate, then:
    - For channel 1:
    the first 3 bits should be 0, the next 170 [= (865-15)/5] should be 1, the remaining 27 (200-173) bits should be 0.
    - For channel 2:
    the first 23 bits should be 1, the next 107 [= (650-115)/5] should be 0, the remaining 70 (200-130) bits should be 1.
    - For channel 3:
    the first 17 bits should be 0, the next 167 [= (920-85)/5] should be 1, the remaining 16 (200-184) bits should be 0.
    To represent this visually the best thing you can do is to use 3 arrays of 200 booleans for the 3 channels.
    These arrays can be easily shown in a Digital graph
    You then have to make a very simple conversion algorythm to convert these 3 arrays of 200 bits/booleans to 1 array of 200 unsigned integers.
    Is my explanation a bit clear to you?
    Note: Here we took 1 as high and 0 as low.
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Two comm channels at the PI outbound side

    Hi All,
    Can we use two communication channels at the outbound side.my scenario is to send a file from database system  to SAP. I know that we can use JDBC adaptor at the inbound (PI receiving side) and FILE adaptor at outbound (PI sending side).  at the same time when we dump the file onto SAP application server , i need to send workflow notification to relavant department agent informing about the file location.
    Could anyone tell me how we are going to configur this scenarion.
    Regards
    Sre.

    >
    sre wrote:
    > Hi All,
    >
    > Can we use two communication channels at the outbound side.my scenario is to send a file from database system  to SAP. I know that we can use JDBC adaptor at the inbound (PI receiving side) and FILE adaptor at outbound (PI sending side).  at the same time when we dump the file onto SAP application server , i need to send workflow notification to relavant department agent informing about the file location.
    >
    > Could anyone tell me how we are going to configur this scenarion.
    >
    > Regards
    > Sre.
    so your scenario is
    JDBC -> FILE & WORKFLOW Notification
    The answer is yes. you can add as many receivers and its corresponding communication channels.
    One question, how do you want to send the WORKFLOW Notification?

Maybe you are looking for