Digital analog synchronisation

Hi
We have a system using a PCI6052-E which is set up to read two analog channels
at a sample rate of 133kHz. We now need a digital input to be synchronized with
the analog channels so that we know on which analog sample a digital transition
occurred. Is this possible using the in built counters or is there a way to tie
the analog sample clock to a digital sample clock? Will either of these
options limit the maximum sampling rate we can run at?
Any suggestions greatly appreciated.
James

Brief outline of concept:
- Configure counter to use analog sample clock as its timebase source (the signal that causes count register to increment).
- Configure counter to use encoder pulse as its sampling clock (aka "Gate" for buffered measurement in traditional NI-DAQ).
- Start counter task before analog input task, so that counter sees every sample clock edge.
- A little processing.  Example: find out the encoder position (in # of pulses) at ai sample # 123456.  Use function with name something like "Threshold 1D Array" which has an output called "fractional index."  Feed in the array of buffered count values and the number 123456.  Round the fractional index down to the next lowest integer.  That rounded index value is the encoder pulse count you want.  Scale as needed.
There's also a way to capture a count with every ai sample, but it's going to give you ~1000 reps of each count value between increments.  Less processing though, and possible preferable if you need to do calcs on-the-fly.  Might require use of DAQmx and "duplicate count prevention" property.
-Kevin P.

Similar Messages

  • Convert a rpm waveform to digital/analog tach signal. Sound & Vibration

    Hello,
    my question is: How to convert  a rpm waveform to
    digital/analog tach signal for use with SV application?
    Or is it possible to modify the SV - VIs for the use of
    a rpm waveform or a speed signal?
    Thanks a lot for coming answers.
    Thomas Nuding

    Typically an RPM waveform is the analog view of a tachometer, such as a proximity probe over a key or keyway, or an index pulse from an electric motor.  In most rotor dynamics applications, the phase of the tachometer waveform is compared to the phase of other waveforms, such as vibration, to determine the angular position of the shaft when the other waveform occurs. 
    The sound and vibration tools have a function for calculating RPM from an analog tachometer waveform.  The order analysis toolset go further to add a counter as an tachometer input.  The OAT tools also allow for selection of rising edge or falling edge and voltage level for the "trigger".  A time instance is recorded when the edge occurs.  This time instance is used for phase measurements and for resampling the other waveforms into the angular domain, ie. 360 measurements per revolution. 
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Audio Digital Analog Converter bit resolution

    Hello ! i´m looking if I can use IPHONE to make my investigation project. Someone of you know which is the audio Digital Analog Converter bit resolution for a normal audio conversation? 13bits? thank you very much

    MonoPrice.com has a digital to analog converter for around $25 although it looks like it is on back order. I would give them a call anyways. Don't get fooled by their prices, they are fast and cheap but good and the place to buy all your audio and video cables. I wired up my sisters entire home theater for less than a quarter of what I payed for my first HDMI cable which I didn't pay much for either.
    http://www.monoprice.com/products/product.asp?cid=104&cp_id=10423&cs_id=1042302&pid=6884&seq=1&format=2

  • Capturing Digitized Analog Video

    When sending digitized analog video to iMovie or to another Video editing software, the very first image is clear and bright (for only a split second) then a shade of gray comes over the preview/import window and the rest of the imported movie is grayed over.
    Workflow sequence is:
    1. VCR Player
    2. ADVC-110 DV Converter
    3. Mac Pro
    4. iMovie or other video editing software
    My first try at converting a VHS tape to digital worked fine. This second tape . . . not so good.
    Thanks in advance - bob

    Paul, when I purchased the Plextor unit, VideoStudio did not come with the package. I notice on the Plextor web-site that the current product does have VideoStudio bundled with the converter. I also notice that both InterVideo WinDVD and VideoStudio are Corel products. Are you telling me that VideoStudio would not conflict with PE7 whereas WinDVD would?

  • Set values for the Lock-In Amplifier's Digital Analog Converter Channel?

    If I let my user have the freedom to select whatever values they want to select in order for it to show up as the output value for the Digital Analog Channel then I cannot understand why use ibwrt(...) and ibrd(...). Because ibwrt is going to write a specific voltage at the specified channel since the manual for the Amplifier states you must input the string for writing output voltage as DAC2 3000 (the 2 signifying the channel and 3000 - the millivolts). If this hard coding occurs by using ibwrt then how can I write my code so that the user has the capability to change the voltage value and the channel to the one they want? Thanks in advance.

    Do I need a Fmt and ibwrt for both DOutput and VOutput? Because DOutput is indicative of the channels 1, 2, 3, 4 in the Lock in Amplifier and the VOutput is for the amount of volts the user can set (i.e. write to the instrument). Also I found this on the following NI website regarding filling in the value of the write buffer: Write Buffer Value. This website signifies that one must use \002 and end with 003\ which I am not sure I even need for this instance of initializing the writeBuffer[8]. Also I used [7] for the writeBuffer because I thought arrays went 0, 1, 2, 3...so on therefore writeBuffer[7] will give me space for 8 bytes? Is that an incorrect assumption? Lastly, here is my modified code according to the changes you mentioned and it still is giving me Non-Fatal Run Time Errors and not communicating. Is there anything else I am missing out on which I can't find. Seemed like I may be making this code much harder than it needs to be. Thank you for your time.
    Sincerly,
    Attachments:
    SETDAC.c ‏2 KB
    setdacwin.h ‏2 KB
    setdacwin.uir ‏3 KB

  • Connect digital analog ground

    Greetings.
    I have a mixed-signal Multisim design which I have forward annotated to Ultiboard.  My Multisim circuits use 2 different grounds - net 0 and net DGND.  For simplicity, I would like to prototype a first version of the boards with the grounds logically connected, so I don't need to worry about ground loops being created by the fact that I'm using separate digital and analog lab supplies.
    I have checked the box in Multisim under "Sheet Properties -> PCB -> Connect digital ground to analog ground."  I have transferred my design to Ultiboard 11 and specified a 4 layer board.  Layer 3 is my ground plane, with a large copper area connected to Net 0.  While placing components and vias on my board, I'm noticing that the thru-holes and vias I define as connected to Net 0 appear as I expect - with the "+" thermal relief on layer 3.  However, vias logically connected to DGND are appearing on layer 3 with large areas of copper removed (I've specified 12 mils clearance on each copper layer).  If I change the copper area on layer 3 to net DGND, instead of net 0, I notice the reverse situation.  All of my analog ground vias and thru-holes have copper cleared away, and the DGND vias are now filled.
    I don't believe a logical connection exists between net 0 and DGND in the forward annotated netlist.  Is there some way I can confirm this?  Did I miss a step in the process while trying to connect these two?

    Thank you for your reply, Mark.
    I was going to upload my Multisim project file, but then realized a lot of my components are now in my Corporate Database, so I can keep vendor and manufacturer-specific part numberings and inventory quantities all together in the same place.  Instead, I took some screenshots and created a .pdf file.  I uploaded the pdf file to transferbigfiles.com, here.
    First, I snipped some sections of my design to illustrate the current state of things.  On the first page, you can see that my default sheet properties are setup such that digital and analog grounds should be connected.  I have an FMC-LPC connector "J17" in my design, with the "DGND" wired to it.  The J17B pin actually represents about 40 different SMD pads on a VITA 57 connector.  The DGND component is from the Master Database under Power Sources, though I think I renamed it from "DGND" to "GND."  As you can see, Ultiboard is showing a lot of DRC errors right now because the vias are set to assume net "0" while the SMD pads were exported as connected to net DGND.
    Next page, I unchecked the box "Connect digital ground to analog ground" and forward annotated the changes.  Ultiboard found no differences.
    Next I thought that perhaps my renaming of the default Refdes from "GND" to "DGND" could be the problem.  So I went through my design and replaced all of my "DGND" triangles with the DGND component from the Master Database.  As you pointed out, though the component is named "DGND" the Refdes is actually "GND."  I left the sheet properties as is, with digital /analog grounds not connected.  When I forward annotate the changes, I observe what I expect - the DGND connections are removed and replaced with GND connections.  (Next page) The SMD pads are now logically connected to the net named GND instead of DGND.
    Finally, I went back to Multisim and tried combining the nets "GND" and "0" automatically by selecting the check box in Sheet Properties.  Unfortunately, when I forward annotate, Ultiboard detects no changes.
    Following are 2 relevant sections of my .ewnet file I opened in a text editor, after my latest changes.
    (net "0"
    (trackwidth "6.00000000e+000")
    (trackwidth_max "3.93700787e+002")
    (trackwidth_min "6.00000000e+000")
    (clearance_to_trace "6.00000000e+000")
    (clearance_to_pad "6.00000000e+000")
    (clearance_to_via "6.00000000e+000")
    (clearance_to_copper "6.00000000e+000")
    (routing_layer "1111")
    (net_GUID "{8704ACB4-9808-4086-9C22-02206D379B13}")
    (net "GND"
    (net_GUID "{8EFCFB7F-F038-4362-A59D-667354159F44}")
    Message Edited by pcurt on 02-22-2010 10:48 AM

  • Splitting digital/analog audio outs?

    I'm wondering if there's a way to split the audio out of an Intel Mac Mini into both analog and digital outputs. I'd like both active at the same time.
    I've got a Mini in my home theater rack now, which is great. To keep things easy to use for the rest of the family I have the audio and video going straight to the TV. The TV only has analog in for audio. But I also want to run optical digital audio to the receiver to take advantage of the big speakers when appropriate (not used every day).
    Conceptually it might need just a splitter, but I've never seen such a thing.
    Thanks!

    I'm pretty sure you won't be able to do this in a trivial fashion. The mini will detect what you have plugged into it (analog or digital) and will only output the proper data.
    What I have at home to work around this issue to route digital content to my 7.1 receiver yet stereo to my whole house cable channel is to take the digital out from my receiver and pipe it through a device that converts the digital signal to analog.
    The only thing I've been able to find to do this for a somewhat reasonable price is the Thrustmaster. Its quite a hack as this is intended to be used with a set of headphones but it works pretty well.
    Kevin
    G5, G4s, Mac Book Pro, DC mini   Mac OS X (10.4.6)  

  • Digital, analog, what?

    My turntable (Stanton STR8-80) has a S P/DIF digital out and two RCA audio outs (red and white). I would like to get an album of mine into digital form using my macbook.
    Which cables/ports do i use for this, if it is possible?
    Thanks,
    Collin

    The S/PDIF is a coaxial digital output, not an optical one. I'm not sure what type of cable is necessary, as I don't know the architecture of the audio input on the MacBook.
    You definetely don't want the amplified signal from your receiver, you do, however, need the receiver/preamp line level (+4dBu) signal from the receiver after the phono stage and proper grounding.
    An S/PDIF signal from the turntable will not sound right if recorded directly, since the compressed and high-pass-filtered analog audio information on the LP hasn't been flattened.

  • Mini digital/analog audio output

    I'm using my Mini for itunes music (AIFF) with my home entertainment system. It's pretty high end and I want my receiver to handle the DAC. Is the HDMI output from the Mini digital? Can I make the output digital?
    Should I consider going out the USB to a DAC and then to receiver?
    Thanks

    Should be HDMI. It's got the highest bandwidth -- it can basically pipe 8 digital audio channels uncompressed -- and you can rely on the DAC in your receiver or pre-amp to do the work. If your setup is good, the DAC in your receiver / pre-amp should also be good.
    Others may be able to speak to the USB > DAC question. I'm not an terribly well informed, but USB has got lower bandwidth than HDMI, and is not really tuned for A/V delivery. That said, I've read some good reviews of USB > S-PDIF / Analog Stereo DACs.
    Finally, I think that S/PDIF is going to be pretty heavily compressed for anything above simple stereo, so if you're interested in high performance 5:1 or better, it's probably not ideal.

  • Digital analog in one queue

    I want to create one queue for both digital and analog data. The attached vi has two. How would you get the 2 different data type feed to one queue? It would require a digital waveform and an analog waveform to get the data into one queue. Any ideas? I am using cDAQ-9172 and NI 9401 and NI 9205
    Message Edited by bassinbc on 05-21-2009 11:42 AM
    Solved!
    Go to Solution.
    Attachments:
    Script Chart1.zip ‏51 KB

    Ravens Fan wrote:
    Please mark Jim's post as the the solution, then. 
    I thought he didn't like my poetry.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • X-Fi Simultaneous Digital & Analog out

    On the X-Fi Xtreme Music, is there a way to simultaneously have both Digital coax output via the Flexijack port and Analog stereo output via the Line Out port.
    I have found that I have to uncheck the "Enable Digital I/O" button in the "Advanced Control for Play Control" control panel for the Line Out port to work.
    Is there a way to turn on and off with a hot key/keyboard shortcut the "Enable Digital I/O" button in the "Advanced Control for Play Control" control panel when using the X-Fi.

    i have the same dilemma as http://www.yamaha-uk.com/av_amps_receivers/?product_id=4 and plan to buy the x-fi elite pro when its released in england sep 4th
    i already have my audigy platinum ex connected to rx-v4600 via spdif out
    sounds great on movies but the EAX game problem doesnt suit me very well seeing tho,i do watch movies on my pc but i play games more and have the problem of already having a zalman <FONT color=#c4d84>ZM-RSA headphone amp connected to the back of the audigy via analogue connections .
    <FONT color=#c4d84>And i dont want to use the pre out on the amp for the headphones
    http://www.zalman.co.kr/images/produ...-RSA_ins_4.gif
    how would i go about finding the right stuff ?
    could somebody point me in the right direction for the parts/cables, i need for my audigy and a future x fi elite pro owner to get this card co-operating on ALL channels with my reciever in games while running the ZM-RSA headphone amp
    and will it be safe to split the analogue connections to two outputs from the audigy and x-fi series?
    could anyone tell me about the DTS 60 but i still will have the problem of splitting the analouges
    Message Edited by Codey47 on <SPAN class=date_text>08-23-2005 <SPAN class=time_text>04:20 PM
    Message Edited by Codey47 on <SPAN class=date_text>08-23-2005 <SPAN class=time_text>04:22 PM
    Message Edited by Codey47 on 08-23-2005 04:43 PM

  • How to make digital/analog outjack woorking with analog spea

    Hi,
    I use soundblaster audigy .
    I try to get my analog speakers working with the analog/digital outjack. I connected the speakers to this outjack but no sound at all. I can switch at advanced volumesetting to digital only but I just get some wired static noise. If disable analog only on advanced setting of my volume control the speakers are comletely quiet.
    I know there is anohter outjack for analog speakers on this card but this one is used already for my first pair of speakers.
    can anyone help me?
    thanks a lot.

    noahhath wrote:
    I try to connect two pair of analog speaker to my sound card. With my older soundblaster card I was able to do this.
    But you might be right. However I pass my problem right now with a splitter. It's not the best solution but it works somehow.
    In addition to what Jason say, you could also try connecting your other speaker to the LIN_OUT2 jack of the sound card and set it up like a 4. speaker. Remember to enable the CMSS feature from PlayCenter.

  • Any way to split digital/analog audio?

    I'm wondering if there's a way to split the audio out of an Airport Express (or an Intel Mac Mini) into both analog and digital outputs. I'd like both active at the same time.
    The reason for the Mac Mini is easier to explain. I've got a Mini in my home theater rack now, which is great. To keep things easy to use for the rest of the family I have the audio and video going straight to the TV. The TV only has analog in for audio. But I also want to run optical digital audio to the receiver to take advantage of the big speakers when appropriate (not used every day).
    Conceptually it might need just a splitter, but I've never seen such a thing.
    Thanks!

    I did a Google search and couldn't find any adapters that would allow this. I'm not that familiar with the connector but theoretically it is possible. It might be just a matter of time before someone makes one. You might try again later. In the mean time you could have both cables routed to the Mac Mini and just swap them when you you want to use the other speakers, inconvenient but not to bad if you don't have to do it frequently.

  • Digital & Analog output at the same time

    Good day.
    I have thought about buying speakers that require Toslink (digital). But I also have speakers which can be plugged into an analog (3.5mm). I have all the sockets on the motherboard required but I do not know if I will be able to play audio from all speakers simultaneously.
    My motherboard: MSI Z77-s01.
    I'm running Windows 7.

    My recommendation is that you need some training. You didn't mention what you native tongue is, but if yoiu don't feel comfortable in English you should check online or with your local NI office for tutorials. In terms of the code you posted, the logic is seems to be manipulating the individual digital io lines to step the motor. This will work, but you need to get rid of the express VIs, in this situation they are very inefficient and may have bad side effects. 
    First rather than manipulating 4 individual bits, modify the code so you are working with one 4-bit port. This change will be more efficient and make it easier for you to identify logical errors in your stepping logic. What you want to do is initialize the DAQ one time outside the loop, manipulate the port outputs as needed inside the loop and then close the DAQ task when the loop finishes.
    How fast are you needing to step this motor? A PC will limit your speed and is very nondeterministic in terms of response time.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • SONY Handycam DCR-HC19E, Capable of Passing Digital Analog Signal?

    Hi
    I wondered if my Sony Handycam DCR - HC19E (miniDV) is capable of sending an analog signal through firewire to my computer as I wish to monitor my progress on my tv.
    And:
    Should I be on record or play/edit mode on camera?
    What to do if I wish to playback my videos on FCP 5?
    Any help would be greatly appreciated.

    I don't know what settings on the camera, but this is the playthru checklist:
    #8 External Monitor Viewing.
    Shane's Stock Answer #8:
    A simple path is mac > firewire > camera or deck > rca cables > tv
    Then start up your camera and tv, then open fcp.
    Then go View > External video > all frames
    Video playback should be Apple firewire NTSC (If you are using an NTSC set)
    Audio playback should be Audio follows Video
    Techinially, this should send synched video to your TV
    If for some reason you can't view your timeline on your external monitor, there are a few things to try:
    1) Make sure that the camera/deck is connected and powered on BEFORE you open FCP.
    2) In the Final Cut Pro menu select AUDIO/VIDEO Preferences and make sure your signal is being sent out thru Firewire DV.
    3) Go to the menu and select VIEW>EXTERNAL>ALL FRAMES.
    4) Click in the % box above the image and select FIT TO WINDOW.
    5) Go to VIEW->refresh A/V devices
    6) Make sure the Log & Capture window is closed
    If you want it to play in both the canvas and the external monitor you need to go to the FINAL CUT PRO menu and select AUDIO/VIDIO settings and make sure MIRROR ON DESKTOP is selected under the PLAYBACK OUTPUT section
    Shane

