DAQmxWriteAnalogF64 takes more than 35ms

Hi All.
I'm using waveform where I continously generate new data to the buffer and my problem is that the first buffer upload takes about 35ms longer than all
other uploads. Also the first upload is much longer than different waveform with the same buffer length on the same computer and the same DAQ boards. I
tried it with PCI-6723 and PCIe-6353. I would like to know what cause this delay for preventing it in the future. I'm using everyN callback for upload
new data to the buffer and I'm always one chunk ahead.
DAQmxCreateTask("",&m_hSequenceTaskOutAnalog);
for (lx_int32 i = 0; i< (lx_int32)m_vectResourcesAnalog.size(); i++)
   DAQmxCreateAOVoltageChan(m_hSequenceTaskOutAnalog,m_vectResourcesAnalog[i],"",dMinV,dMaxV,DAQmx_Val_Volts,NULL);
DAQmxCfgSampClkTiming(m_hSequenceTaskOutAnalog,("/" + sDevice + "/ctr0InternalOutput"),m_iSamplesPerSecondForOneChannel,DAQmx_Val_Rising,DAQmx_Val_ContSamps,2 * m_iDataLengthPerChannelInOneWindow * m_iNumChannelsAnalog);
DAQmxSetWriteRegenMode(m_hSequenceTaskOutAnalog, DAQmx_Val_DoNotAllowRegen);
DAQmxRegisterEveryNSamplesEvent(m_hSequenceTaskOutAnalog, DAQmx_Val_Transferred_From_Buffer, m_iDataLengthPerChannelInOneWindow, 0, EveryNCallback, this);
DAQmxWriteAnalogF64(m_hSequenceTaskOutAnalog,2 * m_iDataLengthPerChannelInOneWindow,0,10.0,DAQmx_Val_GroupByScanNumber,m_pdAnalogDataWaveform,NULL,NULL);
I measured that DAQmxWriteAnalogF64 on PCI-6723 takes depends on buffer size:
1500 samples 33 to 38 ms
3000 samples 34 to 42 ms
30000 samples 34 to 39 ms
300000 samples 35 to 40 ms
on the first upload and
1500 samples 0.045 to 0.056 ms
15000 samples 0.076 to 0.194 ms
1360000 samples 3.0 to 3.6 ms
on the every other upload.
I measured similar times also for PCIe-6353
Any idea and suggestions how to speed up the first writing?

is your EFI up to date?

