Generating a square waveform of 100 KHz from one of the Anolog output channels of PXI-6713 ?

Hi
I am trying to generate a square waveform from one of the anolog output channels of PXI 6713.
I am developing my application in VC++
My requirement is a continous 100 KHz square waveform with 90% duty cycle and 1.5 V amplitude.
The following is the code i have used (i have removed error handling code):
***** code *******
i16 deviceNumber = 6; // PXI 6713 Device Id as per NI-MAX
i16 deviceNumberCode; // to be returned by Init_DA_Brds function
i16 chan = 2; // DAC channel 2
i16 numChans = 1; // only one channel is used for
i16 chanVect[1] = {2}; // DAC Channel 2
f64 gain = 1.0;
i16 binArray[10] = {0};
i16 group = 1; // default for most of the devices
u32 count = 10; // 10 data points
// 9 data points ON and 1 data point OFF constituting 90% duty cycle
f64 voltArray[10] = {1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,0};
u32 iterations = 0; // Repeat waveform indefinitely
i16 mode = 0; // Disable FIFO mode / delay mode
f64 rate = 100000; // 100,000 points / sec
i16 units = 0; // points / sec
i16 timebase;
u32 updateInterval;
i16 whichclock = 0; // update clock
i16 operation = 1; // Start waveform initiation
Init_DA_Brds (deviceNumber, &deviceNumberCode);
WFM_Scale (deviceNumber, chan, count, gain, voltArray, binArray);
WFM_Group_Setup (deviceNumber, numChans, chanVect, group);
WFM_Load (deviceNumber, numChans, chanVect, binArray, count, iterations, mode);
WFM_Rate (rate, units, &timebase, &updateInterval);
WFM_ClockRate (deviceNumber, group, whichclock, timebase, updateInterval, mode);
WFM_Group_Control (deviceNumber, group, operation);
If I try to generate 10 KHz waveform with the same 90% duty cycle and 1.5 V amplitude, the waveform gets generated continously....
But for 100 KHz, itz generating continously....but only few waveforms....
Is there any hardware limitations ? I've tried changing the value of the timebase ( points / sec) and update interval etc...
plz help me
thanx in advance
sriram.

Sriram;
The best way to get started is to run one of the NI-DAQ shipping examples. You can find a good example at
C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao. Take the one named WFMDoubleBuf.c.
On that example, you will just need to change the data written to the buffer to met your application's pulse train requirement.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments

