How to do another thing before returning of a buffered waveform generation?

Hi There,
The DAC0 and DAC1 of PCI-6024E are used to generate waveforms by the buffered analog output mode. We know that before the buffered generation is completed, the starting function of generating waveform, either "WFM_op" or "WFM_Group_Control",will not return, unless you call "Timeout_Config". In my application developed by Visual C++, I hope that after starting the waveform generation process, I can do another thing, for example, plotting data or data processing. Would you tell me how to do that? I greatly appreciate you for any reply and suggestions.
Kylin

Kylin,
Actually, WFM_Group_Control() is not synchronous. It is asynchronous and will return immediately after the generation has been started. I would suggest that you take a look at the following examples. They are located in C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao:
WFMsingleBufAsync.C
WFMsingleBufSync.C
WFMsingleBufAsync.C is an asynchronous generation that uses WFM_Group_Control(). On the other hand, WFMsingleBufSync.C is a synchronous generation that uses WFM_Op(). In your situation, you would want to follow the programming structure of WFMsingleBufAsync.C.
Good luck with your application.
Spencer S.

Similar Messages

  • How does buffer size affect double buffered waveform generation?

    I had originally posted the following question:
    "Why does the double buffered waveform generation pause after the first buffer before continuing?"
    "I am using an AT-AO-10 board to generate a multiple channel waveform in double buffered mode. The board's DAC's are updated by an external clock signal. While the waveform generation performs well, I notice that after the first buffer has been generated there is a time delay before the next buffer is output. However the second buffer and thereafter perform well without any time delays. If anyone can provide me an explanation on why this happens I would appreciate it. I am using NI-DAQ API functions to generate the waveforms and my settings for the WFM_DB_Config function are 1 for oldDataStop to disallow regeneration of data and 0 for partialTransferStop to not stop when a half buffer is partially transferred."
    -posted by Vadi on 6/7/2001
    I received a response from Geneva as follows:
    Geneva L. on 6/11/2001 says:
    "Vadi,
    The first thing is to make sure that you have the latest version of NI-DAQ installed, NI-DAQ 6.9.1. If you need to install it, make sure you completely uninstall any prior versions. Then, you will have examples installed in either the NI-DAQ or the CVI directory. In the AO directory, you should find the WFMdoubleBuf example.
    Start with that to make sure the output appears as you expect. Then, you can modify it to apply your external update clock, following the idea presented in the WFMsingleBufExtUpdate example. You might even want to double-check that your external clock acts as you expect using an oscilloscope.
    Finally, modify the example such that you can update on multiple channels, remembering that you interleave each channels buffer into one buffer for WFM_DB_Transfer. Whatever data is in the buffer will be updated on the output channels.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments"
    I have checked my version of NI-DAQ and it is 6.9.1. I am generating the double buffered waveform according to the format shown in WFMdoubleBuf and with some modifications from WFMsingleBufExtUpdate to allow me to use my external update clock. However I continue to notice the same phenomena again and again. For a buffer size of 7500 or 10000 points there is a time lag meaning after the first buffer has been output there is a noticeable time delay before the second buffer and buffers there after is output. This time lag doesn't exist for the buffers that are output after the first buffer but it does exist for the first buffer. When I decrease the buffer size down to 5000 points the time lag disappears (Note: this phenomena also occurs when I use an internal time base as opposed to my external clock). Is there a reason for this? I am using a AT-AO-10 board and I know the on board FIFO is 1024 points deep. However from the documentation provided it doesn't indicate that double buffered mode uses the on board FIFO at all. In fact, the functions require that the FIFO mode be turned off (in WFM_Load) for double buffered waveform generation. Is there a reason why when the buffer size is increased that there is a time lag after the first buffer? Is this because of the functions themselves or is this because of the AT-AO-10 board?

    Vadi,
    Make sure that your buffer size is set to the same number of points that you're actually writing to the buffer initially. For instance, if you run the example as-is, the NIDAQMakeBuffer puts exactly the ulCount amount of data into the buffer. Then, it continuously writes out half buffers. Thus, if you are not writing enough data to fill up the buffer the first time, there will be that lag until the section where half buffers are output.
    Regards,
    Geneva L.
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How to erase refurb Pro before returning if no install disk?

    Sadly, my 13-inch early 2011 Macbook Pro refurb has had freezes since it arrived two days ago, and it's often slower to load web pages than my early 2008 Macbook -- so back to Apple it will go.  The unit came with Lion installed and no disks, but I'll need to erase my data before I return it; I'd only feel comfortable by using a secure erase method (writing zeros) via Disk Utility, but will the resulting "empty" computer be acceptable to Apple?  (Yes, I know I can call Apple to ask when they open in the morning, but am just getting antsy for an answer.)  Thank you!

    Hold Command and r keys down and reboot into the Lion Recovery Partition.
    From there you can use Disk Utility to Zero the Lion OS X Partition.
    Don't bother waiting hours for Lion to download if the machine is going back to them, let them bother installing Lion.
    https://discussions.apple.com/message/16276201#16276201

  • Time capsule says disk has an error and will not mount on my computer; how can I purge TC before returning it to apple for replacement?

    Time capsule will not mount but stillhas wi-fi;apple sent a replacement that works fine. I have to send my old time capsule back to apple but I want to purge it for security reason (personal data).  Will pushing the reset button while plugging it in to restore to factory setting delete all back-ups also?

    No, it won't do anything to the hard disk.
    You need to go to the disk tab on the airport utility.. and erase the drive.. if the drive doesn't show up it is dead and not an issue.. Also Apple are careful to destroy data left on drives.. It might be hard to trust them.. but I think they are careful.. mind you if you have your account numbers for your multi-million dollar accounts.. then use an axe and forget the warranty.

  • How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    How can I have one thing open in Safari on my MacBook Pro and search for another thing in Safari without closing out of the other? For instance, How can I leave Pandora playing while I search Facebook?

    With Safari open use the Command + T keyboard shortcut to open a new tab.
    Or, Command + N to open a new window.

  • HT5569 My new Iphone will not connect to my home wi-fi, unless I am standing beside the router. Why is this and how do I fix it? I have previously connected it to another hub before trying to connect to my home wi-fi. Would this of had an effect?

    My new Iphone will not connect to my home wi-fi, unless I am standing beside the router. Why is this and how do I fix it? I have previously connected it to another hub before trying to connect to my home wi-fi. Would this of had an effect?

    If you have connected to other wi-fi successfully, then your wi-fi should be working. Try power cycling the router. Disconnect it from power for about 30 seconds and then restart it. After it has come back, try connecting again.

  • How do I deactivate PE8 before I uninstall it from my Windows 7 PC? I want to install that PE8 on another computer.

    How do I deactivate PE8 before I uninstall it from my Windows 7 PC? I want to install that PE8 on another computer.

    open pse 8 > click help > click deactivate.

  • How can I purchase items for app when the app was loaded on another ID before? I has to Chang my AppleID and also transferred an app to new phone. I can't purchase items for app because it wants me to buy the app through new ID. The app was free.

    How can I purchase items for app when the app was loaded on another ID before? I has to Chang my AppleID and also transferred an app to new phone. I can't purchase items for app because it wants me to buy the app through new ID. The app was free.

    All apps (and other content from the store) are tied to the account that downloaded them, whether or not they are free. To do in-app purchases in that app you will either need to log in with the account that downloaded it, or delete it (which will delete its content) and download it with your currently logged in account if you want to do IAPs on that account.

  • I tried to encrypt using file vault but it froze slowing my macbook pro, how can i get things moving or stop the encryption

    i tried to encrypt using file vault but it froze slowing my macbook pro, how can i get things moving or stop the encryption

    Back up all data before proceeding. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    Start up in Recovery mode. When the OS X Utilities screen appears, select Disk Utility.
    In the Disk Utility window, select the icon of the startup volume from the list on the left. It will be nested below another disk icon, usually with the same name. Click the Unlock button in the toolbar. When prompted, enter the login password of a user authorized to unlock the volume, or the alternate decryption key that was generated when you activated FileVault.
    Then, from the menu bar, select
              File ▹ Turn Off Encryption
    Enter the password again.
    You can then restart as usual, if the system is working. Decryption will be completed in the background. It may take several hours, and during that time performance will be reduced.
    If you can't turn off encryption in Disk Utility because the menu item is grayed out, you'll have to erase the volume and then restore the data from a backup. Select the Erase tab, and then select
              Mac OS Extended (Journaled)
    from the Format menu.
    You can then quit to be returned to the main Recovery screen. Follow these instructions if you back up with Time Machine. If you use other backup software, follow its developer's instructions.
    Don't erase the volume unless you have at least two complete, independent backups. One is not enough to be safe.

  • My ipad will not connect to wi-fi. I lost it after updating os7. Friend got it to work in CA but coming home to AZ it will not connect. Another thing why are they asking for password when I try to pick location, to my knowledge this has not been asked

    I have a problem with my wi-fi cant get to work, I will pick a server then they ask for a password, to my knowledge this has never been asked in the past/ This happened with I installed OS7. A friend in CA was able to connect but when I returned to AZ I have not been able to setup the Wi-FI.

    Look at iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    Additional things to try.
    Try this first. Turn Off your iPad. Then turn Off (disconnect power cord) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    Change the channel on your wireless router (Auto is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    Another thing to try - Go into your router security settings and change from WEP to WPA with AES.
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    If none of the above suggestions work, look at this link.
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • READ BEFORE RETURNING RADIO REMOTE

    Howdy, i came across an issue which i have a simple answer for(see below),
    i was looking through the reviews on the apple store website, and noticed that alot of people return the radio remote because they were dissapointed that "it only got 4 stations, and they were all fuzzy", one thing, read the manual on how to run the thing, it is included in the box that it comes in, please read it.
    And if you dont want to read it there listen to me. What i am thinking you are doing that you only get 4 stations, is that you are only hitting the forward and reverse (<<|>>) only, which goes through the factory presets which give you a few stations, which are usually unused, to select stations hit the middle select button on the ipod(this knowledge is conveniently located in the manual)
    and use the click wheel to select your station.
    Please think and read the manual before you decide to return it, check out the problem throughly.
    If you have this problem, please listen to what i have wrote, it will help.
    Derek.

    Yes, you can us eyour own. The ones that come with the remote simply have a shorter cord than the stock headphones, otherwise they are identical.
    Also, the Radio remote works only with the Nano and the 5G.

  • How do you get fontmetrics before displaying something on the screen?

    Let me ask in another way:
    how do you get fontmetrics before displaying something on the screen?
    Edited by: tjacobs01 on Aug 24, 2008 12:03 PM

    and you call getGraphics() it returns nullI learned to not use the getGraphics() method. Check out my posting here where I ask what the getGraphics() method is good for:
    [http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741|http://forums.sun.com/thread.jspa?threadID=5233274&messageID=9954741]
    Also, c.getFontMetrics(c.getFont()) will be an NPE because Font is initially null.Maybe I don't understand the question. The following works for me:
    import javax.swing.*;
    public class Test
         public static void main(String args[])
              JTextField textField = new JTextField();
              System.out.println(textField.getFontMetrics(textField.getFont()));
    }Every question should have a SSCCE, so we don't have to guess.

  • How can i make a soft return with pages shift enter does not work!

    how can i make a soft return with pages shift plus enter does not work!!

    On full keyboards with a numeric keypad, the key above the right shift is "return" & the one on the numeric section is "enter." On a Mac (or Apple IIgs ) they do have separate functions. On the "mini" keyboards, both names are on the same key, but "enter" is written in smaller letters. I'll have to check to see how that works on another Mac later today.

  • How to get another jsp by clicking a h:commandLink in jsf page

    Hi,
    I am new to JSF. pls send sample code me how to get another jsp by clicking a commandLink in jsf.
    SUB: TO go to the page "report7.jsp"
    -->By getting help from samples i wrote for above in 2 ways.
    1)
    <td><h:commandLink id="RO0007" action="r7" >Sharing of Information from Foreign FIU</h:commandLink></td>
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    2) Sending request through bean method
    <td><h:commandLink id="RO0007" action="#{RBean.report7()}" >Sharing of Information from Foreign FIU</h:commandLink></td>
    in RBean the method form is
    public String report7(){          
         return "r7";
    and in <reports-config>
    <navigation-case>
    <from-outcome>r7</from-outcome>
    <to-view-id>report7.jsp</to-view-id>
    </navigation-case>
    Some problem in both i think as it is not going to next page. i need to go to th next page by calling Bean Method.
    please get me out of this problem. It is very urgent. Thank you.
    **************************************************************

    What error is it throwing? If it is throwing a Page not found, then maybe you should try mapping to "report7.faces" instead of "report7.jsp"
    Can you post your faces-config please

  • I am planning a long vacation and taking my laptop but it is my home computer that my new ipad and ipod touch are synced too. I know i can backup to the cloud over wifi but how can i do things like delete photo albums

    I am planning a long vacation and taking my laptop but it is my home computer that my new ipad and ipod touch are synced too. I know i can backup to the cloud over wifi but how can i do things like delete photo albums instead of having to manually delete pictures one by one on the Ipad. Is there any way also to add my pictures to the ipad other than through email. i am assuming that i can't just install itunes on the laptop and sync to that. I have been told that i always have to sync to my original synced home computer for that.

    The links below have instructions for deleting photos.
    iOS and iPod: Syncing photos using iTunes
    http://support.apple.com/kb/HT4236
    iPad Tip: How to Delete Photos from Your iPad in the Photos App
    http://ipadacademy.com/2011/08/ipad-tip-how-to-delete-photos-from-your-ipad-in-t he-photos-app
    Another Way to Quickly Delete Photos from Your iPad (Mac Only)
    http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ip ad-mac-only
    How to Delete Photos from iPad
    http://www.wondershare.com/apple-idevice/how-to-delete-photos-from-ipad.html
    How to: Batch Delete Photos on the iPad
    http://www.lifeisaprayer.com/blog/2010/how-batch-delete-photos-ipad
    (With iOS 5.1, use 2 fingers)
    How to Delete Photos from iCloud’s Photo Stream
    http://www.cultofmac.com/124235/how-to-delete-photos-from-iclouds-photo-stream/
     Cheers, Tom

Maybe you are looking for