Minimum timeout for read operation in PCI-6052E.

Hi,
I am running an application at 600Hz where I must read data from a deice using the PCI-6052E. Running at 600Hz, i.e Ts=1/600 second, my read timeout in the DAQmxReadAnalogF64 function must be < Ts. Although, the application starts fine after few reading cycles, the application crashes  with a DAQmx error:
"DAQmx Error: Measurements: Specified operation did not complete, because the specified timeout expired.".
knowing that the PCI-6052E can operate at 1Khz rate, taht is T=0.001, I find it wired that it is crashing for timeout I am using Tout=0.7*Ts whic is > than T. 
What is the minimum timeout required?
Thanks.
Elias
"A man can succeed at almost anything for which he has unlimited enthusiasm."

Hi,
Timeout specifies the amount of time in seconds to wait for
samples to become available. If the time elapses, the VI returns an error and
any samples read before the timeout elapsed. The default timeout is 10 seconds.
If you set timeout to -1, the VI waits indefinitely. If you set timeout to 0,
the VI tries once to read the requested samples and returns an error if it is
unable to.
By available we refer to the data that has been acquire by
the card and placed into the buffer. You are doing a on sample at a time and
that you are not using the onboard clock. Since you are not using the onboard
clock you don’t have determinism on the rate at which you acquire the samples. “I
think by default the 6052E clock is 1KHz”, incorrect if you select your timing
as on “sample on demand” the rate is controlled by your “timed loop” but since
you are not in a Real Time OS you don’t control the rate of the loop, at least
at very high rates, you may run the first couple of iteration at one speed, then something happens on your PC and you CPU load increases, changing the rate of the while loop.
You have two options to set the rate you can do a software
timed operation (i.e. like you are doing right now), but it will be depended on
your OS and your CPU load or you can do a hardware acquisition where an onboard
clock controls the rate of the acquisition.
“I do not expect this to happen especially that the
PCI-6052E device used in doing the reading operation can run up to 1 KHz. I am
not sure what the problem is.” The problem here is that is not the 6025e not
been able to keep up is your computer. Look at the examples in: C:\Documents
and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx
ANSI C\Analog In\Measure Voltage\ and let me know if they help.
You can post your code and I will lok at it if you want
I hope it helps
Jaime Hoffiz
National Instruments
Product Expert
Digital Multimeters and LCR Meters

