Synchronizing analog and digital i/o

We're using LabView 6.0 and a PCI-MIO-16E-4 to run our electrophysiology experiments, and have a moderately tricky set of requirements.
What we have so far: four analog inputs and two analog outputs to monitor and control two recording electrodes. We need tight synchronization (within << 1 msec) between input and output so that we can properly correlate the timing of responses with the timing of stimuli during each presentation (which are no more than a few seconds long). We do this by using the Clock Config AIs to have our output side set the scan clock (via the AO update signal through PFI 5) and the input side use that scan clock. This all works and we're happy with it.
What we need: we'd like to independently control at least 6 (preferably more) stimulator devices. The stimulators look for TTL triggers, so in principle we could use the DIO ports to send those trigger events. The trouble is timing: we want the digital output to be tightly synchronized (again << 1 msec) with the analog i/o and to be able to specify the timing of those events to within 100 usec or so. I've put together a very dumb VI that takes as input an array of (bit pattern,time) pairs, then uses a While loop and Wait to manage that event list and Write to Digital Port to generate the trigger events. Since Wait is only 1 msec precision, and since we don't have a good way to synchronize with the analog i/o, we've got jitter in the trigger events of about 1 msec, which is too big.
One solution to the Wait resolution problem might be pattern i/o, but our board apparently doesn't do that. I have vague ideas about synchronizing the start of the digital and analog by setting the analog output to start on a trigger and having the digital side write that trigger value to start everyone, but in practice I haven't got that working yet. (A possibly related problem: though our scan clock is supposedly running through PFI5, if I hook an oscilliscope to that terminal on our BNC-2090, I don't see anything. I'm probably doing something stupid. Can anyone spot it?)
I'm new to LabView (though an experienced C/C++ programmer) and thus would greatly appreciate any advice or examples people could provide.
Thanks much,
Kevin

You are going to need some additional hardware to fully implement your problem. An interim approach would be to digitize the digital lines along with the analog data so that you at least have a corrolation of your existing data. The more complete solution is to use either a pattern generation board from NI or the DIO-64 board from our company. www.viewpointusa.com. With this board, you can "schedule" a digital pattern at a specific clock tick. resolutions to better than a microsecond are possible. The clock tick could come from the same clock that your are using. The reason your scope may not have seen the clock signal on your current setup is that the pulse is VERY short. your scope settings may not have been set to pick it up.
Stu McFarlane
Viewpoint Systems, Inc.

