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

Similar Messages

  • NI-DAQmx Analog out to Cluster how to convert to individual array elements

    I am trying to decompose the cluster that comes from a single channel multiple point anolog input capture. What you get is a cluster that has the starting time, the time interval between samples and the actual analog input data points. What I want to do is after capture I want to have access to the data so I can make calculations on it. When I am done I want to write the data to a spreadsheet file. I can't seem to get the cluster to array function to wire up. I have tried every possible combination of functions and I can't get them to wire up eventhough the input type is a cluster. I have posted a screen shot of my code below.
    I can get this to work with raw data using the express vi that writes to spreadsheet but I would like to know how to do this manually as well.
    Perry
    Attachments:
    unbundle.jpg ‏85 KB

    You don't understand how dataflow works with LabVIEW and an understanding of this is essential. Dataflow means that a function does not execute until all of the data wired to it is present. In your second file, you create the date/time for the header in the second frame of the sequence structure, when the frame completes, it passes out of the structure to the concantanate string function. This is then wired to the Write Characters to File Function which will now execute because all the data inputs are present. This is set to create a new file so it is executing after the Write to Spreadsheet File which is inside the sequence structure. You do not need the sequence structure at all. You do need to provide some dataflow between the Write Characters and the Write to Spreadsheet File. Here's a bit cleaner example of your code.
    Attachments:
    Example with Dataflow.vi ‏190 KB

  • 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

  • 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

  • Mulitple analog out tasks

    I have a question about analog output generation with DAQmx and LabView 7.0.
    I have a NI PCI-6733 analog out card and I want to start multiple task on that card. For example I will begin with generating a continous sine signal on one or more physical channel and after a while output a finite noise signal on another physical channel, but when I try to start the second analog out tasks I get error message -50103 "The specified recource is reserved".
    Is it not possible to start two separate analog out tasks the way I want? If so, what solution shall I use to handle this kind of application? I want to use the eight analog out channels separately and not depending on each other.
    Daniel Olsson
    System Architect
    Endevo
    Sweden

    Hi Daniel-
    As you have noticed there isn't a way to run seperate analog output tasks on your board concurrently.  All operations must be grouped into the same task, so you are left with a choice between two options.
    First, you can simply write full buffers for all of the channels you will output.  This method works well if you know the amount of time or number of samples required for the continuous output at the beginning of operation.
    If you would like to change the operation based on some user input or other condition then the alternative is to stop the overall task, add channel(s) to it, rewrite the output buffer data, and then restart the task.  I have attached one way to perform this second method to this message.
    Hopefully this helps-
    Tom W
    National Instruments
    Attachments:
    AO Add Chan.vi ‏74 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

  • 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

  • Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Why can I not use the channel name, which is obtained from the function of DAQmx Task, as the input of the channel name for the function of Get Channel Information of DAQ?

    Not a lot of details here, but my guess is this isn't working for you because you are wiring in the task to the Active Channels Property and not the actual Channel Name. I have attatched a screenshot of what I believe you are trying to do. The Task has 2 channels in it, so I need to index off one of the channels and wire it into the active channels input of the Channel Property node. Then I can read information about that channel
    Attachments:
    channel_name.JPG ‏69 KB

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

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

  • 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

  • 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

  • Macbook pro keeps cutting out then wont turn on for a while then when it does same thing happens! Does any1 have any idea what the problem is?

    Macbook pro keeps cutting out then wont turn on for a while then when it does same thing happens! Happens with charger plugged in or not and green charge light stays on even when it cuts out and cant be turned on! Does any1 have any idea what the problem is?

    Try SMC and PRAM resets:
    http://support.apple.com/kb/HT3964
    http://support.apple.com/kb/ht1379
    Ciao.

  • HT1430 My IPAD 3 [5.1.1 (9B206)] has a problem. - It restarts every three (3) minutes: it goes out then comes back but lost the previous page (auto lock is set to 15 minutes) - It can no longer connect to the mobile network orange except Wireless (WIFI)

    My IPAD 3 [5.1.1 (9B206)] has a problem.
    - It restarts every three (3) minutes: it goes out then comes back but lost the previous page (auto lock is set to 15 minutes)
    - It can no longer connect to the mobile network orange except Wireless (WIFI)

    Not normal. Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

Maybe you are looking for