NI SPDIF Input Module

Has anyone tried to use the NI SPDIF Input Module? I already checked the document, but still, I am having troubles making it work. It doesn't read a 48 KHz signal with a 7831R board.
Thanks for any suggestions.

I have two suggestions to try.
In regards to developing your own SPDIF reader; when you only measure the pulse lengths you get the proper readings, but as you add more code to the loop the readings changes and become incorrect. This is most likely a result of the extra code slowing down the loop and causing it to not run fast enough to read each pulse. Using a regular While loop in LV FPGA, each function block you use takes up at least one FPGA clock cycle. In addition the While loop has an overhead of two FPGA clock cycles. So assuming you have a While loop with 5 consecutive functions it will take 7 clock cycles to run each iteration of the loop. If you were to use this loop to measure the pulse length it would give you a measurment with a resolution of 7 ticks, i.e. the pulse length would be 7, 14, 21, 28, etc. As you add more code to this loop the length of each iteration increases and the resolution of the pulse width decreases. In order for us to adequately measure the width of the pulses in the SPDIF signal we need to have a loop iteration time of less than 6 or 7 clock cycles (about half of the shortest pulse we want to measure). This is the reason why the original SPDIF code is set up in three different loops and the first loop that measures the pulse width is kept very simple. It also uses pipelining to further reduce the time of each iteration and we compile the FPGA for a 80 MHz clock rate to get more clock cycles per pulse. I think in your code as you add the Case structure and additional code, you are increasing the loop time above the necessary limit.
One 'easy' solution to this problem is to use the Single Cycle Timed Loop (SCTL) instead of the While loop. This loop is processed differently by the compiler so that all of the code inside the SCTL is executed in one clock cycle. (The SCTL was not available in LV FPGA when the original SPDIF code was developed, otherwise we would have used it then.) So in the updated SPDIF code we use the SCTL and can include all of the SPDIF processing in one loop. There are some limitations on the code that can be included in a SCTL. Information about the SCTL and optimizing FPGA code can be found in this prsentation (Advanced FPGA Programming). I think if you convert your code to the SCTL (right click on the While loop and chose Replace with Timed Loop) you should be able to measure your signal correctly.
Getting back to the SPDIF code I included on my last post. This code does work correctly on my end with a SPDIF signal coming from a Soundblaster sound card. This signal has two raw audio channels with 20-bit data per channel. The 4 AUX bits in the SPDIF packet are not used. I have logged the data to file and can load the file using the Reader VI included in my last post. To play the sound back on a regular sound card in LabVIEW I have to resample the data to 44.1 kHz and then use the upper 16-bits of the 20-bit audio signal. I'm attaching a sample file of logged data on this post that you can open and play back using Read SPDIF Data File.vi.
Is there a chance that the audio data in your signal is formatted differently? Could it be using 5.1 or 6.1 encoding with DTS or Dolby?
Christian Loew, CLA
Principal Systems Engineer, National Instruments
Please tip your answer providers with kudos.
Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
Attachments:
sampledata.zip ‏2987 KB