Similar Messages

  • When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    When I close my iPhone and I want to open it to use it again, the opening process takes more than an hour, I regretted to buy the iPhone because of this problem that you do not suffer at all with Nokia,how I can solve this problem?

    mostafa182 wrote:
    ... how I can solve this problem?
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • Splitting an event takes more than 3 min

    Hi,
    I have about 8.000 photos in my library and 2.500 photos in a single event. Now I want to extract a set of pictures from this event and move it in a new event. Is there a faster way doing this than splitting the event before and after the set of pictures? This created 3 events and then I have to move the 3rd event back into the first, the 2nd event is what I want to keep.
    BTW, with over 8.000 pictures in the library, is it normal that splitting an event takes more than 3 minutes?

    Danielle
    Flag the pics you want to move to the new Event and the go Events -> Create Event from Flagged Photos. That will probably be faster.
    BTW, with over 8.000 pictures in the library, is it normal that splitting an event takes more than 3 minutes?
    I wouldn't have thought so, but it might take a while with an Event that has more that 2,500 pics in it. Remember, Events in the iPhoto Window correspond exactly with the Folders in the Originals Folder in the iPhoto Library package file (Right click on it in the Pictures Folder -> Show Package Contents). So splitting an event literally means creating a folder and moving files to it and so on.
    Regards
    TD

  • I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why?

    I used scripting brigde to add a movie that has size bigger than 5GB, exactly after two minutes iTunes return a failed, but the processing of the file is actually added to iTunes Library successfully. The copying take more than 5 minutes to complete. Why the iTunes Scripting Brigde returned failed when it is actually success? It occurred exactly 2 minutes after submit the request to Scripting Brigde. Is this 2 minutes related to the Apple Event time out? if it does, how do I get around this problem? thx

    I can tell you that this is some of the absolutely worst customer service I have ever dealt with. I found out from a store employee that when they are really busy with calls, they have third party companies taking overflow calls. One of those companies is Xerox. What can a Xerox call center rep possibly be able to authorize on a Verizon account?  I'm Sure there is a ton of misinformation out there due to this. They don't note the accounts properly or so everyone can see them. I have been transferred before and have asked if they work for Verizon or a third party also and was refused an answer so, apparently they aren't required to disclose that information. I spent a long time in the store on my last visit and it's not just customers that get the runaround. It happens to the store employees as well and it's beyond frustrating.

  • MacBook pro takes more than 10 minutes to start with ML ?

    My Macbook pro takes more than 10 minutes to start. I press Start and it takes more than 10 minutes before I can enter my password. Need your help !

    Sounds like time for a PRAM reset. Here's how:
    1. Power down the machine.
    2. Locate the following keys on your keyboard in preparation for Step 4:
    ‘command’ – ‘option’ – ‘P’ – ‘R’
    3. Press the ‘power on’ button.
    4. Immediately – and before the grey screen appears – hold down ‘command-option-P-R’ all together.
    5. Keep them held down until you’ve heard the start-up chime twice. After you release them you should hear it again, and hopefully your Mac will boot up as normal.

  • I am having the  problem . it says it shouldnt take more than 3 minutes then i get this message Could not activate iphone. i have taken the sim card out and put it back in even then its of no use. if any one out there can help us it would be very nice

    i am having the  problem in my 3gs iphone. it says it shouldnt take more than 3 minutes then i get this message Could not activate iphone.
    i have taken the sim card out and put it back in even then its of no use.
    if any one out there can help us it would be very nice of them. thank you for your time.

    I can not get to iPhone screen, so no way to get to Settings. That is the problem. When I connect phone to iTunes I get screen asking to insert SIN card. On the phone I'm getting Cinfigure screen asking Launguage , Country or Region, Wi-Fi, ( I can connect to my home wi-fi), and last screen "Activating your iPhone". After two minutes of waiting IM getting message: Your iPhone could not be activated because the activation server in temporary unavailable. try connecting to iTunes or try later or contat apple.com/support.
    Like I mention, I went to Bell as well Rogers store and tried to insert active SIM card with no results.
    Yes, my friend unlock the phone to use with Rogers but I don't know where

  • How to make an indicator takes more than one input

    Hello,
    I want to know how to make an indicator ( like gauge for example) response to more than one case strrcuture result. In other words, how the indicator can take more than one input and move based on different input values ( the arrow of the gauge moves to different angles basesed on the logic structure and not only to one degree).
    Thanks in advance,
     

    YES, you got it right Coastal !
    This is what i want to do,
    I dont know how to establish this output in the software, i am still learning LabVIEW.
    I put a merge block to join the outputs but it didnt work.
    check it in the attached VI file.
    I am sure it is an easy thing but I dont know how to implement it.
    Any help you provide is appreciated,
    Best wishes 

  • I have been using USB 2.1 10/100M ethernet adaptor. But it takes more than 15 mins to detect network interface. What should I do. I am not using apple's company adaptor. It's local company.

    I have been using USB 2.1 10/100M ethernet adaptor. But it takes more than 15 mins to detect network interface. What should I do. I am not using apple's company adaptor. It's local company.

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Is it normal if it takes more than 5 hrs to download and process ios 5 and backup in itunes (syncing)

    is it normal if it takes more than 5 hrs to download and process ios 5 and backup in itunes (syncing)

    Hi Thaimic,
    Thanks for your reply.
    IP Adddress: 192.168.0.101
    Subnetmask: 255.255.255.0
    Router: 192.168.0.7
    DNS: 180.168.255.118, 192.168.1.1
    These are my WLAN details.under DHCP and BootP. Could you please tell me what to do with the DNS ? I do not have idea about the DNS.

  • When I restart my Mac, the grey screen appears like usual. But it takes more than 40 minutes (more) for it to load to finish restarting the Mac. What should I do?!

    When I restart my Mac, the grey screen appears like usual. But it takes more than 40 minutes (or more) for it to load to finish restarting the Mac. What should I do to fix it?!

    Disconnect all devices from your computer if you have not already done so.  Restart again.  If the problem has been resolved, you had a peripheral conflict.  You will then have to reconnect the devices one at time, restart,  to locate the culprit.
    Login Items is another culprit.  Check your login items.
    System Preferences>Accounts>Login Items
    Delete/disable all you do not need or want.

  • Is it true that iPhone 4s does not allow to take more than 1000 photos?

    Hi!
    Is it true that iPhone 4s does not allow to take more than 1000 photos?
    http://dolboeb.livejournal.com/2299939.html

    Not true.
    Only Photostream is allowed to take a max of 1000 photos, then they will be removed from server/icloud.

  • RMAN archive backup takes more than 1 hour.

    Hello,
    We execute the following command from HP Data Protector 5.50 in order to backup archives from an Oracle 8.1.7 database running in HP-UX 11.00:
    run {
    allocate channel 'dev_0' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    allocate channel 'dev_1' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    allocate channel 'dev_2' type 'sbt_tape'
    parms 'ENV=(OB2BARTYPE=Oracle8,OB2APPNAME=inf,OB2BARLIST=Oracle_Archivers_Inf)';
    sql 'alter system switch logfile'
    sql 'alter system archive log current'
    backup
    filesperset 1
    format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
    archivelog until time 'SYSDATE-2'
    delete input;
    backup
    filesperset 1
    format 'Oracle_Archivers_Inf<inf_%s:%t:%p>.dbf'
    archivelog all;
    This process takes more than 2 hours for just 3 GB and we don't think this is network issue.
    Is our RMAN command doing more thinks than just archives backup?
    Almost at the end of backup we get following message:
    Default exp binary /INF/oracle/app/product/8.1.7/bin/exp/ is used for catalog export.
    Does this message mean an export is done at the end of archive backup?
    Note that message belongs it is more than 2 hours later.
    Thanks in advance for your help.
    Regards,
    Carles

    Yes, it appears one of your utilities is doing an export backup, check HP Data Protector settings.
    -- and/or -- you are having tape problems: ... type[b] 'sbt_tape'

  • Ldap search query takes more than 10 seconds

    LDAP query takes more than 10 seconds to execute.
    For validating the policy configured, the Acess Manager(Sun Java System Access Manager) contacts the LDAP (Sun Java System Directory Server 6.2) to get the users in a dynamic group. The time out value configured in Access Manager for LDAP searches is 10 seconds.
    Issue : The ldap query takes more than 10 seconds to execute at some times .
    The query is executing with less than 10 seconds in most of the cases, but it takes more than 10 seconds in some cases. The total number of users available in the ldap is less than 1500.
    7 etime =1
    6 etime =1
    102 etime=4
    51 etime=5
    26 etime=6
    5 etime=7
    4 etime=8
    From the ldap access logs we can see the following entry,some times the query takes more than 10 seconds,
    [28/May/2012:14:21:26 +0200] conn=281 op=41433 msgId=853995 - SRCH base="dc=****,dc=****,dc=com" scope=2 filter="(&(&(***=true)(**=true))(objectClass=vfperson))" attrs=ALL
    [28/May/2012:14:21:36 +0200] conn=281 op=41434 msgId=854001 - ABANDON targetop=41433 msgid=853995 nentries=884 etime=10
    The query was aborted by the access manger after 10 seconds.
    Please post your suggestions to resolve this issue .
    1.How we can find out , why the query is taking more than 10 seconds ?
    2.Next steps to resolve this issue .

    Hi Marco,
    Thanks for your suggestions.
    Sorry for replying late. I was out of office for few weeks.
    1) Have you already tuned the caches? (entry cache, db cache, filesystem cache?)
    We are using db cache and we have not done any turning for cache. The application was working fine and there was no much changes in the number of users .
    2) Unfortunately we don't have direct access to the environment and we have contacted the responsible team to verify the server health during the issue .
    Regarding the IO operations we can see that, load balancer is pinging the ldap sever every 15 seconds to check the status of ldap servers which yields a new connection on every hit. (on average per minute 8 connections - )
    3) We using cn=dsameuser to bind the directory server. Other configuration details for ldap
    LDAP Connection Pool Minimum Size: 1
    LDAP Connection Pool Maximum Size:10
    Maximum Results Returned from Search: 1700
    Search Timeout: 10
    Is the Search Timeout value configured is proper ? ( We have less than 1500 user in the ldap server).
    Also is there any impact if the value Maximum Results Returned from Search = set to 1700. ( The Sun document for AM says that the ideal value for this is 1000 and if its higher than this it will impact performance.
    The application was running without time out issue for last 2 years and there was no much increase in the number of users in the system. ( at the max 200 users added to the system in last 2 years.)
    Thanks,
    Jay

  • QUERY TAKES MORE THAN 30 MINUTES AND IT'S CANCELED

    Hi
    I have one workbook and sometimes it takes more than 30 minutes to be executed, but Discoverer cancels it, Does anybody know how to alter this? I mean if the query takes more than 30 minutes i need it to be finished.
    Any help will be appreciated.
    Best Regards
    Yuri López

    Hi
    You need to alter the timeout settings and these are located in multiple places.
    Discoverer Plus / Viewer using this workflow:
    1. Edit the pref.txt file on the server located here: $ORACLE_HOME\discoverer\util
    2. Locate the preference called Timeout and change it to your desired value in seconds. The default is 1800 which means 30 minutes
    3. Save pref.txt
    4. Execute applypreferences.bat if running on Windows or applypreferences.sh if running on Linux or Unix
    5. Stop and restart the Discoverer server
    Discoverer Administrator using this workflow:
    1. Launch Discoverer Administrator
    2. From the menu bar, select Tools | Privileges
    3. Select the user
    4. Open the Query Governor tab
    5. If "Prevent queries from running longer than" is checked, increase the limit
    6. Click OK
    Note: if "Prevent queries from running longer than" is not checked then the Timout in the pref.txt controls how long before the queries stop. If it is checked and it is lower than Timeout you need to increase it.
    Let me know if this helps
    Best wishes
    Michael Armstrong-Smith
    URL: http://learndiscoverer.com
    Blog: http://learndiscoverer.blogspot.com

  • Save an empty document in InDesign CC and Illustrator CC takes more than 3 min.

    Save an empty document in InDesign CC and Illustrator CC takes more than 3 min.
    The same if you open an empty document.
    I monitored the application status using Activity Monitor and every time I saved a document the application didn't respond then, after about three minutes, comes back to life.
    I'm working on a MacBook Pro, 2.6 Ghz, 8 Gb Ram with OS X 10.9.
    Please let me know If someone else had the same issue because I use Adobe softwares not only for my personal job but also to show people how Adobe software works...
    Thanks.
    Andrea Spinazzola

    Adobe Drive is the reason!
    Please communicate this to everybody massively because I think is the reason why many Adobe CC users refer about bad performance.
    I heard many issues related to this and no one talk about this.
    Thanks Hank.

Maybe you are looking for