Maybe you are looking for

  • Help with histogram related query

    Hi there, I'm trying to collect data through a query to draw an histogram. Its between lag count and user count. Here's my query, select (Y.lag_range /10) * 10 as range_start, (((Y.lag_range/10) + 1) * 10) -1 as range_end, sum(Y.user_count) as user_c

  • Partition pruning

    Hi, We use Oracle 11.2.0.3 and are being aksed to considering implementing partitioning as follows: We will have a lrage fact table -several billion records structure is product_id, various other dimension _keys and the measures. It is a star schema

  • Desktop accidentally flooded with jpegs with dates in 1970,1980 I can't open them and if I trash them there are warnings. What can I do?

    I was moving some photos to desktop and accidentally started the computer flooding the desktop with jpegs. I turned the computer off to stop it continuing. These jpegs cannot be opened and if I try to trash them it says they are being used or that it

  • How to Obtain Listing of Crystal Reports History Limits

    Post Author: djp CA Forum: Other Does anyone know of a way to extract a listing of the History Limits settings for all reports from the database?  I've looked throught he SDK documentation and I am unable to determine where that information is stored

  • Customising Registration form

    Can anyone help me to show 'review your order' on the registration buy form? My client would like it to look like it does on this site: www.hibermate.com Three columns, 3rd being 'review your order'. Can anyone help me to achieve this? They would als