How to structure the DMA buffer for PXie 6341 DAQ card for analog output with different frequencies on each channel

I'm using the MHDDK for analog out/in with the PXIe 6341 DAQ card.
The examples, e.g. aoex5, show a single Timer  (outTimerHelper::loadUI method), but the example shows DMA data loaded with the same vector size.
There is a comment in the outTimerHelper:rogramUpdateCount call which implies that different buffer sizes per channel can be used.
   (the comment is: Switching between different buffer sizes will not be used)
Does anyone know what the format of the DMA buffer should be for data for multiple channels with different frequencies ?
For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?

Hello Kenstern,
The data is always interleaved because each card only has a single timing engine for each subsystem.
For AO you must specify the number of samples that AO will output. You also specify the number of channels. Because there is only one timing engine for AO, each AO will channel will get updated at the same time tick of the update clock. The data will be arranged interleaved exactly as the example shows because each AO channel needs data to output at each tick of the update clock. The data itself can change based on the frequency you want to output.
kenstern wrote:
For example, say we want a0 with a 1Khz Sine wave and a1 with a 1.5Khz sine wave.  What does the DMA buffer look like ?
With the same frequency for each channel, the data is interleaved, e.g.  (ao0#0, ao1#0; ao0#1, ao1#1, ...), but when the frequencies for each channel is different, what does the buffer look like ?
In your example, you need to come up with an update rate that works for both waveforms (1 KHz and 1.5 KHz sine waves). To get a good representation of a sine wave, you need to update more than 10x as fast as your fastest frequency...I would recommend 100x if possible.
Update Frequency: 150 KHz
Channels: 2
Then you create buffers that include full cycles of each waveform you want to output based on the update frequency. These buffers must also be the same size.
Buffer 1: Contains data for the 1 KHz sine wave, 300 points, 2 sine wave cycles
Buffer 2: Contains data for the 1.5 KHz sine wave, 300 points, 3 sine wave cycles
You then interleave them as before. When the data is run through the ADC, they are outputting different sine waves even though the AO channels are updating at the same rate.

Similar Messages

  • How to display the binary code received from a DAQ Card

    Hi everybody,
    My LabVIEW application receives data from a NI-6036E DAQ Card. Is there a possibility to see the binary code sent by the card? Because all what I found show only the analog value.
    Thanks for your help

    Assuming that you are using DAQmx, simply select the polymorphic selector of the DAQmx Read and do a Analog>Unscaled and then pick the type of integer array you want. If you are using the DAQ Assistant, I don't think you can select unscaled for that so you could convert the assistant to a VI and modify that (right click on it and select Open Front Panel). If you are not using DAQmx, please provide the name of the function you are using.
    Message Edited by Dennis Knutson on 01-08-2007 08:31 AM
    Attachments:
    Select binary format.PNG ‏4 KB

  • Need for sugestion about DAQ Card for load cell

    Hi.
    I have a AT-MIO-16XE-50 DAQ card. But, I guess it doesn't work with load cell since it dosen't have output. So I need your regomendation about what DAQ card I should use. Also, if I need to use strain gage conditioner, recomende to me.
    Thanks
    Jee

    I couldn't find any information about a DAQ 512, but I did find info about a DAQCard-512 and DAQCard-500. If you meant one of these boards, then you will need NI-DAQ 6.9.3. That is the latest version of NI-DAQ to support these boards. Post again if you need additional assistance.

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why do i need to do some settings for it ?

    Hi  can any body please tell me how to open the .exe files in mac and why it is not supported with unarchiever app , also i am not able to run and dvd's in my mac its not accepting any cd's or dvd'd why? do i need to do some pre defined  settings to run the cd's and dvd's ?

    A .exe file is a Windows executable. OS X does not run Windows programs. If you need to use .exe files then you will need to install Windows on your Mac:
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How to increase the number of data Business Object can pull for a report?

    Hi,
    I would like to ask around how to increase the number of data Business Object can pull for a report. I have a report which pulls data depending on the date range (ex. From 01/01/2007 - 01/10/2007). But, when the data that is pulled exceeds 5000, the report fails. Is there anyway to increase the number of data that BO can pull?
    Thanks

    Bobby,
       to my knowledge we can't change that. Let me explain this, we have setting in the source system for DS default Data Transfer. there we will assign the processes. if you want to assign 4 you need to change the setting in the source system. For flat files we can change in BW System. We can maintain the setting in the Infopackage level(wht we are assigned in the Source System), but we can't change the process.
    in order to check the setting in source system  SBIW--> General Settings --> Control Parameters for Data Transfer.
    we need to change here, this will effect to all the Data Sources. Before making changes check with your basis.
    All the best.
    Regards,
    Nagesh Ganisetti.

  • How to use the default database service name on creating procedure for data

    how to use the default database service name on creating procedure for datagaurd client failover ??? all oracle doc says create a new service as below and enable at DB startup. but our client is using/wanted database default service to connect from application on the datagaurd environment (rac to non rac setup).please help.
    Db name is = prod.
    exec DBMS_SERVICE.CREATE_SERVICE (service_name => 'prod',network_name =>'prod',failover_method => 'BASIC',failover_type => 'SELECT',failover_retries => 180,failover_delay => 1);
    says already the service available.
    CREATE OR REPLACE TRIGGER manage_dgservice after startup on database DECLARE role
    VARCHAR(30);BEGIN SELECT DATABASE_ROLE INTO role FROM V$DATABASE;
    IF role = 'NO' THEN DBMS_SERVICE.START_SERVICE('prod');
    END IF;
    END;
    says trigger created, but during a swithover still the service is listeneing on listener.
    tns entry.
    prod =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (LOAD_BALANCE = YES)
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod1)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = prod2)(PORT = 1521)) ---> primary db entry
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = proddr)(PORT = 1521)) --> DR DB entry
    (CONNECT_DATA =
    (SERVICE_NAME = prod)
    thanks in advance.
    Edited by: 854393 on Dec 29, 2012 11:52 AM

    Hello;
    So in the example below replace "ernie" with the alias you want the client to use.
    I can show you how I do it :
    First an entry need to be added to the client tnsnames.ora that uses a SERVICE_NAME instead of a SID.
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.host)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.host)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )Next the service 'ernie' needs to be created manually on the primary database.
    BEGIN
       DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
    END;
    /After creating the service needs to be manually started.
    BEGIN
       DBMS_SERVICE.START_SERVICE('ernie');
    END;
    /Several of the default parameters can now be set for 'ernie'.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('ernie',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /lsnrctl status - should show the new service.
    When I do this the Database will still register with the listener. I don't give that to the clients. That one will still be available but nobody knows about it. Meanwhile "ernie" moves with the database role.
    So in my example the default just hangs out in the background.
    Best Regards
    mseberg
    Edited by: mseberg on Dec 29, 2012 3:51 PM

  • How to intercept the Adobe Flash plugin block by firefox checking for vulnerabilities?

    The trouble is the grey block, that asking to update Adobe Flash because the version is vulnerability. If the block of Flash object is smaller, then 100px height - there is an empty space, but not gray block with talking about version. I need to intercept the moment using JavaScript, when Firefox checking the version of plugin to make changes in my HTML code to make a GIF, but not flash.
    How to intercept the Adobe Flash plugin block by Firefox checking for vulnerabilities from JavaScript code?

    hello, i don't think that this would be possible (but i'm not sure). what you could do is try to sniff the version of flash that is installed & the firefox useragent and just assume that old versions of the plugin will be blocked in this combination.
    if you need more help about that, i'd recommend posting in a forum that is more specialized & knowledgeable in web development like http://forums.mozillazine.org/viewforum.php?f=25, since we here on the firefox support forums are primarily focused on support for end-users...

  • How to execute the packaged procedure(having out param) in TOAD for Oracle

    Hi.
    Could you help me
    How to execute the packaged procedure having out parameters in TOAD for Oralce..
    Thanks..

    Use anonymous PL/SQL block to execute it.
    Example.
    DECLARE
      <out variable name> <out variable data type>;
    BEGIN
      <package name>.<procedure name>(<out variable name>);
    END;

  • How long would the battery last if you were usinng it for...

    How long would the battery last if you were usinng it for wireless msn around the house..
    Thanks,
    Andrew

    I never get less than 3 1/2 hours and generally get a bit over 4 hours on a fully charged battery. Before unplugging I make sure BlueTooth and sound is off, the backlight is set as low as I can stand it, I have no disc in the drive, and all the applications and files I intend to use are running and loaded. The three biggest juice eaters are the display's backlight, the hard drive and optical drive so I minimize the use of all three while unplugged.
    Are Mac notebooks tough? A couple quick stories: I dropped my G3 iBook off my desk and it hit the concrete floor on its corner breaking off a large piece of plastic. I fashioned a fiberglass bandage and used the computer for 3 months before finding a functional used shell. A customer came in with a horrifically bent PowerBook last summer - it fell out of his motorcycle sidebag while he was driving (35 MPH) and was run over by at least 1 car. It booted up and the display while bent by the mangled case still worked. I actually used Migration Assistent to move his stuff to the new computer. A student brought me his MacBook which he'd dropped down half a flight of stairs at the college. It had been in a lightly padded sleeve. It looked banged up - there were some fractures to the bottom case and the hinge squealed terribly as I opened it. But the computer woke up and it checked out okay. AppleCare basically replaced everything but the innards - the guy's home insurance covered all but the deductible which was a good thing - that is an expensive repair! Would the typical PC survive these accidents? Well, I know from experience the cheap plastic Dell and HP models wouldn't.

  • HT2534 It doesn't have "NONE" in the process of Billing information. (It have Visa, Master and AMEX only.) How can I do. I don't have credit card for fill in. I also don't want to buy anything in App store.

    It doesn't have "NONE" in the process of Billing information. (It have Visa, Master and AMEX only.) How can I do. I don't have credit card for fill in. I also don't want to buy anything in App store.

    Follow the directions exactly, step by step. It does work.
    Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card

  • How to cancle the previous apple ID and creat another one for the same ipad mini

    Please advise how to cancle the previous apple ID and creat another one for the same ipad mini.
    Thank you.

    You can log out of an account (you can't 'cancel' an account) by tapping on it in Settings > iTunes & App Store - any content that you downloaded with that account will remain tied to that account. You can then create a new account via the Create New Apple ID button on that screen. If you don't want to give credit card details then follow the instructions on this page when creating the new account : http://support.apple.com/kb/HT2534

  • I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    I bought two films on my ipod tough 4g ( normally comes up on my ipad if i have bought something on my ipod) but i dont know how to get the two films on my ipad without paying for them.

    Movies work differant than TV shows, music and apps. With movies, to get them from one device such as an iPod Touch to an iPad, you would need to connect the Touch to your computer first and in iTunes under the file menu, hit transfer purchases. Next connect the iPad and you can sync the movie to the iPad.
    While the iPad is connected to the computer, in iTunes, click on the iPad in the left pane and when the screen loads, click movies and from there, you can select the movie that you want to sync.

  • How to connect my iphone 4s to a USB sound card for 5.1 speakers?

    How to connect my iphone 4s to a USB sound card for 5.1 speakers?

    You can't:
    1. iPhone sound output is stereo, not Dolby 5.1 compatible.
    2. iPhones do not connect sound output by standard USB.  The connecting device has to be iPhone compatible.

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

Maybe you are looking for