Similar Messages

  • X-Fi I/O Drive SPDIF input stopped working - driver issue?

    HI have an X-Fi Platinum card with the I/O Dri've module that I have been using for some time now to accept digital input via digital coaxial cable from my Alesis Multimix 6 music mixer to mix down and record MP3s from my hardware music synthesizers. I am running Windows XP SP3. The SPDIF input has always worked like a charm until I updated the driver via Creative AutoUpdate. The SPDIF input no longer registers any signal, but it still shows in both Creative Volume Panel and Windows Volume Control. Default sound input and output is set to X-Fi (D000). I tried uninstalling the new driver and reinstalling the original driver, and the SPDIF input is still dead.
    Is this a known driver issue? Any idea on how I can get this working again?
    Thanks, all.
    Larry

    I/O dri've now works with this software?http://forums.creative.com/creativel...essage.id=7369?which includes the 3/5/07 driver. Steve

  • How do I acquire multiple signals in the NI cDAQ 9172 using 2 analog input modules?

    Hi everyone,
    Is anyone familiar with using the NI cDAQ 9172?  This is my first time using it and I am not sure what exactly I am doing wrong... Alone with a NI 9233 analog input module, it works great.  I can grab my 4 signals from each channel and go.  However, when I add another analog input module to the mix, it gets an error.  It looks like it is reading only one and not the other.  It bombs at one of the DAQ start task and read task.
    Basically, the block diagram is just a double of the one 9233 working alone.  Is there something needed for input to make the 9172 working?  Any ideas?
    Any help is much appreciated.  Thanks!!

    Hi Jud,
    Both threads are correct.  The cDAQ-9172 has a single analog input timing engine, so both of your analog input modules will need to be in a single task.  The other VI you referenced shows one analog input task (with channels added from two modules) as well as an analog output task.  Analog output has a separate timing engine from analog input, so both of those can run in parallel independent tasks.
    The beginning of this thread is a good example; a single DAQmx Create Task followed by a DAQmx Create Virtual Channel for channels from each module.  Also, Getting Started with NI-DAQmx will give you the fundamentals for data acquisition, though I don't know how many of their examples use CompactDAQ.
    Regards,
    Kyle

  • Delta R-Bus spDIF input no longer works under Tiger?

    The spdif input on my M-Audio Delta R-Bus card works flawlessly in Logic 4.8 under OS9, but does not work in Logic 7.2 under OSX Tiger.
    I spoke with M-Audio Support but they said that the Delta R-Bus is mothballed and I should get something newer They didn't even want to bother to test it.
    Any other Delta R-Bus users out there who could confirm or deny this fault?

    Thought you could use this info about getting FireWire to work!
    First, you should always Repair Permissions in Disk Utility before and after any update; I would do that now. If you installed your update with FireWire plugged in, your Mac may not recognize it anymore.
    Try resetting your FireWire ports by disconnecting all FW devices, shut down your Mac and unplug it from AC power (wall socket) for 30 minutes. plug it back in and try FW.
    If that didn't work, download the combo update from this site (yours may be corrupt), not Software Update, disconnect all firewire + USB devices except keyboard + mouse, Repair Permissions, re-install update, Repair Permissions again + try.
    If that still didn't get it Zap the PRAM. While restarting Mac hold down the following key combo Command-Option-P-R. Keep holding those keys down till you hear the second start-up chime, then release.
    For those of you with Macs that are not PowerBooks or iBooks, a bad internal PRAM battery can cause FireWire to not be recognized, so make sure it's good! Also, here is Apple KB HT1317 on getting FireWire to work.
    Here's another Fw Faq.
    DALE

  • Clipping problems using SPDIF input on SB Live

    .Clipping problems using SPDIF input on SB Li've?Hello everyone
    I'm new to this community and I'm banking on someone being able to help me!
    I'm connecting a DAT player to the SPDIF input on my Soundblaster Li've card and recording using Audacity.
    Within Creative Audio HQ I've got the SPDIF volume level set to 00% (for starters, perhaps someone can explain why there is a volume control when I thought this signal was staying in the digital realm?!) and when I record in Audacity the resulting material clips with high transient sound... a piano, for example, distorts on the louder notes.
    I need to take the level down to about 70% (or the equivalent in Audacity would be 0.7 - the 2 'volume' controls are connected) to avoid any clipping.
    I've had the sound card years and used to use SoundForge without any problems. Any ideas why this is happening in Audacity?
    I'm using XP and?I have downloaded the latest drivers and turned off the MOBO onboard sound in my BIOS.
    I would be grateful for any assistance anyone can give.
    Best Wishes
    Steve

    paush wrote:
    Hi, I am trying to sample my old vinyl record collection using my Sound Blaster Li've! PCI (think that was the model - it was the original (not Value) version of the card with the seperate header for the coaxial digital and MIDI I/O). Unfortunately, I get severe clipping regardless of the recording volume on the Volume Control panel. I know that my photo pre-amp is capable of high voltage outputs and therefore wondered if anyone was aware of the sensitivity of the analogue line input in volts of this particular model? Many thanks.
    Regards, Paul.
    If your pre-amp is a phono pre-amp (with RIAA in-build), I suppose it's not the culprit for clipping.
    How have you set the recording and source (input) levels on Volume Control and Recording Control?
    Try adjust the recording level by the 'hights' (loudest outputs) of the record (you know those recordings so you can easily find those places (or you can look on vinyls surface where the darkest areas are --> loudest outputs)).
    jutapaMessage Edited by jutapa on 0-23-2006 :38 PM

  • Using spdif input into logic to record..

    hello, I am trying to record a track in logic 9 using spdif input..
    It does not seem there is an option to choose a digital input, just input 1 and 2.
    I am actually recording from a second mac running logic so i have two m-audio interfaces for each computer
    so i am recording a stereo mix in logic on one machine goint to logic on my second machine.
    There is a reason I am doing this!
    help please!

    But not the standard Fast Track, that doesn't have s/pdif.
    The Master Computer in this case is the playback computer, you don't need to do anything as far as setting the clock goes. The Recording computer must be set to external sync in THE FAST TRACK software, don't mess with Logic or it will get confusing, this is all done in the Fast Track software applet. The important part is that the recording computer's audio interface is synced to the digital clock coming in on the s/pdif cable (along with the audio of course.
    Don't try and use MIDI to sync the two, Logic only send MIDI clock it doesn't receive it, might be able to make it work using MIDI Machine Control but the start commands will come from the recording computer not the playback one.  One thing at a time, the important thing is to get s/pdif working correctly.
    What are you trying to do?

  • "Chassis Temperatur​e" in Analog Input Module for FPGA (cRIO-9201​)

    I have just gotten my cRIO with a analog module (9201) and a digital output module (9472).
    When I place an Analog Input Module on my block diagram and double click it, I can choose from the following inputs:
    Channel 0 through Channel 7
    AND
    Chassis Temperature
    I have tried to find any documentation for this "Chassis Temperature" but so far without success.
    If I read this input and feed it straight to an indicator, I get values in the range of 120 to 150.. Now, without more information, this number is rather useless. Does anyone know how to transfer this data to a temperature (either in the Celcius scale or the Fahrenheit scale)?
    Thank you!
    Project Engineer
    LabVIEW 2009
    Run LabVIEW on WinXP and Vista system.
    Used LabVIEW since May 2005
    Certifications: CLD and CPI certified
    Currently employed.

    I still did not find any documentation for this "feature" but I lucked out and found the following:
    in the folder: \labview 7.1\examples\FPGA\CompactRIO\cRIO-910x\
    you should have a file called:
    cRIO-910x support files.llb
    in this there is a convert to temperature vi.
    To get the raw data as a temperature, it looks like all you have to do is divide the binary data by 4 and the answer will be in Celcius.
    Project Engineer
    LabVIEW 2009
    Run LabVIEW on WinXP and Vista system.
    Used LabVIEW since May 2005
    Certifications: CLD and CPI certified
    Currently employed.

  • How do you Control SPDIF input levels in Logic Pro using Apogee Ensemble

    Hello,
    Question. I have an Apogee Ensemble audio interface hooked up to my Macbook Pro. I have a Motif XS8 that I record audio from through SPDIF.
    I am able to get sound through to my audio track once setting the inputs in Logic, however the levels are not even close to halfway. I can not figure out how to fix adjust the SPDIF level to make it hotter b/c I know once I add virtual tracks and vocals through my preamp, the audio from my motif will likely not be hearable.
    Please let me know.
    Also, when I record an audio track is says about 15 minutes remaining to record. Does that mean I have 15 mins of audio for each track or for all my recording period???

    Not owning an Apogee Ensemble, maybe someone else who does has more definitive info can jump in, but do not confuse the lower level of the SPDIF input with "lesser quality". It's a digital connection, with no analog conversion.
    -18 dBFS on a digital scale is the same as 0dB on an analog scale.
    I think what you're experiencing, is the fact that so many people think they need to get the meters in Logic closer to 0dB, which is actually NOT what you want (when staying ITB). This thinking is left over from the days of analogue recording, or the early days of 16 bit digital recording.
    Turn your other sources in Logic down, and you'll reap the benefits of not overloading the 2 buss, allowing the plug-ins to do their computations without distorting, etc... Then you can bring the over all level of your mix back up, in mastering.
    If the Motif is considerably lower in volume than that, you could always insert a gainer plug-in on the audio track.
    As to the 15 minutes, that is what Logic has pre-allocated for recording to your hard drive. It "re-sets" each time you go into record, so it's not saying "you only have 15 minutes of record time available". It's saying, "you have 15 minutes of hard disk space allocated each time you go into record, based on your sample rate and bit depth settings". This can be changed in the Audio pathway, but it's recommended to leave this number as low as possible/necessary, to avoid disk fragmentation.

  • How to use both digital and analog input modules in the same worksheet - MCC USB1208LS

    Dear all,
    Hi, I am Imran. I am using MCC USB1208LS. I have created the worksheet using digital input module as below and able to execute (run).
    But when i add another analog input module in the same worksheet and executes, An error Message pops-up as in the below image
    I have connected temperature sensor sognal to the analog input of USB1208LS. When using analog input alone in the worksheet, it indiates the actual values. 
    is any black box solve? please guide me. I am attaching in images
    We already placed a purchase order for USB1208FS. Will it sort out my issues?.
    Thanking you,
    Imran Mohamed.
    Attachments:
    present worksheet digital input only.JPG ‏67 KB
    with analog input module.JPG ‏81 KB
    error menu.JPG ‏77 KB

    Hello Imran,
    the USB-1208LS is not capable of running concurrent operations such as an analog input scan and ANY digital Ins, Outs, counter reads, or analog outs.  In Dasylab, the 1208LS is scanning, and nothing else from that particular device can be requested of it while that is happening.
    Yes, using the 1208FS will resolve some of these issues.
    Please refer to the ULHELP.CHM file installed on your computer in c:\program files\measurement computing\daq for details on this issue, et al.
    also I recommend you send your MCC/DASYLab requests for support to [email protected] as MCC staff (that includes me) does not normally monitor NI's Developer Zone.

  • Will Analog Instruments ADXL330 triaxial accelerometer work with the SCXI-1531 input module?

    I have an SCXI-1001 chassis and will soon be purchasing an accelerometer input module (SCXI-1531).  I'm also investigating possible accelerometers to buy.  Does anyone know if the the Analog Instruments ADXL330 accelerometer can be made to work with the SCXI-1531?  Here is a link to the Analog Instrument's page about the device:
    http://www.analog.com/en/sensors/inertial-sensors/adxl330/products/product.html
    Thanks!

    Hello,
    The output voltage and current levels are within specification of the module, the only concern I have is interfacing between the IC chip and the BNC connections on the 1531.  If you have a way to effectively connect the pins to BNC connectors and connect that to the module, then it should work.  Are you using the module's excitation source as well? 
    Kyle A.
    National Instruments
    High Speed Digital I/O Product Support Engineer - R&D

  • OPC input module unknown upon worksheet startup. No sound card installed error.

    Hi all,
    I am on v11.00.00 and have two problems.
    1. Upon startup, I get a 'no sound card installed' error despite having already selected the sound board from the Measurement tab. I've already checked the Windows Device manager and verified that the sound card is working OK.
    2. Upon loading a worksheet, I get a module unknown error - in this case an OPC Input module for a DT9837B sound and vibration measurement box. I've already installed the DAQ OEM drivers.
    Can anyone tell me what's wrong?
    Thanks...
     

    You may need to edit the sounddrv.ini file to change the device number. 
    The default file is this
    [SETUP]
    PlayWelcome=1
    DisplayNoSoundCardMsg=0
    InputDevice=0
    OutputDevice=0
    BitsPerSample=16
    LeftVolume=50000
    RightVolume=50000
    SameVolume=1
    Change InputDevice to =1
    File is in the Public users folder (Documents and Settings\All Users on XP), in the DASYLab\11.0.0\Eng folder.
    OPC and DT have nothing to do with each other. They may be conflicting, however, since both are add-on drivers. If you edit the DASYLab.ini file (same location as the SoundDrv.ini file), put a semicolon character ";" in front of the line that loads the OPCC.DLL.
    If the line is missing (i.e., the DT installation obliterated it), change one of the other lines to be DLLx=Opcc.dll. That will add it back in. 
    Ensure that the DT driver is loaded. Both of these are in the [EXTEND] section of the file. 
     

  • No Front Panel Output/SPDIF input settin

    I just frankentstein'd my X-FI Platinum out of an old 32-bit platform along with the software, network adapters, OS (Windows XP Pro-32 bit). I've got 2 gb ram, a total of .32 tb of HD space, a Q6600, an nForce 680i sli mobo, and a 850 watt psu. My speaker system is a Logitech Z5500 that was also hooked up to my last system. Aside from the mobo, ram, and processor, all things have remained the same. My problem is that I can't get the optical output of the front panel to work. I tried removing the card and placing it in the other PCI slot, but it still didn't work. I tried re-setting the cables to make sure that I didn't screw up when I placed them, still nothing. The red light on the other end of the cable is clearly visible. My Z5500 console still says "No Digital Data" when I set it to optical. Also, the SPDIF input settings in the Creative Audio Console is greyed out. I can't select it. What am I doing wrong here? It worked perfectly in the other system, and I didn't break it when I moved it.

    Hi Dutu,
    I agree there are 3 CDs in all. One is called the Install CD. The other 2 are called Software CD 1 of 2 and Software CD 2 of 2.
    I did not use the Install CD at all. I started from from SW CD 1 of 2, because I wanted to dual boot with my old OS. I maybe wrong, but my impression was that if you start from the Install CD, it will take over the whole disk and destroy your previous OS. While the SW CD will give you the chance to do an interactive install. I agree it's confusing, beause Software CD gives you the impression that it contains only applications and not the OS. I don't know why SUN chose to call them S/W CDs, while they also contain the OS.
    Regards
    Yousef

  • XFI Xtrememusic Optical SPDIF input problem

    Hi everyone,
    I am unable to utilise the optical input of the XFI to decode Dolby Digital / DTS streams.
    Setup:
    PS3 to Creative Digital I/O dongle via optical cable.
    Creative Digital I/O to XFI Xtrememusic via provided connector.
    PS3 playing a DVD with both DD and DTS soundtracks.
    Problem:
    No sound at all, no matter whether I choose DD or DTS.
    If I set my PS3 to output only PCM audio, there is stereo sound heard, so I can confirm the physical connections are good.
    I am unable to select any "SPDIF Input Settings" options in either the Creative Audio Console's "SPDIF I/O" tab or the Creative Volume Panel's "Digital I/O" section.
    . Audio Console's drop-down list is greyed out and not selectable.
    2. Volume Panel's "SPDIF Input Settings" drop-down list is not even visible. (i.e. there is nothing displayed to the right of "Digital Output Sampling Rate")
    Steps taken to try to resolve issue:
    . Checked Creative Website for latest drivers and applications and installed them.
    2. Tried to follow the electronic guide/manual but could not choose "SPDIF Bypass" due to the missing "SPDIF Input Settings" option.
    The online flash tutorial (Beginner's Guide -> Digital I/O) shows these settings but it is just empty for me on my computer.
    Can anyone please tell me how I can get my Xtrememusic to decode DD/DTS via optical input? I've searched everywhere and found no answers. Thanks in advance!

    http://forums.creative.com/t5/Sound-Blaster/Cant-get-5--via-Digital-In-Windows-7-64-bit/td-p/552895

  • Using NI 9214 16-Channel Thermocoup​le Input Module

    Hi,
    Now that we have the NI 9214 with NI TB-9214, 16-Channel Thermocouple Input Module with
    Terminal Block how do we go about using it?
    It was not obvious as to what or where I get the instruments drivers for this, so any direction would be good?
    Also I have the CVI sample code, ContThrmcplSamps-IntClk.prj, are there any others about?
    Thanks
    Simon

    Hi Simon,
    Minimum driver requirements for all modules can be found using the software support tool and selecting the module you are interested in, in this case C Series modules and accessories>:NI9214.
    Link to Software Support Tool: ftp://ftp.ni.com/pub/gdc/tut/crio_software_versions.htm
    The latest NI-DAQmx driver version, is as above, the NI-DAQmx 15.0.1: http://www.ni.com/download/ni-daqmx-15.0.1/5353/en/  and the latest NI CompactRIO Device Driver is the NI CompactRIO 15.0: http://www.ni.com/download/ni-rio-15.0/5363/en/
    I'd recommend having a look through the Example Finder (through LabVIEW>Help>Find Examples) in particular the "NI 9214 Getting Started.lvproj".
    You could also try http://www.ni.com/examples/ to see if there is anything suitable available. The search can be narrowed using keywords and filtering i.e. Software>LabWindows/CVI
    Hope this helps!
    Rebecca
    National Instruments Applications Engineer
     

  • Audigy 2 zs spdif input bracke

    Hi all,
    I have a standard audigy 2zs pci card with the extra pci bracket that has digital din, midi in and out and coaxial spdif in and out. Im now in need of an optical spdif input and was wondering if I can get a different pci slot bracket with this input ?
    Really hoping I dont have to buy a whole new soundcard followed by the drivers - drivers - drivers routine !
    Any help would be great,
    Mick

    you've on every standard audigy2(zs) card a sp/dif digital in on the card itselves.
    It's the CD-IN digital(or CD-sp/dif) input on the card(internal). So you only need a wire.
    Get a rca panel connector, mount it on the front of your compu-case and connect(solder, so remove connector on one side of the cable and solder it on the rca panel connector(outside=- inside=+) a 2-pole internal sp/dif audio cable to it. Connect the other side of the cabe (with original 2 pole sp/dif internal audio connector) to the cd-sp/dif connector on the card itselves and you're done for say 6 euro(rca panelconnector+2-pole sp/dif internal audio wire)
    then you've a sp/dif digital audio input on the case of your pc, and you can adjust it in the surround mixer with the CD-Digital volume slider...

Maybe you are looking for

  • Cursor and black screen on XFree86 server with DirectFb backend

    Hi all. I need to bring up lightweight XFree86 server with DirectFB as video backend on CE Linux (Intel Set Top Box). For now I've done following: 1.    Compiled and tested DirectFB with multi application support (fusion library). 2.    Compiled XFre

  • YouTube URL's in interactive PDF (InDesign CC)

    Hey guys, I'm wondering if there's a way yet to insert a youtube video URL in an InDesign document, so when exported as a pdf, will play within the pdf. The PDF will be viewed on desktop and mobile devices (including iOS). Right now, I'm finding issu

  • No sound from rented movies....WHY???

    Purchased Apple Tv and set up just fine. Watched stuff from You tube no problem, watched movie previews no problem, watched trailers no problem, listened to music no problem, rented two movies for movie night with family and guess what...a problem. S

  • How to change the Skype Name?

    Hi all, It's been a while since I opened up my skype account. Today, I'd like to have it slightly modified as I grew up a bit. Thanks anyway for your time and help. Regards, Jérôme

  • Possible? Cilent-server multiple responses design problem!

    Hello friends, I have a problem that needs you kind help. I have a client-server problem. The client side is an application, and the server is a servlet/jsp program. Now I want that whenever user sends a request to the server to get data, the server