Similar Messages

  • Enabling Simultanious Analog and Digital Audio Signals

    My apple TV runs through a Yamaha receiver. It is hooked up with component video and digital audio cables. I also need to hook analog audio to my receiver so it can play outdoor speakers through zone 2 (which only recognizes analog signals). Zone 2 does not work when I hook both digital and analog cables. Called Yamaha and they said to look for a setting on Apple TV that enables simultanious analog and digital audio signals. Does anyone know if/how this can be done? Or any other way to make the analog zone work without losing digital on the main zone?

    AFAIK, the analog audio on the ATV outputs all the time. The audio output setting in the ATV just determines whether the digital output is Dolby or PCM. Try turning off Dolby in the ATV audio settings and see if that makes a difference. If not, the problem is probably elsewhere.

  • Simultaneous analog and digital waveform read with PXIe-6361 and BNC2120 ?

    Hi there,
    I am trying to collect both analog and digital signals from a PXIe-6361 linked to a BNC2120, using the attached VI. I am running Labview 2011 64bit. This is the first time I am working with digital input. On the 2120 board, I have the digital input BNC cable connected to User Input 1 and wire between the screw terminal of UserInput 1 and the P0.1 (Digtial I/O) screw terminal.
    I have two questions related to this:
    1) When I try to run the VI in its current state, I get the following error:
    Error -89137 occurred at DAQmx Start Task.vi:3
    Possible reason(s): Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
    Property: RefClk.Src
    Source Device: PXI1Slot2
    Source Terminal: PXIe_Clk100
    Required Resources in Use by
    Task Name: _unnamedTask<6>
    Source Device: PXI1Slot2
    Source Terminal: None
    Destination Device: PXI1Slot2
    Destination Terminal: RefClockInternal
    Can anyone point me in the right direction for troubleshooting this?
    2) I would like to combine my regular waveforms and the digital waveform into one array which would then be written to file. I can't figure out how to combine the two different waveform types...can anyone give me a hint on this?
    Thanks for your help,
    Claire.
    Attachments:
    Export Waveforms To Spreadsheet File (1D)_wo extra line.vi ‏33 KB
    Multi-Device Synch-Analog Input-Finite Acq-Analog Start_Claire_wDigitalin.vi ‏105 KB

    Hi ClaireJ,
    Sounds like a reference clock conflict. This KnowledgeBase (KB) talks about this error when using simultaneous sampling. Also, might want to check the device routes in Measurement and Automation Explorer (MAX) as discussed here. Finally, if you are routing your PFI line over a RTSI connection, this error can occur. This KB discusses it.
    As to your second question, this post should help.
    Bill E. | Applications Engineer | National Instruments

  • I am using the PCI-6110E/​6111E with the NI-DAQ software version6.7​.Is there a way to record at the same time analog and digital channels?I​f,ye

    s can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition stops by a trigger?.I am using the PCI-6110E/6111E with the NI-DAQ software version6.7.Is there a way to record at the same time analog and digital channels?If,yes can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition
    stops by a trigger?.
    Thank you for your interest in advance

    s can I have timestamps for each sample?I mean,is there a notion of time information on this board?Finally,is there a way to know ,in the double buffer's case,the number of samples in the halfbuffer which is not full if the acquisition stops by a trigger?.PALE wrote:
    >
    > I am using the PCI-6110E/6111E with the NI-DAQ software version6.7.Is
    > there a way to record at the same time analog and digital
    > channels?If,yes can I have timestamps for each sample?I mean,is there
    > a notion of time information on this board?Finally,is there a way to
    > know ,in the double buffer's case,the number of samples in the
    > halfbuffer which is not full if the acquisition stops by a trigger?.
    Start by looking around the examples that ship with LabVIEW (if you are
    using LabVIEW).
    Also look around zone.ni.com for general data acquisition information &
    examples. A good site.
    Mark

  • Airtunes - Analog and Digital output at the same time?

    Howdy,
    This may seem strange to ask, but can the Airport Express output audio in digital and analog formats at the same time? Is there a strange splitter cable that could do this for me?
    I recently learned that most AV receivers with digital inputs cannot output digital sources to their analog zone 2 outputs. The usual work-around is to connect their digital sources to the receiver by both analog and digital cables.
    Mikael

    I just learned the same thing. Does connecting the digital and analog connections to your reciever work ? Did you connect them to the same source or assign different sources for each? Thanks,

  • MBP video out to TV using DVI - both analog and digital?

    I have a Macbook Pro 10.6.4 2008 Model with details are below on graphics card and display options. I am trying two hookups to televisions which may or may not be possible. Can anyone tell me if my DVI output on the macbook pro is capable of delivering an analog signal to my old sony tube tv with component inputs? Second part of my question is do I have the right dvi cable. I purchased a cable with 24 + 5 pin. This cable does not produce a picture on my analog or digital television. Just snow on the analog and no input on the digital. The cable that came with my macbook pro is a DVI to VGA converter and seems to be an 18 + 5 pin plug....with a few pins missing in the middle. Should I buy another cable with the 18 + 5 pin DVI to component or buy a cable to connect the supplied DVI to VGA converter - VGA to component. Please help I'm confused on many fronts.
    Thanks
    Frank
    Chipset Model: GeForce 8600M GT
    Type: GPU
    Bus: PCIe
    PCIe Lane Width: x16
    VRAM (Total): 256 MB
    Vendor: NVIDIA (0x10de)
    Device ID: 0x0407
    Revision ID: 0x00a1
    ROM Revision: 3212
    Displays:
    Color LCD:
    Resolution: 1440 x 900
    Pixel Depth: 32-Bit Color (ARGB8888)
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Built-In: Yes
    VGA Display:
    Resolution: 800 x 600 @ 60 Hz
    Pixel Depth: 32-Bit Color (ARGB8888)
    Mirror: Off
    Online: Yes
    Rotation: Supported
    Macbook Pro 2.4 Leopard 10.5.2 Mac OS X (10.6.4) Brand New 3/08

    I made an account and am replying to this because i have the exact same computer as you and i was also at best buy at around 3pm wondering the exact same things you were! The DVI port on our MacBooks are different than the standard DVI ports. Freaking weiiiiiiiiiiiiiird! Get out of my head!!!!
    I ended up buying a VGA cable and using the converter that came with my MBP because the DVI to VGA cables at Best Buy had a different VGA than what the MBP has.
    Our goals were slightly different though, I wanted a cable so i can connect the MBP to my Toshiba 42inch HDTV. VGA works but doesnt support 1080p, only 1024x768, which is not a fullscreen resolution. So i will be returning the VGA cable tomorrow and looking for a VGA to HDMI cable, if that exist.
    So, to answer your question, YES, buy a cable that has the same ports as our adapter, or just use the adapter that came with the Macbook.

  • Simultaneous analog and digital video output?

    Does anyone know for sure whether the integrated DVI-I port on a MBP can (or cannot) generate analog (VGA) and digital (DVI-D) signals simultaneously?
    P.S.
    If you are curious why I am asking this question, it is because I would like to have my MBP displaying (same data) simultaneously on the Apple HD Cinema display (DVI-D) and a VGA projector in my office. And if the MBP can output both signals at the same time (i.e., using all pins on the DVI-I connector), then the following clever DVI-I to DVI-D/VGA splitter would do the trick:
    http://www.pccables.com/cgi-bin/orders6.cgi?action=Showitem&partno=01780&rsite=f .01780
    I am assuming if this works at all, then the MBP will dumb down to the resolution supported by the VGA projector on the DVI-D output (just as it does for the internal display).
    Tx, -CR

    Depending on which version of the MBP you have, this may work under Windows. But it does not work under OS X. There has never been driver support for it.

  • Producer consumer with analog and digital inputs and outputs

    Hi everyone,
    I am working on a control system program for some practical test work. Currently I am working on the data acuisition component of the Labview program. My architecture is produced-consumer loops with a que. My system will have analog inputs, analog outputs, digital inputs and digital outputs. It's not a time critical sytem, but I would like all of the data acquisition to be synchronised. I have attached my program as it is at the moment. I am having trouble getting all of the data into the que since I have two data types. Also, I'm not sure if i've synchronised the four read/write sequences correctly. I would greatly appreciate if somebody could take a look at my program and give me some advice. Thanks in advance.
    Solved!
    Go to Solution.
    Attachments:
    control_v2_DAQ loop.vi ‏46 KB

    Robert, the specific error that I get is:
    Error -200462 occurred at DAQmx Start Task.vi:6
    Possible reason(s):
    Generation cannot be started because the output buffer is empty. 
    Write data before starting a buffered generation. The following actions can empty the buffer: changing the size of the buffer, unreserving a task, setting the Regeneration Mode property, changing the Sample Mode, or configuring retriggering.
    Task Name: Heater testing lab digital outputs
    This error occurs at the 'DAQmx write.vi' function. I just want to sent one sample per second, for each channel. I would like the producer and consumer loops to each run once every second.
    I have attached part of my code with just the data acquisition and writing. Any help would be greatly appreciated.
    Attachments:
    control_v2_ML_simple.vi ‏83 KB

  • Acquire both Analog and Digital waveforms from MSO3034 (Tektronix)

    Hi, 
    How can I acquire simulataneously both the digital (16) and analog (4) channels from the Tektronix MSO3034 scope? 
    Thanks

    Klimovitsky,
    I am not familar with how the MSO3034 performs simulataneous acquistion, but the LabVIEW driver for the MSO3034 can configure multiple channels and then read the data from the scope. There are examples with the driver on how to read multiple waveforms.
    Regards,
    Danny F
    Danny Funk -- Staff Product Support Engineer -- InsightCM R&D -- National Instruments

  • Acquire Analog and Digital inputs at the same time with 6025E card

    I have 6025E DAQ card, all the analog channels are used
    up. There are several digital signals, such as flowmeter. Can I acquire both kinds of data at the same time with my 6025E card? Thanks for your help.

    I suggest you search the examples that ship with LV
    Digital
    Find Examples>>>Hardware Input and Output>>>Digital Input and Output>>>8255
    for doing each type of I/O seperately.
    When you have found two examples. Just try to run the two at the rate use need in your final app.
    Post follow-ups Q's here. I am not personally familiar with that deveice so I can not speak from experience.
    I would generally expect that if you sample rate is low (i.e. <10Hz) you maybe happy with the results. If you want to run faster or have the PC do something else at the same time, the timing of the signals form the DIO lines may be suspect.
    So...
    It depends.
    Trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Send out analog and digital signal simultaneously ?

    Is there any way to send out an analog signal and a digital signal at
    the same time? Time is critical in my application. Milisecond delay is
    not allowed. I am using a PCI-MIO-16E-4 board and DAQ 6.0.
    Any information from you will be deeply appreciated.
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    You went a little too far. the while loop I was talking about was the one around the digital write. You've now taken the digital write completely out of the loop and closing it. You can't do anything with the digital when the analog in is running. You've also closed the analog write while the analog in is running. The attached is more like what I was talking about.
    Even with the diagram cleaned up, it sounds like you still have a problem. I don't know the details of your hardware setup but I would start by looking at the analog signal you are generating and verifying that it is correct to your hardware. It would help if you had a scope to troubleshoot. If the signal is correct to the hardware, then trace it through to the connection to the DAQ's analog input. If it's correct there and you still don't see the signal, then you may have wired up the DAQ incorrectly. You haven't specified the connection type (differential, RSE, etc) and I believe it will default to differential.
    Attachments:
    Single Channelv 2_mod.vi ‏535 KB

  • I want to sample syncronously an analog and digital channel and write them to file in array.

    I have a PCI-MIO-16XE-10. I am using the AI01 and a DI01 to recieve the signals. I am monitoring and switch and want to know when it comes on in relation to my analog signals when I post process the data so it is important that the signals be synced and placed in the data array. The attatched vi gives some idea of what I want to do. Thank you in advance for help concerning this.
    JML
    Attachments:
    DigitalAnalogSample.vi ‏34 KB

    I am using 6221 same issue i have .
    i need to accuire pulse of train and its simaltanously triggering the AI.
    Issue is while writing this data to an Excel sheet i am missing some data in-between.
    number of pulses are 870 , this count i am getting incermentally in the output of Counter
    i did "build an array" with this AI and Counter data and writing it to file, there i misses data.
    Attached wiring diagram for reference.
    Pls suggest some method to write data to file for every pulses so that i wont miss any data.
    Joe
    Using Ver. 8.0
    Attachments:
    Wiring1.JPG ‏137 KB

  • Can we acquire the Analog input and Digital Input at

    Can we acquire the Analog input and Digital Input at
    the same time? My sensor data include Analog and
    digital signals.

    Hi Chenchen,
    It usually simplifies things greatly if you use analog inputs to monitor both the analog signals AND the digital signals.
    If you abosulutely HAVE to use digital lines, then the answer is, DEPENDS....
    With the correct hardware and depending on how fast you want to collect data and how closely the measurements have to be syncronized in time, it can be done.
    But first, concider using analog inputs to monitor all signals.
    If you need to move forward with both analog and digital acquisitions, then post a new quesion and give us details on the hardware you are using and the other details we will need to advise you.
    Trying to help,
    Ben
    Ben Rayner
    Certified LabVIEW Developer
    www.DSAutomation.com
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Macbook Pro 4,1 (early 2008) is the DVI port analog or digital?

    I have been tasked with a slide show presentation on a family member's HD TV using my MacBook Pro 4,1. The TV is a slightly older big screen TV without HDMI inputs. I would lke to use the component (YPbPr) inputs on the TV rather than VGA. VGA degrades the image appearance too much.
    I purchased a "ViewHD" HDMI input (Digital) to YPbPr (analog component) Output Switch Converter with the thought of using my 2nd Gen Apple TV (ATV) to connect the ATV via HDMI into the Converter and output the component YPbPr to the TV set. I am looking for a simple, elegant solution as I know this question will rear it's ugly head again.
    First, I could find no resources that discusses the output of the DVI port on the MBP. Is it DVI-D, DVI-A, or DVI-I?
    Is there an adaptor out there that I can use to change the DVI out on the MBP (if it is digital) to HDMI so I don't have to use the Apple TV?
    Any help or solutions would be greatly appreciated.
    TIA

    The DVI connector on a MacBook Pro supports both Analog and Digital output.

  • No DVI signal, only analog and TV-out

    Hi, I bought a new computer a couple of months ago and have been having some problems with my graphic card (MSI FX5900XT-VTD128). Most of these problems disapeard when I re-installed WindowsXP.
    However, about one week before I re-installed WindowsXP my screen just went black when I tried re-installing my video drivers. First I thought that somehow in the pocess of installing the new drivers my video card got overheated or something and broke (highly unlikely, but I have seen strange things in my days).
    Furthur investigation revealed that it was "only" the DVI signal that stopped transmitting. I have since then tried to enable the DVI signal with no luck. I haven't found any options in both the NVIDIA drivers nor the MSI drivers in which to choose analog or digital output.
    My monitor shows that there is a DVI conneciton, but the screen is still black. In most of my tests I would have DVI and TV-out plugged in so that I can make changes in the settings through my TV.
    I'm running out of things to try and I am very open to suggestion, if anyone would be so kind.
    ASUS K8VSE-DX
    A64 3200+ ClawHammer
    Kingsmax SDRAM 512MB PC3200
    MSI GeForce FX 5900XT (BIOS Version 4.35.20.38.14, 128MB RAM)
    WindowsXP SP2
    NVIDIA 66.93 drivers (have tried with MSIs drivers)

    Thanks for your suggestions.
    I already tried the driver solution, and it didn't work... However, I can try even older driver and see if they will enable the cards DVI signal. The problem with the driver solution is that there is no setting for choosing CRT or LCD monitor. In both dual view and clone mode I can only choose between a monitor and TV output... One thing I found strange though, normally at boot time (before the OS loads) I would get both analog and digital signals, but now there is only the analog signal.
    The monitor solution I will try in a couple of days, when I will carry my computer over to a friends place and try it on his monitor. The only problem is that my computer is so damn heavy! :-)
    I will keep trying and let you guys know how it worked out.
    In the meantime, if anyone else has a suggestion, I'm all ears.

Maybe you are looking for

  • Custom home screen for apple tv

    Hello users,   I have set up several apple tv's as wireless interfaces for ipads.  I would like the home page to be a custom page stating the name of our business rather then adds for movies.  I am an apple devotee and do not wish to jail break to ge

  • Does the hp touchsmart 610 have a vga port?

    Does the HP Touchsmart 610 have a VGA Port to connect to a tv?

  • How to add rows in tableview using javascipt

    Hi I had tableview and button in my page.If i click on the button one new row should be appended to the existing tableview. so , how to add rows in tableview using javascipt which are editable? Regards, Pydi.

  • Can New Java 7 File API Path Objs Be Used For Windows Virtual Folders

    Hello, I'm trying to duplicate a JFileChooser's drop-down list containing root directories of the file system. For Windows machines, its combobox lists the roots in a nice tree-like layout. For example: + Desktop   + Computer     + Local Disk (C:)   

  • PO in classic scenario

    Hi All, we are on Classic scenario, all customizing settings are done to create a PO directly in backend. after the approval of the SC its showing item in transfer process, when checked bbp_bw_sc2 for the follow on document details we noticed local P