Sampsperchantoacquire =1 gives error -200077

using either DAQmxCfgSampClkTiming or DAQmxCfgImplicitTiming and setting SampsPerChantoAcquire to 1 gives error code -200077
I want to sample 6 channels exactly once as fast as possible - how should I do this?
Thanks!

Hello Britt,
You can use the basic structure of OneSample as a guideline and simply add on however many more channels you require (in this case 5 more). You would do this using the DAQmxCreateAIVoltageChan() function. The NI-DAQmx C Reference Help describes this function as follows:
DAQmxCreateAIVoltageChan
int32 DAQmxCreateAIVoltageChan (TaskHandle taskHandle, const
char physicalChannel[], const char nameToAssignToChannel[], int32
terminalConfig, float64 minVal, float64 maxVal, int32 units, const char
customScaleName[]);
Purpose
Creates channel(s) to measure voltage and adds the channel(s) to the task
you specify with taskHandle. If your measurement requires the
use of internal excitation or you need the voltage to be scaled by excitation,
call DAQmxCreateAIVoltageChanWithExcit.
You would simply call this function with the same taskHandle you are already using and list whatever channels you want as the physicalChannel[] input parameter. Also, as noted in the NI-DAQmx Help, the physical channel syntax can be used for a single channel or a range of channels. As described in this manual:
Physical Channel Syntax
<script type="text/javascript">
</script>
Use this syntax to refer to physical channels and groups of
physical channels in NI-DAQmx.
Physical Channel Names
Physical channel names consist of a device identifier and a slash
(/) followed by a channel identifier. For example, if the physical channel is
Dev0/ai1, the device identifier is Dev0, and the channel identifier is ai1. MAX assigns device identifiers to devices in the
order they are installed in the system, such as Dev0 and Dev1. You also can
assign arbitrary device identifiers with MAX.
For analog I/O and counter I/O, channel identifiers combine the
type of the channel, such as analog input (ai), analog output (ao), and counter
(ctr), with a channel number such as the following:
ai1
ctr0
For digital I/O, channel identifiers specify a port, which
includes all lines within a port:
port0
Or, the channel identifier can specify a line within a port:
port0/line1
All lines have a unique identifier. Therefore, you can use lines
without specifying which port they belong to. For example, line31—is equivalent to port3/line7 on a device with four 8-bit ports.
Physical Channel Ranges
To specify a range of physical channels, use a colon between two
channel numbers or two physical channel names:
Dev0/ai0:4
For digital I/O, you can specify a range of ports with a colon
between two port numbers:
Dev0/port0:1
You also can specify a range of lines:
Dev0/port0/line0:4
Dev0/line0:31
You can specify channel ranges in reverse order:
Dev0/ai4:0
Dev0/port1/line3:0
Physical Channel Lists
Use commas to separate physical channel names and ranges in a list
as follows:
Dev0/ai0, Dev0/ai3:6
Dev0/port0, Dev0/port1/line0:2
The implementation in which you specify 2 samples per channel in DAQmxCfgSampleClkTiming is probably not the best implementation. If you continue to specify 2 samples to read and then only pull 1 sample from the buffer in DAQmxReadAnalogF64 you will eventually overflow the buffer on the device. Also, you will not "lose" data, but I don't think you are getting the data you expect. The DAQmxReadAnalogF64 function will read the oldest available sample from the device; this isn't a problem when you are reading all the data that is in the buffer every time. However, in your implementation, you will be getting old data when you expect more recent. The figure below should demonstrate the problem with this scheme. The arrows represent the data that you are reading with the DAQmxReadAnalogF64.
This behavior is the default setting for the NI-DAQmx driver, but you can change it using the RelativeTo property. The description of this property is as follows:
RelativeTo
Data Type:
int32
Description:
Specifies the point in the buffer at which to begin a read operation. If you
also specify an offset with Offset, the read
operation begins at that offset relative to the point you select with this
property. The default value is DAQmx_Val_CurrReadPos unless you configure a Reference Trigger for the task. If you configure a Reference Trigger, the default
value is DAQmx_Val_FirstPretrigSamp.
Valid values
DAQmx_Val_FirstSample
10424
Start reading samples relative to the first sample
acquired.
DAQmx_Val_CurrReadPos
10425
Start reading samples relative to the last sample returned by
the previous read. For the first read operation, this position is the first
sample acquired or the first pretrigger sample if you configured a reference
trigger for the task.
DAQmx_Val_RefTrig
10426
Start reading samples relative to the first sample after the
reference trigger occurred.
DAQmx_Val_FirstPretrigSamp
10427
Start reading samples relative to the first pretrigger
sample. You specify the number of pretrigger samples to acquire when you
configure a reference trigger.
DAQmx_Val_MostRecentSamp
10428
Start reading samples relative to the next sample acquired.
For example, use this value and set Offset to -1 to
read the last sample acquired.
You can get/set/reset this property using:
  DAQmxGetReadRelativeTo
  DAQmxSetReadRelativeTo
  DAQmxResetReadRelativeTo