Similar Messages

  • How To Generate And Print Reports In PDF Format From EBS With The UTF8 Char

    Hi,
    I want to know How To Generate And Print Reports In PDF Format From EBS With The UTF8 Character Set in R12.0.4.
    Regards

    Refer to Note: 239196.1 - PASTA 3.0 Release Information
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=239196.1
    Or, you can use XML Publisher.
    Note: 551591.1 - Need Latest XML Publisher / BI Publisher Patches For R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=551591.1

  • I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel?

    I am using an NI PCI 6024 E board device for an analog output application. Can I generate two independent waveforms, one on each analog output channel? In attach I send a example of my vi to control one chanel, but i need to control both but with diferent waveforms.
    Is the vi correctly programed to this propose?

    Yes you should be able to do that. look at the signal generation examples shipped with LabView
    You can create a 2 D array, with each row representing a wave form per channel. The number of points of the wave form (per row of the 2 D array) represent the number of points in the output buffer
    The wave forms can have different amplitudes/shapes, and therefore they are independent in this sense.
    However, you need to set the update rate,which is the same for both channels. The update rate together with number of points per buffer determines the frequency of the wave forms. This means the two wave forms will have the same frequency.
    To have different frequencies, you need to have say, on wave form with one cycle per buffer, and the other waveform have 2 cycles
    per buffer. in a case like that the frequency of the second channels is twice that of the first channel, and so on
    The two wave forms are then not truly independent, they may have different amplitudtes/shapes, but related in frequency.

  • HT3819 how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    how do I share movies/music between my computers. I have opened shared on both computers and both are on, but i am not able to drag anything from one to the other. Does anyone know where the settings button is on the bottom of the itunes screen?

    Oops, I forgot a step between 7 and 8 ... before syncing the iPhone I need to explicitly send the document back to iTunes on the iPhone, or the changes won't come over at all ...
    and then one more thing ... Numbers on iOS does NOT recognize a number of key features of the OSX app, such as conditional formatting ... so after editing my document on iOS and syncing it back to OSX on my Mac, all of those settings are lost (no more conditional formatting, have to do it all over again)
    What am I doing wrong ?

  • Report not displaying data from one of the infoproviders

    Hi Experts,
    Issue: Report not displaying data from one of the infoproviders
    I have a report 'ReportA' which has multiprovider MP1 as the source.
    MP1 has two Infocubes IC1, IC2 in its design.
    Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
    Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
    Please reply.
    Regards,
    Suraj S Nair

    Hi All,
    When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
    I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
    Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
    I checked the Characteristics, all of them are assigned corectly.
    Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
    Regards,
    Suraj S Nair

  • This is my first mac i have 2 hard drives installed how do i move photos or documents from one to the other

    i just bought my first imac i have 2 seperate drives on it. how do i move photos and documents from one to the other.

    This is our resident iPhoto guru, Terence Devlin's, advice:
    You can move your iPhoto Library to an external or secondary internal disk:
    1. Quit iPhoto
    2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.

  • Short dump error when extracting from one of the datasource in R/3 to BW

    When extracting from one of the datasource I am getting the short dump. below is the source code of the same.
    Source code extract
    Get boundaries of next TID block
    L_FROM_INDEX = L_TO_INDEX + 1.
    IF L_FROM_INDEX GT NFILL.  EXIT.  ENDIF.
    L_TO_INDEX   = L_TO_INDEX + L_BLOCK_SIZE.
    IF L_TO_INDEX GT NFILL.
      L_TO_INDEX = NFILL.
      L_BLOCK_SIZE = L_TO_INDEX - L_FROM_INDEX + 1.
    ENDIF.
    Create hashed index on TID of TID table
    CLEAR L_TH_TID_IDX.
    LOOP AT TIDTAB FROM L_FROM_INDEX TO L_TO_INDEX.
      L_S_TID_IDX-TIDIX = SY-TABIX.
      L_S_TID_IDX-TID   = TIDTAB-TID.
      COLLECT L_S_TID_IDX INTO L_TH_TID_IDX.
    ENDLOOP.
    Select TID block from STATE table
    SELECT * INTO TABLE L_T_STATE
           FROM ARFCSSTATE FOR ALL ENTRIES IN L_TH_TID_IDX
           WHERE ARFCIPID   EQ L_TH_TID_IDX-TID-ARFCIPID
             AND ARFCPID    EQ L_TH_TID_IDX-TID-ARFCPID
             AND ARFCTIME   EQ L_TH_TID_IDX-TID-ARFCTIME
             AND ARFCTIDCNT EQ L_TH_TID_IDX-TID-ARFCTIDCNT
           ORDER BY PRIMARY KEY.
    Consistence check
    DESCRIBE TABLE L_T_STATE LINES L_LINES.
    IF L_LINES NE L_BLOCK_SIZE OR
       L_LINES EQ 0.
      MESSAGE X097(SY).
    ENDIF.
    PERFORM DELETE_BATCH_JOB
            USING    L_T_STATE
            CHANGING L_S_TID1.
    Update LUW-Status und Zeit
    CLEAR L_T_STATE_IDX.
    CLEAR L_TH_TID2_IDX.
    CLEAR L_T_TID.
    LOOP AT L_T_STATE INTO L_S_STATE.
      L_S_STATE_IDX-TABIX = SY-TABIX.

    Hi Pavan,
                     This is a table space error.
    Regards,
    rahul

  • I have an ipad version 5.1.1. i have multiple albums in the ipad and i want to transfer some photos to my computer but when i open the ipad files via "computer" i can only see picture from one of the albums.what should i do?

    i have an ipad version 5.1.1. i have multiple albums in the ipad and i want to transfer some photos to my computer but when i open the ipad files via "computer" i can only see pictures from one of the albums.what should i do?

    You can only import photos from the camera roll into the computer. Is that the album that you are seeing?
    Any albums that you create on the device itself (the iPad that is) cannot be transferred to your computer. iPad created albums do not contain copies of your photos but merely pointers to those photos so they do not actually exist in those albums.

  • Switching data between MacBooks (everything from one to the other)

    I need a faster notebook for business. My wife's MacBook is newer than mine and has agreed to switch with me.
    Both laptops are backed up to the same Airport Time Capsule.
    What is the best way to switch the data on both machines, from one to the other?
    Thank you,
    Bill

    There are probably other ways to do this.
    One way to accomplish what you want to do is to make a current backup of both computers. For an option in case there is a Time Machine problem, I would also make a clone of each hard drive and temporarily store the clone on the Time Capsule.
    Boot into the Recovery Volume (hold down command - R or hold down option key) and restart. I would run Disk Utility Repair Permissions and Verify/Repair. Then use Disk Utility to erase the disk. The format is Mac OS Extended (Journaled). Then reinstall the OS.
    Reinstall OS
    Reboot normally and then attempt to inherit the Time Machine backup for the computer you are working on. Use Setup Assistant or Migration Assistant to restore the backup. Using the same user account name as on the old computer may make things easier.
    Inherit a Backup
    Inherit a Backup (2)
    If for some reason you have trouble inheriting the Time Machine backup, attach the Time Capsule to the computer, mount the clone in Finder, and copy the files you want to restore.
    Once everything is completed, you can delete the clones from the Time Capsule to allow more room for the Time Machine backups.
    I would seriously consider buying a 2nd Time Capsule and create two separate backups before attempting anything. One backup isn’t enough because hard drives do fail. Time Machine will allow you to backup to 2 disks and will alternate between them. Instead of using Time Machine on the 2nd hard drive, you might want to consider using the second drive to store a clone on because you can make a bootable clone.
    Cloning programs.
    Clone  - Carbon Copy Cloner (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested

  • How can I order an iphone 6 and pick it up from one of the apple stores in London. It doesn't work with reserve and pick up because the 64 gb is never in stock.

    How can I order an iphone 6 and pick it up from one of the apple stores in London??? It doesn't work with reserve and pick up because the 64 gb is never in stock.

    Thank you for replying.    Yes I deleted the old email address..   

  • I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I created in iMovie, and extracted audio from one of the clips to use in the title sequence.  All is well, export to iDVD and it plays OK, but when I burn the DVD the audio for the titles does not play. Any suggestions?

    I am on a MacBook Pro with OS 10.6.7 running iMovie '11 and iDVD 7.1.1.  Thanks for any input.

  • I am using duel thunderbolt displays with a MacBook Pro. I only have the option to have sound come from one or the other. Has anyone thought of making the left channel come from both speakers on the left Monitor and the same of the right? If yes, how is t

    I am using duel thunderbolt displays with a MacBook Pro. I only have the option to have sound come from one or the other. Has anyone thought of making the left channel come from both speakers on the left Monitor and the same of the right? If yes, how is that done? The MacBook Pro could even be a center channel if configured in that order.

    See the following thread on the same topic:
    2 Thunderbolt displays   MBP = sound coming from both displays?

  • I have two macs in my house.  One is newer and came with the os x mountain lion software and the other one needs to be upgraded.  I was wondering if there is a way to take upgrade from one to the other?  Should not have to buy this software again.

    I have two macs in my house.  One is newer and came with the os x mountain lion software and the other one needs to be upgraded.  I was wondering if there is a way to take upgrade from one to the other?  Should not have to buy this software again.

    Welcome to Apple Support Communities
    Buy it for the other computer. Mountain Lion is preinstalled on the new Mac, but you can only use it in the new one

  • I just downgraded from iTunes 11 back to itunes 10.7.5. My iTunes is now working from one of the Previous Music Librabies. How can I make that previous library my current library? Also, I can't empty iTunes 11 frome the trash. Why not?

    I just downgraded from iTunes 11 back to itunes 10.7.5. My iTunes is now working from one of the Previous Music Librabies. How can I make that previous library my current library? Also, I can't empty iTunes 11 frome the trash. It tells me iTunes 11 is still open. What's going on?
    Thanks in advance!

    Without providing details on exactly what you did it is hard to provide an answer.  It's like me saying, "This chocolate cake I made tastes wrong," but not providing the recipe for review.  Maybe it was the garlic in that particular recipe.
    If iTunes is successfully using a previous library which you rename to iTunes Library.itl then that is now the current library.
    Have you restarted your computer and then tried emptying the trash?

  • How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    How to place two different indesign documents side by side on my desktop in order to copy and paste images and text from one to the other?

    Or choose Window > Arrange > Tile
    And, you of course can copy/paste without tiling.

Maybe you are looking for