Simultaneous Analog In and Analog Out

How to Output on Analog Out and read Analog In at the same time.
I am using a VC++, NIDAQ 7.01.
No LabView.

Greetings,
The following example demonstrates how to perform synchronized analog input and analog output:
Synchronizing Analog Input and Output
The example was written in CVI, but modifying it for use in VC++ is fairly straightforward and documented within the code.
Good luck with your application.
Spencer S.

Similar Messages

  • Simultaneous analog out

    My customer has an NI PCI-6111 and is attempting to set both AO channels to update at 1 MS/s simultaneously, but the output signals keep drifting apart. It is my understnading that since these channels each have a D/A converter, there shold be no problems with the signals drifting. Is this correct? What is the best method of insuring that the signals stay synced? In LabVIEW?

    Hello;
    You are right on your consideration when you say that the 6111 has one DAC per channel. Once you start the generation on multiple channels, all channels will be in sync.
    That is sounding like the specific board you have is presenting some sort of malfunction.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Simultaneous analog output 1k sine wave and data acquisition

    Although many topics of simultaneous analog output and input can be found in NI Developer Zone, I have not found a case similar to my project. I'm trying to generate a 1kHz sine wave by using the analog output of NI DAQPad-6070E, and acquire one channel input signal simultaneously. I found most of the examples can not work properly above 100Hz. Any suggestions are welcome. Thank you.
    Jian

    I have sucessfully solve the problem when I observed the increase of
    scan backlog number. Simply increase the buffer size of AI/AO and you
    can make the 1kHz sine wave output and data acquired properly.
    On Tue, 3 Feb 2004 09:03:07 -0600 (CST), jujian wrote:
    >Although many topics of simultaneous analog output and input can be
    >found in NI Developer Zone, I have not found a case similar to my
    >project. I'm trying to generate a 1kHz sine wave by using the analog
    >output of NI DAQPad-6070E, and acquire one channel input signal
    >simultaneously. I found most of the examples can not work properly
    >above 100Hz. Any suggestions are welcome. Thank you.
    >
    >Jian

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

  • Looking for Analog Out example using DMA and C++; cannot find sample "GenMultVoltUpdates_SWTimed"

    Looking for example for Analog Out to multiple channels using DMA and C++.  Found reference to sample "GenMultVoltUpdates_SWTimed" which I do not have and cannot find.

    Hello Gerry,
    When you install DAQmx, there is an option to install
    support for Measurement Studio.  When you
    select this option, it will install these examples onto your hard drive.  All of the examples can be found at the
    following location: (C:\Documents and Settings\All Users\Documents\National
    Instruments\NI-DAQ\Examples\DotNET2.0\Analog Out\Generate Voltage)
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Xtrememusic: Digital out or Analog out, Advantages Disadvanta

    I have a Xtrememusic card, that has a wonderful sound using the analog outputs to 3 Sonic Impact T-Am
    ps.
    Now, I'm curious about using the digital out to a Panasonic SA-XR55 digital amp/receiver. I know I would lose the CMSS, but the Panasonic can do it's own synthesis of surround. I'm interested in knowing from users about the pros and cons of using the digital out or analog outs. I know the quality of the Xtrememusic DACs are good, and I read that the Panasonic?has a excellent sound output as well. If I choose to use the digital out, I could just use?the motherboard onboard digital out, although only in DVD modes does it do a true bitperfect pass through. In stereo mode, it's still using some of Windows to mix the sound. I could also use the digital out of the card. Seems like a shame to bypass all of that nice analog the card is capable of?
    Oh yeah, anyone know if a old Creative Li've 5. I/O panel will work with a Xtrememusic card??Thanks

    wiersch,
    I believe you might have Skype set to auto-configure your soundcard. Try this, open Skype and go to it's audio setting menu. Disable the option 'Let Skype adjust my sound device setting.'
    Jason

  • How can I generate tones with usb 6008 using analog out?... tia sal2

    Greetings All
    I've been looking at the example Sim Phone.vi that comes with labview and would like to generate similar tones out of our usb 6008 device. I can get a very faint sound out of our usb 6008 using the example Gen Multi Volt Updates-SW Timed.vi Does anyone know the best way to alter Sim Phone.vi to have the sound come out of the Analog output of our usb 6008 device. ( I have a small speaker connected to the Analog out on our USB 6008)
    PS: we are using labview 7.1
    Does anyone know the Analog output frequency range of the usb-6008? Is this possible?
    TIA
    Attachments:
    Gen Mult Volt Updates-SW Timed.vi ‏78 KB

    Hi sal2,
    As stated earlier you could most certainly use the USB device to generate sound, but that would be at a max update rate of 150 Hz. While according to Nyquist theorem you could get frequency information for signals below 75 Hz, you may notice that the quality of the data in that spectrum to be very low due to having so few samples.
    While technically possible to produce you really should look for a device with a faster Analog Output update rate. I would look for a device that supports Analog Output at least 10x the maximum frequency that you want the user to hear. Some great, yet lower cost products, would be the M-Series line of products. They would give you the performance that is really needed in the type of application that you are talking about.
    If you still want to use the USB Device, then you would need to use code similar to that found in the example Gen Mult Volt Updates-SW Timed (Found here: C:\Program Files\National Instruments\LabVIEW 7.1\examples\daqmxbase\Dynamic\ao).
    Best of luck getting your system together,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • X-series analog out fifo preload

    i am porting an m-series driver to x-series, and have a quick question about analog output.
    i have found that I can preload the aout FIFO by writing sequential data to:
            device.AO.AO_FIFO_Data_Register.writeRegister(val);
    however this is a 32-bit register, and through trial and error I have found that i have to write two values at a time:
        for(int i=0;i<preloadCount;i+=2)
            u32 val = buffer[i] & 0xffff;     // buffer has correctly scaled DAC values, as 32-bit ints
            if (i<(preloadCount-1))           // in case preload count not divisible by 2
                val |= buffer[i+1]<<16;
            device.AO.AO_FIFO_Data_Register.writeRegister(val);
    is there a way to write one 16-bit value at a time to the analog out fifo?
    thanks,
    --spg
    scott gillespie
    applied brain, inc.
    Solved!
    Go to Solution.

    additionally, is there a way to DMA 32-bit values to analog out, without them being interpreted as pairs of 16-bit values?
    for analog input, both problems (writes to the fifo, and dma to the fifo) are solved by setting the fifo width:
    aiHelper.programFIFOWidth(nAI::kFourByteFifo, status)
    but so far I have not found a similar mechanism for analog output.  
    national instruments guys, can you comment?
    thanks,
    --spg
    scott gillespie
    applied brain, inc.

  • Trying to do a simple analog out in LabView8 imported form LV7

    I have a PCI-6733 DAQ board and I can set it's analog outputs in
    'Measurement and Aquisition' so I know the hardware is working
    correctly.  I can also create a simple VI in labview 7 to set
    those analog outputs.  However, I dont' see any of the same
    components in my LV 8 installation.  I cannot figure out how to do
    an analog output in version 8 and if I try to simply import my LV 7 vi
    I get an error when it tries to load 'AO Update Channel.' 
    Specifically, it says, 'AO Update Channel is not a valid Labview file.'
    ANy idea what is going wrong?

    You may have 7.4.1 installed but if you installed LabVIEW 8 after you installed it, you probably don't have the VIs in the LabVIEW 8 folder. If you re-install 7.4.1, then you should be able to proceed.
    To set an analog output to a fixed value, it's just a DAQmx Write (analog DBL 1Chan, 1Samp), with a DBL wired to the data input.
    Message Edited by Dennis Knutson on 04-28-2006 08:32 AM
    Attachments:
    Analog Out.JPG ‏8 KB

  • FCP 4.5 DV to DSR-11 to Analog Outs to TV?

    I got a DSR-11 recently and can't get this to happen. I want my playback from FCP (DV) to go through firewire to the DSR-11, then to the DSR-11's 3 RCA analog outputs (1 video, 2 audio L & R) and playback on my TV, which I hope to use as an NTSC monitor for now. I can't get this to work.
    I connected the analog outs of the DSR-11 to the inputs on the TV and was able in that way to select the various settings in the DSR-11 menus.
    I also captured from a miniDV tape in the DSR-11 to FCP 4.5 successfully.
    I've tried new RCA and firewire cables. But, playback from FCP still gives me nothing on the TV. What else should I do?
    FrankELF

    In FCP, make sure View->External Video is set to "All Frames." You may also want to do the "Refresh AV Devices" thing. Oh ... and make sure that you have the palyhead on a clip instead of a slug or Timeline gap (which will show as black).
    I don't have a DSR-11, but on my DSR-20s, there's a menu setting for EE mode that has to be turned on for the Firewire signal to be passed on to the analog outputs.
    Since you're seeing the VTR's menu on the TV monitor, you can assume the monitor is set to the porper input.
    -DH

  • Read spreadsheet file for Analog Out Profile using DAQmx

    I am trying to read a .txt file in, then output the Analog out profile (Daqmx) vs. time.  The first column is time is (ms) in .001 sec increments.  The second column is the Analog out voltage I want to output.  I want to read the profile in, and ouput the a Analog out voltage incrementing in .001 sec intervals (or whatever the time increments are in the .txt file).  The problem I am having is, it reads in the whole file and outputs it in a fraction of a sec, instead of incrementing by the time.  I attached a screen shot of what I have.  Any help would be great. Thanks 
    Attachments:
    screen shot read.jpg ‏75 KB

    You are reading the timing but not doing anything with it. You've specified Analog Wfm 1Chan NSamp for the DAQmx Write but you did not create the waveform data type. Use the Build Waveform function on the Waveform palette and wire in your array to the Y (waveform component) input and the time interval to the dt input.
    Message Edited by Dennis Knutson on 04-06-2006 08:56 AM
    Attachments:
    Build Waveform.JPG ‏6 KB

  • 6025e daqmx analog out then input

    I have a 6025E card and I am trying to output a triangle wave on ao0 and read it back on ai1.  it used to work until i added three more analog inputs then i get buffer errors.  I tried changing the analog out to interrupts but it says that property is invalid.  i went into MAX and output a sine wave on ao0 and when i read it back into ai1 in the test panels i a sine wave with a bunch of steps.  Is something wrong with my card? i tried to reset it with no luck.  I even tried the shipping examples and get property invalid on the interrupt and it doesn't like the sample clock?
    any suggestions ?
    James
    Message Edited by James R on 11-16-2006 10:57 AM
    - James
    Using LV 2012 on Windows 7 64 bit

    Hey James,
    Is there a particular reason you are want use interupts? DMAs are generally much faster. If you are getting buffer errors, try increasing the size of the buffer using the DAQmx Configure Output Buffer.
    Let me know if that works for you.
    Cheers
    Malay Duggar
    NI

  • Analog out problem

    I am generating pulses ans sending them through the analog outs. I have the outs connected to the oscilloscope. When i run my prog. both the analog out channels shift up by 5v. When i stop the prog it remains in the shifted 5V. Now i goto the Measurements and Automation software and say test on either one of the analog out and it falls back to zero. But when i run the prog again i find the output shifted by 5V. Can anyone tell me why its happening this way? Thanks!

    You could upload the vi in question so we can see what's up.
    Sounds like you aren't putting a "reset" segment into your program, such as a frame at the end that sets the AO's to 0V.
    Run vi->Set AO to 5V->Do stuff->Set AO to 0V->Shutdown vi.
    MAX well reset the AOs when it opens up, so you need to do the same within your program.
    2006 Ultimate LabVIEW G-eek.

  • How to drive Analog Out For Hbm MX879

    Hello,
    I use labview with Hbm 879 Module. I try to drive an analog out directly from labview. I can't find any Vi for this in the Hbm library. I asked directly to hbm but such vi are not developped and there is no ETA.
    Does someone have done this kind of feature on hbm analog output and can share his vi ?
    Thank's.
    Jacques

    Hello,
    I didn't find this instrument driver on the third party driver page :http://www.ni.com/downloads/instrument-drivers/f/
    If this material support SCPI command (like *idn?) may be you can try to send those command directly with VISA functions. Also may be the commands are given in the user manual of the HBM 879.
    Best regards
    Jean-Luc D. NI France
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées techniques : du contrôle d'instruments aux bancs de test
    Du 4 au 13 juin : Grenoble - Pari...

  • Bad point on FP analog out module

    When moving through the 4-20 mA range on an FP analog out module by .1 mA increments. I am seeing several specific points ex. 5.2 mA or 11.3 mA. That appear to short the module to 20 mA. I have confirmed this both with FP explorer and a DVM. The points are reproduceably bad. In addition the only way I have succeded in solving this is by switching the CFP 20-20 head module. The problem is that I have many systems to field and I have now seen this on 3 seperate heads. I have even tried different power supplies. any feedback would be great.

    Shock,
    So you have seen this issue on multiple systems and when you replace the cFP-2020 controller the issue goes away? When you say it shorts the module to 20mA, do you mean you tell it to output 5.2mA and it then actually outputs 20mA? I would have guessed that this issue has to do with the I/O module. Does reformatting a problematic controller resolve the issue or does it still demonstrate the behavior? Also which specific cFP I/O module are you seeing this behavior from?
    Ames

Maybe you are looking for