Similar Messages

  • Set a timeout for "read from text file"

    I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
    Is there a way to set a timeout for the read from text file function, or is there an other solution?
    Thank you

    You could check that the path is valid first before you attempt to read the file.  hen put the file read in a True-False case structure based on the results of the check.  You can use the function "Check if File or Folder Exists"  It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files.   The function is found in the File I/O --> Advanced File Functions palette.
    Tom

  • Audit logs for read operation on tables

    I have a requirement of implementing audit logs for tables on read / select operation in addition to insert,update,delete operations. Is there any way to achieve this since triggers are present only for insert,update and delete ?
    thanks in advance

    Hi,
    yes there are many ways you can audit the Source database according to your requirments. as you need to audit the select , insert etc you can audit in many ways
    1) By implementing policies , (i.e) FGA , or statement policy on a given table or a given user.
    2) you can also do the required task by implementing the alerts on specific conditions like select on a specifc table etc
    you can use these utileties from AV console.
    Regards.

  • Oracle Migration Tool giving Access denied error for Read operation

    Hi;
    Oracle Migration tool is giving access denied error when we are trying to Read a record for Access Profiles.
    We are getting (SBL-ODS-50085) error.This is happening only for few records(Access Profiles).
    Although the user role is administrator having full access and privilege (Manage User and Access checked).
    Pl. help me resolve the issue.
    Thanks!

    Hi,
    Does it happen when you try to read "any" Access Profile?
    If yes, please have a look at the
    "Admin: Users and Access Controls - Manage Users and Access - Manage Users and establish User Quotas. Define Access Profiles, Roles and Groups to manage data access controls." privilege in the role of the user you use for migration.
    In order to avoid any problem, I usually create a "Migration" role temporarily and assign this role ALL the privileges to avoid such failures at the time of export.
    Hope this helps,
    Best regards,
    Charles DUBANT.
    http://www.dubant.com/

  • PCI-6254 DIO Read - Need to know how to trigger the Read operation??

    Hi,
    Can anyone help me with DIO Read operation using PCI-6254 (DAQmx)??
    here'e the breakdown of the issue i'm having:
    i'm doing a DIO Read using DAQmx drivers, and am using "one channel for each line" on the Port 0.
    i'm using another line for DIO Write at the same time...infact the DIO write sends the bit pattern
    and inturn triggers an external device, and am trying to capture the response of ext. device on
    other line thro' DIO READ...
    now, i do see the bit pattern on the Oscope, but am not reading the bit pattern using DAQmx Read?
    (i'm reading all ZEROS)
    Currently, i'm not using DAQmx Trigger? i tried using it, but was getting an error...
    i guess i need to trigger the read when the line goes high/low (for ex)
    can anyone help me with this?
    Regards,
    rkpat

    Hi rkphat,
    DIO operations on an M Series device cannot be configured for triggers. The source of the DIO sample clock must be set up for the trigger and the DIO operation should just be configured to receive that clock. You must provide an external clock or a clock generated by another subsystem, such as an analog input sample clock or a counter pulse train output, to clock digital operations. For example, if you were going to use the analog input sample clock to clock your digital measurements, you would configure your AI subsystem to receive a start trigger and to use an internal clock. Once the trigger arrives, the AI Sample clock is generated and passed to the DIO subsystem. Or if you wanted to use a counter to generate the clock, you would set the counter up for pulse train generation with a digital start trigger.
    If you post your code we can find out why the Digital Read is not returning the correct data.
    Cheers,
    Lesley Y.

  • Multiple File Location in Read operation in File Adapter.

    Hi,
    I am using File Adapter for Read operation. Normally we would make a Logical Directory for reading files at that location. But I have come up with a scenario where we need to read file from 6 different File locations.
    Is there any way that the same BPEL process can read file from 6 different locations.
    OR
    Do I need to make 6 BPEL processes to read file from 6 different locations.
    I am using Oracle SOA 10.1.3.4 and JDeveloper 10.1.3.4.
    Will really appreciate if someone can help in this regard.
    Thanks for the needful.
    Cheers,
    Varun

    Hi Oracler,
    Thanks for your reply.
    As suggested, the BPEL process with six different file adapters for six different directories and put them on each of the six branches of the pick activity. Will there be any performance oriented issues if you use six adapters for polling at 6 different locations??
    Also, the other solution that you have provided from this link Re: Can we have dynamic folder for Polling in BPEL works fine. One of a problem that I encounter while using this solution is that everytime you do any chnages in your BPEL process, the entries from bpel.xml are missing.
    Thanks for the needful.
    Cheers,
    Varun

  • Does xa transaction enable by default for reads also?

    Our environment is weblogic 11g, oracle, jms and mostly webservices.
    Using XA driver. datasource as TX
    Transactions are working fine for all the updates, we are wrapping the statements with begin, commit/rollback.
    Problem is, it is also using the transactions for database read operations. In the code, we are not explicitely opening any transactions. Do i have to change the settings somewhere? Or manually disable the transaction in the code for read operations?
    Edit: we are also using Spring framework, does the transactions getting initiated from spring? I dont have much experience with it.
    Edited by: user1021516 on Sep 9, 2011 11:39 AM

    OS X uses the connection that is first in the list of ports in Network preferences. You can rearrange by clicking on the options button below the list, select re-order, then arrange. OS X also by default connects to the Ethernet port to which the cable is connected unless you have both ports connected to separate routers. Then the order is determined by the port listing.

  • ViClose session not called after Read operation Timeout in an IVI COM driver

    Hi everybody
    I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
    If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
    Thansk
    sorinvalea

    So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
    I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
    So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

  • Cannot sync, error message reads" not enough access privileges for this operation

    When trying to sync my ipad and iphone with my PC i get this error message "Cannot be sybced. You do not have enough access privileges for this operation". I have a new PC but i have successfully synced these devices before. can anybody please help ?

    Just thought I'd put out an update on my problem. It has been solved. I spoke to a tech at Apple at 1-800-275-2279. She had me try a few things that didn't help. Her last suggestion was to uninstall QuickTime and iTunes then reload. She sent me the uninstall instructions at http://www.info.apple.com/kbnum/n93698 which I followed. When speaking to her I told her I was afraid to do this because I saw other people on the discussion board who tried this and lost all of their music. She assured me that that wouldn't happen. I did the uninstall then the install. (Just a note here, I also read on the message board that someone said that to cure this problem you should do the install then open up QuickTime before opening iTunes. I did this also but don't really know if it made a difference.
    Bottom line is I uninstalled QuickTime and itunes per the instructions at the site shown above. I then installed both again from www.apple.com/itunes/download. After the download I ran the install and unchecked the box to let itunes start after the install. I then opened Quicktime then closed it. I then opened iTunes and all of my music was there and I didn't get the anoying "iTunes is not set as the default player" and the error after trying to set it. The problem described in my first posting of copying CD's is also gone. So beleive it or not, EVERYTHING is working just like it should. Some of the above steps might not be required but I would follow them step by step because I know they worked for me.

  • HT1660 I'm getting a message that reads 'The iTunes Library file cannot be saved. You do not have enough access privileges for this operation." Why is this? And how can I fix it?

    I'm getting a message that reads 'The iTunes Library file cannot be saved. You do not have enough access privileges for this operation." Why is this? And how can I fix it? I'm worried that I'm going to lose my entire library because of this.

    A belated reply, as the problems itunes has have discouraged me from using it much. If you uncheck the "read only" box, it doesn't stay that way! Next time you use it, the box comes up checked.
    I'm still having that problem, even when I open iTunes as administrator.
    I've yet to see the answer to this problem. I use itunes mostly to download audiobooks, and I'm ready to download more, and want to save them!

  • How can I get ITunes to work again? Error message reads. "You do not have enough access privileges for this operation!

    Why do I get a message, "You do not have enough access privileges for this operation"? This has not been a problem before.

    Hello wdesertman,
    Thank you for contacting Apple Support Communities.
    This article explains what is going on and how to correct it:
    support.apple.com/kb/TS1277
    http://support.apple.com/kb/TS1277
    Regards,
    Jeff D.

  • Invalid operation for read only resultset:

    Hi.
    I'm developing an app that connects to Oracle, but I ran into the following problem:
    When I create a Statement, I specify
    that I need an Updatable ResultSet with the following code:
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
    ResultSet.CONCUR_UPDATABLE);
    ResultSet rset =stmt.executeQuery(somesql);
    When I try to update the ResultSet, I get an SQLException: java.sql.SQLException: Invalid operation for read only resultset: updateString
    Am I
    doing something wrong or is this a bug?
    Any info is greatly appreciated.
    null

    There are limitations on the kinds of queries you can perform. If the query is not suitable for update, it reverts back to readonly automatically. Read the below article about limitations and examples.
    http://technet.oracle.com/doc/oracle8i_816/java.816/a81354/resltse2.htm
    null

  • My PowerBook-G4 operating system software - Mac OS X 10.5.8 - does not meet minimum requirements for downloading the latest version of  FireFox ... is there an Update for a newer version of my op.sys. software,  or,  what is a better choice of an Upgrade?

    my PowerBook-G4 operating system software  - Mac OS X 10.5.8 -  does not meet minimum requirements for downloading the latest version of  FireFox ... is there an UpDate  to a newer version of my op.sys. software,  Or,  what is a better choice of an UpGrade to a newer/different op.sys. software ?
    Thanx!

    The best maintained PowerPC browser at the moment is TenFourFox:
    http://www.floodgap.com/software/tenfourfox/
    It is a Mac port of a newer version of FF thatn any PowerPC Mac can support natively. It runs, looks and feel like FF.
    I found some add-ons that helped TFF with speed issues. Pleae see my post in another PPC forum:
    FYI: Speed-up for TenFourFox on PowerPC

  • 17076 : Invalid operation for read only resultset

    Hi,
    I am trying to update database table through java jdbc application.
    But while running the program i am getting the error message " Invalid operation for read only resultset: updateString " with error code 17076.
    My program is given below :
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class Misc2 {
    public static void main(String[] args) {
    Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    try {
    con = JDBCUtil.getOracleConnection();
    stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    String query = "select * from employees";
    rs = stmt.executeQuery(query);
    while (rs.next()) {
    String fname = rs.getString(3);
    if (fname.equalsIgnoreCase("Elmer")) {
    rs.updateString(3, "Mark");
    rs.updateString(2, "Robert");
    break;
    } catch (SQLException ex) {
    System.out.println("error code : " + ex.getErrorCode());
    System.out.println("error message : " + ex.getMessage());
    } finally {
    JDBCUtil.cleanUp(con, stmt);
    ****JDBCUtil Class****
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    public class JDBCUtil {
    public static Connection getOracleConnection(){
    Connection con = null;
    try{
    // Load the driver
    Class.forName("oracle.jdbc.driver.OracleDriver");
    //Establish Connection
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","ex","ex");
    }catch(Exception ex){
    ex.printStackTrace();
    return con;
    public static void cleanUp (Connection con , Statement stmt){
    // Release the resource
    try{
    if(con != null){
    con.close();
    if(stmt != null){
    stmt.close();
    }catch(Exception ex){
    ex.printStackTrace();
    Please help me to fix this issue.

    >
    But while running the program i am getting the error message " Invalid operation for read only resultset: updateString " with error code 17076.
    >
    Your result using 'SELECT *' is not updateable. Gimbal2 was pointing you in the right direction. You have to specify the columns in the select list to get an updateable result set.
    You also need to use 'updateRow()' to update the database and have a commit somewhere to keep the results.
    This code works for me. Note that I added an explicit SELECT list, the 'updateRow()' method and an explicit COMMIT.
        try {
            con = getOracleConnection();
            stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    //        String query = "select * from employees";
            String query = "select first_name from employees"; -- added explicit SELECT list
            rs = stmt.executeQuery(query);
            while (rs.next()) {
                String fname = rs.getString(1);
                if (fname.equalsIgnoreCase("Adam")) {
                    rs.updateString(1, "Mark");
                    rs.updateRow();                                    -- need this statement to actually update the database
    //                rs.updateString(2, "Robert");
                    break;
            con.commit(); -- added explicit commit for testing
        } catch (SQLException ex) {See Performing an UPDATE Operation in a Result Set in the 'Updating Result Sets' section of the JDBC Developer's Guide and Reference
    http://docs.oracle.com/cd/B28359_01/java.111/b31224/resltset.htm#i1024720
    As gimbal2 also alluded it is considered poor practice to use column numbers to perform result set operations when you don't know for certain what column a given number refers to. Before people start jumping all over that statement let me clarify it. The key part is KNOWING what column you are referencing. It is more performant to access result column columns by column number rather than by column name since the methods that take a column name call the integer method under the covers anyway but have to search the array of column names in order to get the column number.
    With your query (SELECT *) there is no way to be sure the column order is the same since the table could be redefined with the columns in a different order or certain columns having been deleted. So for performance LOOP processing column numbers are used inside the loop but those column numbers are determined by using the metadata BEFORE the loop to convert column names to column numbers.
    That way you code (BEFORE the loop) can use column names but you use a set of integer variables (one for each column) for the actual access inside the loop.

  • This operation is not available for read only field 'Type MVF'

    Hi All,
    We are using OrderToCash PIP and we are on Siebel 8.1X.
    While Synching the customer from Ebiz to Siebel facing the following issues:
    Method 'WriteRecord' of business component 'Account' (integration component 'Account') for record with search specification '[Row Id] = "2d3434313239353"' returned the following error:"This operation is not available for read only field 'Type MVF'.(SBL-DAT-00402)"(SBL-EAI-04451)
    Please suggest us what steps to be done in Siebel.
    Thanks
    Maanasa

    First check the process why this is calling Account BC WriteRecord(). The field "Type MVF" might be read only and this sync process is trying to update this field which is read only. This is the reason for the error. Check the OM log / EAI Obj Manager Comp log (set log level to 5) and check.
    Joseph Arul Dass

Maybe you are looking for

  • Arch i686 and RuneScape HD Issues

    I know that I'll get yelled at by some people for wanting to play RuneScape, but let's forget about that for now. I have xorg installed with the xf86-video-ati driver for my Radeon X850XT card, the driver seems to be working just fine with everything

  • How can I un-share media categories using Home Sharing & Apple TV?

    I just got an Apple TV device, which is working wonderfully so far. I would like to only share the category MOVIES with my Apple TV, and disable my music, home movies, podcasts, etc. I am having difficulty seeing how to change this preference. I see

  • How to open CR2 files in photoshop elements 10

    Who knows how to open CR2-files from a Canon Powershot S100 in Photoshop Elements 10?

  • SPUM4 not doing anything

    Hi, I'm doing an upgrade from 46C to ECC6, switching to unicode from a MDMP system. I've finished the prepare and I'm trying to run SPUM4. I've initialized the language list, all the tables are in initial status. When I select a group of tables and s

  • Mapping webservice url

    Hi, Is there any way I can map my webservice similar to the way you map a Servlet in the web.xml? ie. currently my webservice url is: http://localhost:7001/Inventory/mtn/inventory/InventoryService.jws I would like to make it something like: http://lo