However, in your implementation, you would still face problems with overflowing the buffer. Instead, I would recommend that you read all available samples and either average the data or just discard the samples that are not applicable.
Finally, to address your question regarding the sample rate in DAQmxCfgSampClkTiming, the sample rate is accurate down to the specifications of the device you are using. The USB-6008/6009 User Guide here provides the following specification:
Timing accuracy..................................... 100 ppm of actual sample rate
The NI USB-621x Specifications here indicates:
Timing accuracy..................................... 100 ppm of actual sample rate
Message Edited by Matt A on 07-11-2007 10:39 AM
Matt Anderson
Hardware Services Marketing Manager
National Instruments
Attachments:
Dev Range Reverse.JPG ‏2 KB
DAQmx Read.JPG ‏13 KB
Dev Range.JPG ‏3 KB

Similar Messages

  • Error 200077 during Strain Gauge Calibration in Measurement and Automation Explorer V5.3.1f0

    Hey Guyz!
    I am experiencing a problem perfomring my shunt calibration using a 350ohm(GF 2) strain gauge connected with NI9949 and NI9237 in a NI cDAQ-9178 Hardware.
    When i click on strain callibration under configuration-Device: R3 being my shunt of 100k ohm, i can measure the errors and calibration but when i hit the calibration tab, it gives me an error 200077 occured at Strain Gauge Calibration (see aatached jpeg file for the error type).
    I don't know what is wrong, i have doublt-tripple checked my circuit, and have read the forums regarding the same error and have come across the "signal input range", in my case it is default kept at 1m max and -1m min. I am not sure how these values work.
    Any guidance would be appreciated.
    Thanks in advance.
    Attachments:
    error 200077.jpg ‏73 KB

    Hi
    This error code may be occurring due to the specified signal input range in max (-1m to 1m), being set to a value outside of the expected readings from your strain gauge.
    Also the Gage Factor, Gage Resistance, Initial Voltage, Vex Source, Vex Value (V), Lead Resistance and Strain Configuration need to be configured based on your sensor specification.
    This link gives more details on connecting strain gages to a DAQ device:
    http://www.ni.com/gettingstarted/setuphardware/dataacquisition/straingages.htm#StrainGageCalibration
    Hope this helps.
    Andrew.N
    Applications Engineer
    National Instruments

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • ITunes new version doesn't open at all. Gives error message

    I downloaded 7.4.3 version of iTunes and it doesn't open at all. Gives error message. "iTunes has encountered a problem and needs to close."
    I have previous version of iTunes in my spare HD, in the same computer, and it works perfectly fine.
    I have unistalled and re-installed again and again many times including with the help of Apple Support help in the phone and came up with no clues of what's going on.
    How can I get a previous version of iTunes to download to my PC? I have looking for a place on Apple's website where I could probably have my issue resolved, but I found nothing.
    Thank you.

    Thanks to Jim Zack, the problem is solved.
    If you're having this problem, go find the solution at the following page and read Jim's suggestion.
    http://discussions.apple.com/thread.jspa?threadID=1155613

  • Report server gives error

    i have installed oracle 9i AS (EE)on NT,
    Now i want to display reports in pdf/HTML on web broswer. For that i am trying to run report tester page given through broswer it is showing one page having Button(run report), when i click on that, it gives error unable to connected to database, and request rejected by report server. WHY ???
    i want to display reports through JSP How it can be done? Does anybody knows it?
    Naresh
    null

    Please check at http://<server>/dev60html/runrep.htm for follwings :
    01. your test.rdf must be in report60 folder
    02. your db must contain scott user
    03. connect string must be tested and give the same inplace of test
    04. your webhost may contain a dot, please check this should be the same as yours
    hope this will help
    bye !

  • Report builder error after applying sql server 2008R2 SP3 when click on report builder gives error like 'Application validation did not succeed. Unable to continue.

    Hi All,
    I applied SQL server 2008 R2 SP3 recently but report builder doesn't work since then
    When click on report builder gives error like 'Application validation did not succeed. Unable to continue.
    and when I try to see details the error summary like following:
    +File, Microsfot.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
    this is urgent.
    Please reply me asap.
    thanks a lot in advance.
    Regards,
    Nik
    Regards, Naman

    Hi nikp11,
    According to your description, you recently updated SQL Server 2008 R2 to SP3, Report Builder doesn’t work since then the error occurs: "Application validation did not succeed. Unable to continue".
    This is an known issue in SSRS 2008 R2 SP3 that Microsoft has published an article addressing this issue. It is not planning to release a fix for this issue. But we could implement one of the following workarounds:
    Install and run Report Builder 3.0 of SQL Server 2008 R2 RTM.
    Install and run Report Builder of SQL Server 2014.
    Uninstall Service Pack 3 then uninstall Service Pack 2 and then reinstall Service Pack 3.
    Reference:
    Report Builder of SQL Server 2008 R2 Service Pack 3 does not launch
    Thank you for your understanding.
    Best Regards,
    Wendy Fu

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • After upgrading to Lion Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    After upgrading to Lion, Image Capture does not work, even though it is intel software.  Gives error 9931.  What gives?

    Ouch, if it is indeed damaged, then sadly you need to restore the whole danged huge OS!
    Didn't used to be this way before Lion/10.7.
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to Update a clob column..it gives error string literal too long

    I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue
    ORA-01704: string literal too long

    Peeyush wrote:
    I am trying to update a clob column of a table but it gives error string literal too long plz tell me what's the issue
    ORA-01704: string literal too longThere's a problem with my car. It won't start. Why won't it start? Please tell me!
    Oh wait, you can't, because I haven't given you nearly enough information...
    In other words, if you would like help in trying to work out where you've gone wrong, you should provide a small enough example of your code that demonstrates the error. We might then actually stand a chance of being able to help you!

  • SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"

    If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
    reference not set to instance of object"

    Hi VikasJain13,
    According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
    Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
    if this table is still existing. 
    If you have any question, please feel free to ask.
    Simon Hou
    TechNet Community Support

  • GI installtion gives error while executing root.sh for ASM diskgroup

    Dear Gurus,
    We are implementing a 2 node RAC configuration with ASM on vmware and openfiler on LINUX RHEL 6.2. We started our installation with grid infrastructure. While executing root.sh on node 1 it gives error diskgroup cannot be mounted and no alterntions perfomed as below.
    +[main] [ 2012-10-04 05:38:33.150 PDT ] [UsmcaLogger.logException:173] SEVERE:method oracle.sysman.assistants.usmca.backend.USMDiskGroupManager:mountDiskGroups+
    +[main] [ 2012-10-04 05:38:33.151 PDT ] [UsmcaLogger.logException:174] ORA-15032: not all alterations performed+
    ORA-15017: diskgroup "CRS" cannot be mounted
    ORA-15088: diskgroup creation incomplete
    +[main] [ 2012-10-04 05:38:33.338 PDT ] [UsmcaLogger.logException:175] oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-15032: not all alterations pe+
    rformed
    ORA-15017: diskgroup "CRS" cannot be mounted
    Note:- we are not using ASMLib. We presented the LUN's to oracle binaries with Multipathing.

    Put here relevant info of alertlog of ASM and CRS.
    Please format your text by using tag at begin and end of output.                                                                                                                                                                                                                                                           

  • Time Characteristics not become active gives error in BW 7.4

    Hi Experts
    We have imported IO's in BW 7.4. Some info Objects are active but some are not getting active specially Time Char.
    It gives error while activating. I am attaching the error image. I am looking forward experts input how these Time Info objects can activate.
    Thanks
    Sweta

    There may be inconsistencies with table entries for table 'RSDCHATHJ'. Please check them.
    Regards,
    Jagan

  • Playing mp4 audio gives error message "Video can't be played because the file is corrupt"

    Playing a particular mp4 audio file directly from a website link gives error message "Video can't be played because the file is corrupt". However other mp4 audio files from this same website do work correctly. What can I do to get all the the mp4 audio files to play directly from the same website? I must have the correct plugins, etc. since the other files play. This file is not playing from YouTube, is it on the website.
    Thank you for your help.

    What is the link to the site and file in question?
    MP4 files should be handled by Firefox itself, not a plug-in.
    # Click the ≡ Menu Button and choose Add-ons.
    # Click Plugins.
    # Set every plug-in to "Never Activate".
    # Try loading the file again. Is there any difference?
    You have two versions of Flash Player installed. Perform a clean installation of Flash Player as follows.
    # From the following page, save the uninstaller somewhere handy, like the desktop.
    #* [http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-windows.html#main_Download_the_Adobe_Flash_Player_uninstaller Uninstall Flash Player for Windows | Adobe Support]
    # From the following page, save the installer for other browsers. If you also use Flash Player in Internet Explorer, also save the ActiveX version.
    #* [http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#main-pars_text_4 Direct downloads of Flash Player for Windows | Adobe Support]
    # Exit all applications.
    # Run the uninstaller.
    # In Windows Explorer, try to open the following folders. If they still exist, delete them manually.
    #* <pre>C:\Windows\system32\Macromed\Flash\</pre>
    #* <pre>C:\Windows\SysWOW64\Macromed\Flash\</pre>
    #* <pre>%AppData%\Adobe\Flash Player\</pre>
    #* <pre>%AppData%\Macromedia\Flash Player\</pre>
    # Restart your computer.
    # Run the installer for other browsers.
    # Run the ActiveX installer if you downloaded it.

  • In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again.

    In Windows 7, iTunes  gives error message "An iPhone has been detected, but it could not be identified properly. Please disconnect and reconnect the phonon then try again."
    I have a iphone 4S. It has been activated on Win 7 computer and synced. But overnight this meassage reappears.

    I have same error except that i get it even when my phone is not connected.

Maybe you are looking for