How to building a multi-channels analog output task in visual c++ 6.0 (without Measurement Studio)?

Hello!
 I have a PCI 6251 card, and using DAQmx C function to generate a wavwform. (single channel ).
But, how to creating a multi-channels analog output task, and had a different frequence in each channels?
Thanks.

This is getting to be a common question!
The answer is, you can't.
If the rates have common factors, you can use a higher overall rate. The slower waveform will simply have extra points in it to make up for the higher update rate.
John Weeks
WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com

Similar Messages

  • Multi channel analog output

    I'm trying to make analog output pulses of microsecond order
    via 3 output channels.
    I try Daqmx write for that goal..and I can make single channel
    pulse with pulse vi in Signal processing category
    But ,I have difficulty in make pulses for more than
    two channels.
    When I try , Labview always make error(that I can't understand)
    or do not make signal at all.
    I also tried to make analog output for DC ,and it works.
    I don't know,however, how I can modify this for pulses.
    I will link screen captures of my labview program.
    http://www.mylv.net/include/file_download.asp?file​=/qna/data/PULSE.JPG&size=80854
    http://www.mylv.net/include/file_download.asp?file​=/qna/data/MLTI(0).JPG&size=63567

    ok i made you a small application in LV 8.2
    it might not work at first try, so you will have to play around and modify as needed.
    you have an array that define the pulse width and relative phase for every channel (every line of the array defines a channel, in order). it is then transformed into a 2D data array, and sent to buffer.
    this approach will work as long as there is a proportional relation between the rate of output and the width of pulses, to avoid underbuffer problems.
    ifyou have to update lots of channels lots of times, then you might want to cycle your writing trough the buffer.
    dont forget to write in the "physical adresses" control the ful list of channels used.
    Message Edited by Gabi1 on 11-29-2007 01:19 PM
    ... And here's where I keep assorted lengths of wires...
    Attachments:
    multichannel pulses.vi ‏35 KB
    multichannel pulses.png ‏14 KB

  • Multi channel audio outputs from a laptop such as 5.1 or 7.1

    is it possible to get multi channel audio outputs from a laptop such as 5.1 or 7.1 for watching Movies or television while using Windows media Center.

    Ok so i order to help anyone who is interested.
    The only ironic solution to this problem i found was to use a plugin called xto7 to convert the xml to the old fcp7 format.
    i then imported this into premiere pro.
    this was then able to export an OMF that when imported into logic 10 that was using the correct 6ch mono setting as separate tracks.
    Insane but it works until Apple fixes the incorrect meta data import in FCPX that sets the xml export to the default import that is always surround.
    this is the only way i was able to send stems with all the edit points and fades for the sound editor.
    If you don't have premiere lying around you maybe able to do it with fcp7 too we just didn't have it in this studio.
    Fingers crossed Apple fixes the fcpx xml export.

  • How to write to one channel of a task with multiple channels? (plus other things...)

    So I have a USB-6009 DAQ.  It has 12 digital output lines.  I want one channel that is "Dev0\line0:10" which represents an address bus in my application.  And a second channel "Dev0\line11" which represents a program enable line in my application.
    I have tried creating two different tasks and adding one channel to one task and the other channel to the other task.  The only task that worked was the task with "Dev0\line0:10".  It was always the task containing that channel, regardless of the order of creation.  So then I moved on to a different method.  (I read somewhere that I should only create one task of each type.  like only 1 DO task only 1 AO task etc...  However I am also using the two analog ouputs to and have a task for each AO and they work just fine.)
    I tried add both channels to one task.  But when I needed to control only the address bus, I had to have some information for the other channel as well.  This was a little trying, but I could configure it that way.  But it turned out to be easier for me to just make one channel with all the lines and OR in the data for line11 with each write.
    I just wondered if it was possible to write to one particular channel of a task and not the other channel?  That would really be the ideal solution for me.  especially if I could write multiple samples to the one channel while I left the other channel alone.  Which brings up another complaint... Why does WriteMultiSamplePort only work if I use a DigitalMultiChannelWriter, and not if I use a DigitalSingleChannel writer even though my task only has one channel (and by the way I set up the channel as one channel for all lines)?  A perplexing issue to be sure.
    And no I can't just load all my samples into an array and write them all at once because I also have to manipulate the two analog outputs in between the various digital writes.
    I am using NI DAQmx 7.5 and C#.  I am trying to use the DAQ to program a digital switch, which has proven to be a real challenge.  In push-pull mode there is too much ringing for the switches programming port to tolerate.  But the switches interface is LVTTL, so I needed the 3.3V.  When I changed to open-collector I had to use voltage dividers to drop down to 3.3V.  But the rise time using open-collector is too slow for me the program the switch in serial mode, so I had to change to parallel.  The switch has an 11 bit multi-plexed ADDR/DATA bus.  So the DAQ I had chosen to use which had plenty of lines for the serial programming, now is strained to it's absolute limits by the parrallel interface.   ARGH.  The only output I am not currently using is the counter, and I'm going to need it if I ever want to read back from the switch.  But first I have to seperate the ADDR/DATA bus from the CS line on the DIO lines of the DAQ.  And I don't know for sure what I'm going to do about the voltage level translation when I have to go bi-directional.  Maybe I can filter out the ringing in push-pull mode?  Any thoughts on that?

    Hi Saikey,
    In most cases, you are exactly right: you can only use one task for one type of operation (i.e. only one analog input task in the same program). With the USB 6009, you can have multiple digital output tasks running at the same time. I was able to run a digital output program with two different digital output tasks configured for a USB-6009.
    However, you stated that it would be better if you had everything in a single task for your application and write data to only some of the channels. The easiest way to do this is to modify your array of output data so that only the data to that one channel is changing. So, for example, if you keep writing a 0 to the channels that do not need new data nothing will change.
    If you have to change your analog outputs during this program, you could create an event structure that would stop and restart the analog output tasks without changing the digital output data. I hope that you find this information helpful.
    Regards,
    Hal L.

  • How to reset buffer pointer for analog output generation?

    I am doing a finite analog output generation on a USB-6216
    Sequence of events:
    DAQmx Create Task
    DAQmx Timing (finite samples, 1000Hz)
    Use DAQmx timing property SampQuantamples per channel to set buffer size
    Write buffer with DAQmx Write
    Repeat
      DAQmx Start Task
      DAQmx Wait until done
      DAQmx Stop Task
    Until finished
    DAQmx Clear Task
    I get a full waveform output on the first iteration of the loop. On subsequent iterations I get only a small section of the waveform, but no error. It seems that it is regenerating the waveform, because when I switch off regeneration I get an error at Start Task, but before it can regenerate all the data Wait Until Done.vi decides that the generation is done and exits, stopping the generation.
    I have done this with a PCI device and it works fine; every call to Start Task generates the whole waveform again.
    OK, so it looks like after every waveform generation completes I need to reset the pointer to the start of the buffer, so that the Wait Until Done vi does not think the generation is done. Or - maybe there is a way to reset the "Generation Done" state?
    I'm sure there's an easy way to do this....?

    Hi CDancer,
    Many thanks for contacting National Instruments. If I can start by giving some general advice, it would be well worth posting your actual VI. This helps others on this forum in helping you with your application. 
    From the sounds of things, you want to do continuous analog output generation. I have had a look at the examples that come with LabVIEW and I think you should look at the one below.
    I would have a look at some of the DAQmx examples that come installed with LabVIEW. The following example would be particularly relevant I feel
    Cont  Gen Voltage Wfm-Int Clk-non Regeneration.vi 
    Please let me know how you get on.
    Many thanks,
    Andrew McLennan
    Applications Engineer
    National Instruments

  • Multi channel audio output

    i am trying to output a wav file from a avi file.
    this file has multi channel audio, in this case 4 channels, though when outputting the audio by
    After Effets, mono or stereo is the only available choice.
    In this case, which channel will be extracted from the avi file?

    I'm 99% sure that only the first 2 channels will be imported. I've seen some weirdness where multichannel audio has been bounced to a stereo pair on import causing a jump in levels. Your best bet is to use Soundbooth (or Premiere) or an audio/editing app to do the conversion.

  • How to best use Multi-Channel Plug-in: Miroslav Philharmonik

    Hello everyone,
    I recently purchased the Miroslav Philharmonik sound library and am learning to use it. You can assign different instruments and sounds in up to 16 different channels within the plug-in. I've quickly learned that this is a very important feature to use in order to have, for example, all the different violin articulations (e.g. legato, staccato, pizzicato, detache, etc.) at your disposal at once and within one instance of the plug-in. The only problem is, I'm not really sure how to manage changing MIDI channels within the arrange window.
    Let's say I have the 4 previously mentioned violin sounds loaded into Channels 1-4 in the Miroslav plug-in, which I have inserted into the Channel Strip for Inst 1. Let's say I play four bars of legato, then want to switch to staccato for four bars. How do I do this? I know I can switch the MIDI Channel from 1 to 2 in the channel strip info window, but is this automatable for play-back? I have just a basic M-Audio MIDI keyboard with pitch bend, mod wheel, octave +/-, advanced functions button, and volume. I've never worked with a multi-channel plugin before and would love any and all suggestions on how best to use this feature! Thanks!
    David

    Doesn't the Miroslav Plug In support keyswitches? Using these there would be no need to setup a Midi channel for each articulation as all articulations would reside in the same patch on the same Midi channel and you would just toggle between them by using pitcches which are not within the range of the corresponding Instrument.

  • Error -10609!! How to correct for multi-channel data acquisition?

    I am creating a program that will obtain data from all 16 channels of the PCI-DAQ6023E. I keep running into the 10609 Error "Transfer in Progress" when trying to compile and run. How do I set up the code to allow the DAQ card and Visual Basic to analyze all 16 channels at the same time?

    Greetings,
    Most of the time when I see the error 10609 Transfer in Progress it is because multiple calls, such as an analog config or analog start, are being called to the same DAQ device at the same time. Both calls are fighting for the DAQ card's resources. This is an issue with your program.
    I recommend that you take a look at an example program, such as our simple AI example in Visual Basic which can be found in the following directory: \Program Files\National Instruments\NI-DAQ\Examples\Visual Basic\_Getting Started\AI.
    You will see a Component Works control called CWAI. If you right-click on this control and choose properties you will be able to select the channels you wish to read from. You will want to read from all 16 channels by using a
    channel string of 0:15 or 0,1,2,3 .. 15. You do not want to have one CWAI control for each channel.
    You could also take a look at the following example available on our web site.
    Continuous Analog Input on Multiple Channels Using Visual Basic with NI-DAQ Function Calls
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B45EACE3E25156A4E034080020E74861&p_node=DZ52302&p_submitted=N&p_rank=&p_answer=&p_source=Internal
    Regards,
    Justin Britten
    Applications Engineer
    National Instruments

  • How to build an overview report on Collaboration Tasks

    I would like to create a report (either using Web Dynpro or Visual Composer) to report on overall task progress which would display results in Business Graphics or ALV Grid. Could some one ppint me at soem feasible solution and which API/ methods to use?

    So what you're saying is the PDF already exists on your web server, and all you want to do is navigate in the browser from your ADF application to the PDF, yes? If that's correct, let's assume you're PDF exists at:
    http://www.acme.com/someCustomPath/myFantasticReport.pdf
    Consider the <af:goButton> or <af:goLink> controls, which include the destination attribute. As such you'd do something like this:
    <af:goButton destination="http://www.acme.com/someCustomPath/myFantasticReport.pdf"/>As you can see the "go" controls are for navigating to resources not inside your ADF application, while the "command" controls are reserved for navigation among resources in your application.
    In order to generate the destination URL, just replace the destination attribute with an EL expression that retrieves it's value from a backing bean:
    <af:goButton destination="#{myBean.giveMeTheUrl}"/>Regards,
    CM.

  • How to avoid jitter in analog output(square wave) generation

    Hi all,
    Iam working with PCI-6723 32 channels analog output,iam generating a square wave,sampling at 100ks/s.
    ican able to generate upto 10kHz square wave.The wave form appears clean when it is below 1000Hz if i crossed 5KHz to 7KHz, iam getting jitter in the output square wave form,i have experimented with the digital filter but still the jitter is persisting,
    since iam using 12 channels for such similar generations so i have fixed the sampling rate.100Ks/s.
    kindly suggest me how to avoid this jitter in high frequency generation.
    OS::WINDOWS 2000
    HARDWARE PCI-6723.
    I/O CB 68
    NIDAQ:7.3
    LABVIEW 7.1
    kindly find the attached file.
    Thanks and Regards
    RAJESH
    Attachments:
    Untitled.vi ‏73 KB

    Hi ALAN,
    Thanks for your reply, well the square appears to be overlapped ie one ON/OFF period another waveform tries to overlap, actually i planned to take a snapshot of my oscilloscope (tetronix) but since its not advanced one ,i have attached the file kindly look into it,you can observe the at some higher frequencies there is lot of difference between rise time and fall time.
    Thanks and Regards
    rajesh
    alan actually iam decorating my front pannel do u have any sample layouts for coloring ,buttons kindy forward me .
    Attachments:
    Doc1.doc ‏56 KB

  • Output Options of Multi-Channel Surround Soundc

    () Analog
    - Target Recei'ver: Analog Speakers with Discrete Multi-Channel Analog Inputs
    - Physical Connection: 3.5mm Mini Jacks (Stereo / Triple-Pole) to 3.5mm Mini Jacks (Stereo), or RCA Jacks
    (2) Digital DIN (Creative?s Proprietary)
    - Target Recei'ver: Digital Speakers with Digital DIN Input (Creative?s Proprietary)
    - Physical Connection: 3.5mm Mini Jack (Quad-Pole) to Digital DIN (Creative?s Proprietary)
    (3) Digital Optical / Coaxial (S/PDIF)
    - Prerequisite: Soundcard Supports Real-Time AC-3 / DTS Encoding (E.g. Dolby Digital Li've / DTS Interacti've)
    - Target Recei'ver: Digital Recei'ver with AC-3 / DTS Decoders
    - Physical Connection: 3.5mm Mini Jack (Mono) to RCA Jack (Digital Coaxial), or Digital Optical (S/PDIF)Message Edited by R8OO on 0-26-2005 0:48 PM

    You can play a sound in a surround-system. However, Java Sound API has some restrictions.
    1, It does not play multi-channel format.
    2, It does not support speaker channel assignment. That means you can not choose a certain speaker channel to play.
    So overall, it can play a sound format which is either one or two channels in a multi-channel system.

  • Multi Channel Input on Recei

    http://img202.imageshack.us/img202/586/5pchinputlarge9cj.jpg[/img] width="300" alt="Image Hosted by ImageShack.us" >
    Ok I know that for the front and rear I would use a 3.5mm stereo to RCA but for the center/sub channel what should I use? Should it be a 3.5mm mono to RCA or something different or can it be a regular stereo red and white one?
    Btw how much does this degrade the quality of the sound? I hoping that this method with the multi channel inputs and nice home theater speakers sounds better than a PC speaker system like the 5500.

    My setup is similar to yours.
    - I have the 5. channel analog outputs of my X-Fi goes to the 5. multi-channel inputs of my preamp-processor. This setup alllow me not only to play my ripped music in 5. also allows me to play DVD-audio disc. You can also play DTS/DD encoded movies as well as long as you set the DD/DTS decoding option to off (internal decoding) in the creative console mixer.
    Advantage: Can use the X-Fi CMSS-3D to get 5./7/ expansion
    2- I also have the SPDIF output of the X-Fi goes to one digital coax input of my preamp-processor. This setup gives me the same processing as the above except the playback of DVD-audio disc.
    Disadvantage: SPDIF will ouput only in stereo, you will need to use the receiver processing modes(Dolby prologic I/II, Neo6, Stereo 5/7) to get 5./7. expansion
    For me connection 2 is the better choice for playback mode except DVD-audio, the reason is my preamp processor is a $4K unit with the highest (Audiophile) quality DACs, plus I have the flexibility of setting the bass-management of this unit independently. Plus, I have a multitude of processing modes on this unit such as : DPL-IIx, Neo-6, 5./7. Music etc... to expand a 2 channels signal into 5./7.
    I can see you have a digital coax input on your receiver, just buy a mono 3.5mm to coaxial convertor. Connect the 3.5mm SPDIF end to the X-FI SPDIF flexi-jack, and the Coax digital end to your receiver Digital coax in. With this connection you need to set DD/DTS decoding on the X-Fi to ON (External decoder).
    http://www.ramelectronics.net/html/RCA-mini-spdif.html#rcabncMessage Edited by BrokenOath on 2-8-2005 0:7 PM

  • Read Data (ASCII) and send to analog output

    Hello
    I have the following MAX configuration:
    Analog input task, continous, 2 samples, rate 100Hz (PCI-6024E)
    Analog output task, continous, 64 samples, rate 100Hz (PCI-6723)
    The cards are synchronized by the RTSI bus.
    With Dasylab I display signals from load cells by the input task. A "Read Data" module sends values to the output task. The "Read Data" module has the following settings: Output in realtime, synchronisation with analog input task, file is an ASCII, block size 4 values, no ascii time channel.
    Additional settings for DAQmx are done by DasyLab:
    Analog input: Driver buffer 30
    Analog output: Driver buffer 30, output start after 2
    When I start DasyLab I get a DAQmx failure (after a couple hours): DAQmxReadAnalogF64, Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    Could anyone please explain, how to configure analog input/output task and the DasyLab settings (Read Data)? - Attached the DasyLab diagram.
    Additional information: The application should read and display signals from a test bench (load cells). The output shall feed external controllers. The input and output signals shall be displayed on the same chart (as realtime as possible).
    Thank you
    Regards Samuel
    Attachments:
    DasyLabDiagram.png ‏67 KB

    Thanks for the prompt reply! - I have changed the settings to the following:
    Analog input task, continous, 16 samples, rate 100Hz, driver buffer 32
    Analog output task, continous, 16 samples, rate 100Hz, driver buffer 32, output start after 32
    In the "Data read" module the block size is now 16 at 100Hz
    With this setting, DasyLab runs, but only for around 12 hours.
    The following error occurs:
    "Read date module name" / The data flow is blocked by one of the following modules.
    Followed by:
    Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
    Is there something else I have to care? Could it be problematic to send signals from different modules to the same Chart Recorder module? I use DasyLab version 11.
    Samuel

  • NI board with 4 analog output

    Hello,
    I'm looking for the cheapest national instrument with this specifications:
    Ethernet communication
    1 channel Analog input
    1 Digital input
    4 channel Analog output
    All I found was the Ni sbrio board but the problem that I don't need 80% for its features.
    Thank you for your help

    Hi,
    Before recommending a particular product, it would be beneficial to understand some the requirements you need for the analog inputs, analog outputs, and digital inputs. What signals are you reading and how fast do you need to sample the signals? Also, what is the general application? Are you going to be logging data or providing control?
    Answering the above questions will help us better determine the correct device for your application.
    Tannerite
    National Instruments

  • Why does analog output max out at only 2 V when I connect my device?

    I have a device that works on LabVIEW 6 (Win-NT machine), switching over to Vista, LabVIEW2009, with PCIe-6323.  the voltage output signal control works fine on the NT machine over the full range of 0-10V.  On the LabVIEW 2009/Vista machine, open AO channels work properly from -10 to 10 V in MAX.  But when I connect the device - the same device that works just fine on LabVIEW6 - It only works up to ~2V.  For example - I enter 1.5 V - i read 1.5 V.  I anything from 2.2-10V, and I get 2.2 V.  If I disconnect the device, I get output voltage that I enter in the Task test panel.
    How can I get it to run the full -10 to 10 V?

    The way that the scaling works for DAQmx tasks changed somewhere between DAQmx 7.? and DAQmx 8.8.
    At least it did for analog inputs anyway.
    Check if any scale is applied to your analog output task. Try changing it. 
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

Maybe you are looking for

  • Good mail going to Junk folder -- even Apple mail

    I know there are other threads on this, but no one seems to have a resolve for it. Mac OS X 10.6.8 Just got my computer repaired at Apple, new harddrive, new video card.  So it's starting anew. However, even my MacBookAir is putting my GOOD MAIL in m

  • Duplicate invoice check in FV60/65

    Hi I am trying to set up a custom error message for duplicate invoice based on Vendor number (LIFNR) and Reference number (XBLNR) alone. The system presently considers a bigger set of fields to check for duplicate invoices which are Company code Vend

  • Flash Error Msg

    I'm modifying a template using Flash and now when testing the flash, I'm receiving the following message: "Could not load scene into memory. Your document may be damaged". Is there a remedy or fix for this situation, or do I have to start over from s

  • Function module to change Date from YYYYMMDD to DD.MM.YYYY

    Hi PLease tell me the function module that will convert date from YYYYMMDD to DD.MM.YYYY Thanks

  • How to trigger a hotsync from windows shortcut or on window start-up?

    The subject says it all, can we trigger a hotsync using a shortcut command or via a startup application? For the record, I have and use bluetooth for wireless sync. I am running Windows XP Post relates to: Treo 650 (Unlocked GSM)