Incorrect handling null XPath

Hello

I need help with something with that I'm struggling

When I wrote <? xdoxslt:IfElse ((CF_OP_BAL > 0), (CF_OP_BAL + xdoxslt:sum(DEBIT)),xdoxslt:sum(DEBIT))?) > it works fine...

but now I need to manage xdoxslt:sum (DEBIT) null...

so, I tried...

<? xdoxslt:IfElse ((CF_OP_BAL > 0), (CF_OP_BAL + decode(xdoxslt:sum(DEBIT),",0,xdoxslt:sum(DEBIT)),decode(xdoxslt:sum(DEBIT),",0,xdoxslt:sum(DEBIT)))? >))


This gives XPATH Incorrect error...


Concerning
Rigot

Hello

Try:

0),(CF_OP_BAL+sum(DEBIT[.!=''])),(sum(DEBIT[.!=''])))?>{code}Regards,
Colectionaru

Edited by: Colectionaru on Dec 15, 2008 7:36 AM                                                                                                                                                                                                                                                                                                                                                                                    

Tags: Business Intelligence

Similar Questions

  • Handle NULL values in BPEL

    Hello

    What follows is my payload-
    < variableentree >
    -part name = "payload" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    -ns1:CancelCollectionRequest xmlns:ns1 = "http://xmlns.uns.com/SoaCcb/StartService" >
    < ns1:TransactionId > 123 < / ns1:TransactionId >
    < ns1:ExistingCustomerAccountId / >
    < ns1:ForceDateAppointment > true < / ns1:ForceDateAppointment >
    < ns1:PreAccountManagerCustomer > true < / ns1:PreAccountManagerCustomer >
    < / ns1:CancelCollectionRequest >
    < / part >

    If the value of ExistingCustomerAccountId is NULL - I should perform certain tasks
    and another series of tasks if the value of ExistingCustomerAccountId is NOT NULL

    Inside a switch block, I was hoping to make use of the Sub statement to check if the value is NULL
    bpws:getVariableData('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId') = "

    And statement above does not correctly handle scenario NULL.

    I was hoping that ora: countNodes('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId') will return zero, but it returns the value 1.

    No idea how to catch NULL condition in the above switch block?

    Appreciate any help.

    Thank you
    Shakur

    Hello

    Use something like below in the switch activity

    string-length(normalize-space(bpws:getVariableData('inputVariable','payload','/client:CancelCollectionRequest/client:ExistingCustomerAccountId')))>0 
    

    Kind regards

    Published by: Oraacler on July 20, 2010 11:56

  • How to handle nulls through oracle forms?

    Hello

    I have a column check box on the form (request mode) and it always display the check box selected even underlying column is null.

    Please can tell me how can I show checkbox only enabled when colum data has value Y and all other cases should be unchecked (even with null values from database)

    Thank you
    VB

    VB,
    Make sure that you set the following properties of the checkbox.

    * Functional
         * Value when checked = 'Y'
         * Value when unchecked = 'N'
         * Check box mapping of other values = 'Unchecked'  (Default = Checked)
    * Data
         * Initial Value = 'N'
    

    The important property is the 'check box, mapping of other values". This property indicates how to handle values that are not expected to Oracle Forms. This is what causes the box to be checked when the value is NULL.

    I hope this helps.
    Craig...

    If a response is appropriate or useful, please mark accordingly

  • Handle null values in the aggregate function

    Dear Experts,

    Here's my query

    SELECT sum (nvl (amount, 0)) + 50 AS TXN_PER_DAY_AMNT,

    COUNT (*) AS TRAN_LOG_TABLE TXN_CNT_PER_DAY

    (TRUNC (TXNDATETIME) = TO_DATE (SYSDATE, 'DD-MM-YY'));

    Exit from the MINE

    ------------------

    TXN_PER_DAY_AMNTTXN_CNT_PER_DAY
    NULL VALUE2

    Desired output

    ------------------------------

    TXN_PER_DAY_AMNTTXN_CNT_PER_DAY
    500

    I want to treat the null value,

    If my amount is null, it should replace 0 and add my 50 amount.

    Result must be 0 + 50 = 50;

    Help, please

    Maybe

    SELECT nvl (sum (sum() 50) AS TXN_PER_DAY_AMNT,

    -case when sum(amount) is null then 0 else end of COUNT (*) AS TXN_CNT_PER_DAY

    OF TRAN_LOG_TABLE

    Concerning

    Etbin

  • HtmlImporter incorrectly handles &lt; span &gt;

    I had a case of simple test as follows:

    <html>
    <body>
    
    <p>
         <span>
              <em>this is emphsize</em>
              <a href="http://cnn.com">link to cnn</a>
              and one line of text
         </span>     
    </p>
    
    </body>
    </html>
    

    Seems TextConverter.importToFlow () can not handle the tag nested correctly, span all the text < em > and < a > are deleted, just the last line ("and a line of text") have survived.

    The same html code appears fine in safari and firefox (on mac) which made me think that it is probably a bug importing? Looks like TextFlow like not nested within a single span tag stuff?

    any idea? Thank you.

    Note the

    this is italic
    

    in the example you posted. Did you mean This is in italics? If I make this change, I get the result you expected.

    -robin

  • How to handle null values in the RTF models

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the model that I used the code to print a section below or not.

    <? If: number (CF_ELE_CNT + CF_ELE_CNT1) > 0? >

    The problem is when no data in the second group it was created not the tag XML for CF_ELE_CNT1, if CF_ELE_CNT has 13, it does not always print this partucular article. If I remove the CF_ELE_CNT1 in the State, it works fine. I was wondering how to handle this.

    Any help would be appreciated!

    Thank you
    RAV

    Hey Rav,.

    Check my profile, you will find.

    purpose of fusion {point} [AT] gmail [dOt] com

  • How to handle the null value

    Hi all

    Can someone tell me how to handle null.

    I have a radio button, I need to capture the worth and inspiring I have a search criterion.

    If I select the radio button without problem. If I did not choose the option button it gives me the error.

    OAMessageRadioButtonBean var1 = (OAMessageRadioButtonBean) webBean.findChildRecursive ("job");
    If (var1! = null)
    {
    S1 = var1.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    }

    Please suggest.

    Kind regards

    Sangu

    S1 = (String) var1. GetValue (PageContext);

  • Problem of null external Table spaces

    Hello

    I am trying to create an external table from a txt file. What follows is the file example.txt source: -.

    "FCl"."SCl"."TCL".
    "abcd"."MONTES.
    'xyx '."OMNI.""DESROSIERS.



    I'm on the bottom of SQL to create an external table with the help of above mentioned source file:-

    [code]

    CREATE TABLE some_data_1 (FCOLUMN VARCHAR2 (50))

    , SCOLUMN VARCHAR2 (50).

    TCOLUMN VARCHAR2 (50))

    EXTERNAL ORGANIZATION

    (TYPE oracle_loader

    DEFAULT DIRECTORY TESTS1

    ACCESS SETTINGS

    (RECORDS DELIMITED BY NEWLINE JUMP 1

    FIELDS TERMINATED BY '\t '.

    SURROUNDED OF POSSIBLY "" "

    MISSING FIELD VALUES ARE NULL)

    FCOLUMN, SCOLUMN, TCOLUMN))

    LOCATION ("example.txt"))

    [\code]


    Here it is the result that I am receiving is bad, if you check the source above, file you will notice that there is no value in first row, second column. But running under result that cell have been removed and third cell (GET) value moves...

    ABCDMONTES
    XYXOMNIDESROSIERS

    The following are the results except I do not get.

    ABCDMONTES
    XYXOMNI

    DESROSIERS

    Can someone help me in solving this external table skip the question of the null value?

    When to use possibly locked clause time SQL * Loader & external table of type oracle_loader cannot handle null values that are not hatched with delimiters. Get rid of clause eventually closed and trim encompassing qouble quotes in a query. Compare:

    SQL > CREATE TABLE some_data_1)
    2 FCOLUMN VARCHAR2 (50).
    3 SCOLUMN VARCHAR2 (50).
    4 TCOLUMN VARCHAR2 (50)
    5                          )
    6 EXTERNAL ORGANIZATION)
    7 TYPE oracle_loader
    8 DEFAULT TEMP DIRECTORY
    9 ACCESS (PARAMETERS
    10 RECORDS DELIMITED BY NEWLINE JUMP 1
    11 FIELDS TERMINATED BY '\t '.
    12 EVENTUALLY FRAMED BY "" "
    13 MISSING FIELD VALUES ARE NULL)
    14                                                                          FCOLUMN char(20),
    15                                                                          SCOLUMN char(20),
    16                                                                          TCOLUMN char(20)
    17                                                                         )
    18                                           )
    RENTAL ('sample.txt') 19
    20                         )
    21.

    Table created.

    SQL > COLUMN FCOLUMN FORMAT A20
    SQL > COLUMN SCOLUMN FORMAT A20
    SQL > COLUMN TCOLUMN FORMAT A20
    SQL > select *.
    2 of some_data_1
    3.

    FCOLUMN SCOLUMN TCOLUMN
    -------------------- -------------------- --------------------

    ABCD MONTES

    XYX OMNI DESROSIERS

    SQL > DROP TABLE some_data_1
    2.

    Deleted table.

    SQL > CREATE TABLE some_data_1)
    2 FCOLUMN VARCHAR2 (20).
    3 SCOLUMN VARCHAR2 (20).
    4 TCOLUMN VARCHAR2 (20)
    5                          )
    6 EXTERNAL ORGANIZATION)
    7 TYPE oracle_loader
    8 DEFAULT TEMP DIRECTORY
    9 ACCESS (PARAMETERS
    10 RECORDS DELIMITED BY NEWLINE JUMP 1
    11 FIELDS TERMINATED BY '\t '.
    12 MISSING FIELD VALUES ARE NULL)
    13                                                                          FCOLUMN char(50),
    14                                                                          SCOLUMN char(50),
    15                                                                          TCOLUMN char(50)
    16                                                                         )
    17                                           )
    18 RENTAL ('sample.txt')
    19                         )
    20.

    Table created.

    SQL > select regexp_replace (fcolumn,'^ '? ") (. *?)"? ($', '\1') fcolumn,.
    2 regexp_replace (scolumn,'^ '? ") (. *?)"? ($', '\1') scolumn,.
    3 regexp_replace (tcolumn,'^ '? ") (. *?)"? ($', '\1') tcolumn
    4 of some_data_1
    5.

    FCOLUMN SCOLUMN TCOLUMN
    -------------------- -------------------- --------------------

    ABCD MONTES

    XYX OMNI DESROSIERS

    SQL >

  • Avoid Null lines in BI Publisher

    Hello

    I have an XML like:

    < group >
    < B > Group
    < / Group B >
    < Group c. >
    < / Group C >
    < / group >

    Group A do not always return the data, so, in the pdf output I vacuum ranks before appea real data of groups B and C together.
    Please help to avoid this.

    Thank you
    KP

    Check this box
    http://flexfields.blogspot.com/2011/04/bi-Publisher-handling-null-XML-value.html

  • REGEXP_SUBSTR for the list delimited by commas with null values

    Hello

    I have a column that stores a list of values comma-delimited. Some of these values in the list may be null. I'm having some trouble trying to extract the values using the REGEXP_SUBSTR function when null values are present. Here are two things I've tried:
    SELECT
       REGEXP_SUBSTR (val, '[^,]*', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]*', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS P POS P P
    --- - --- - -
    AAA   BBB
    SELECT
       REGEXP_SUBSTR (val, '[^,]+', 1, 1) pos1
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 2) pos2
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 3) pos3
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 4) pos4
      ,REGEXP_SUBSTR (val, '[^,]+', 1, 5) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    
    POS POS POS POS P
    --- --- --- --- -
    AAA BBB DDD FFF
    As you can see that neither calls work correctly. Anyone know how to change the regular expression pattern to handle null values? I tried various other models but could not get anyone to work in all cases.

    Thank you

    Martin
    -----
    http://www.ClariFit.com
    http://www.TalkApex.com

    Hi, Martin,.

    That's what you want:

    SELECT
       RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 1), ',') pos1
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 2), ',') pos2
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 3), ',') pos3
      ,RTRIM (REGEXP_SUBSTR (val, '[^,]*,', 1, 4), ',') pos4
      ,RTRIM (REGEXP_SUBSTR (val || ','
                          , '[^,]*,', 1, 5), ',') pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The query above works in Oracle 10 or 11, but in Oracle 11, you can also do it with only REGEXP_SUBSTR, without using RTRIM:

    SELECT
       REGEXP_SUBSTR (val, '([^,]*),|$', 1, 1, NULL, 1) pos1
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 2, NULL, 1) pos2
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 3, NULL, 1) pos3
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 4, NULL, 1) pos4
      ,REGEXP_SUBSTR (val, '([^,]*),|$', 1, 5, NULL, 1) pos5
    FROM (SELECT 'AAA,BBB,,DDD,,FFF' val FROM dual);
    

    The problem with your first request was that he was looking for sub channels of 0 or more non-virgules. There was as a substring. consisting of 3 characters starting at position 1, he returned "AAA", as expected. Then there was an another substring, the 0 characters, starting at position 4, so it returned NULL. Then, there was a substring of 3 characters starting at position 5, so he returned 'BBB '.

    The problem with your 2nd request was that he was looking for 1 or more non-virgules. 'DDD' is the 3rd this substring.

    Published by: Frank Kulash, on February 16, 2012 11:36
    Added Oracle 11 example

  • BUG Apex4.0 AnyChart: apex_util.flash - back to zero, and not null

    [Line graphic screenshot | http://www.anaruk.com/linechart.jpg]

    The image of the chart I linked above is a year to the year sales charts. The first series returns the 2009 turnover. The second returns year to date in 2010. The problem is that even if the query returns no data from August to December 2010 - because they have not yet - arrived the XML returned by the proc apex_util.flash returns this month with a zero value causing the graph plot these data.

    game of 2009 query results:
    MONTH IN LINK SALES
    -Jan 250
    -Feb 230
    -Mar 360
    -Avr 130
    -120 may
    -Jun 180
    -Jul 130
    -Aug 280
    -270 Ms
    -Oct 250
    -Nov 360
    -Dec 410

    2010 query result set:
    MONTH IN LINK SALES
    -Jan 130
    -Feb 970
    -Mar 170
    -Avr 140
    -May 110
    -230 Jun
    -Jul 440

    XML for 2010 is back:
    < name of series = "CDA 2010" type = "line" color = "0x1D8BD1" > "".
    < point name = "Jan" y = "130" >
    < / point >
    < point name = "February" y = "970" >
    < / point >
    < point name = "Mar" y = "170" >
    < / point >
    < point name = "Apr" y = "140" >
    < / point >
    < point name = 'May' y = '110' >
    < / point >
    < point name = 'June' y = '230' >
    < / point >
    < point name = "Jul" y = "440" >
    < / point >
    < point name = "August" y = "0" >
    < / point >
    < point name = "Sep" y = "0" >
    < / point >
    < point name = "October" y = "0" >
    < / point >
    < point name = "Nov" y = "0" >
    < / point >
    < point name = "Dec" y = "0" >
    < / point >
    < / series >


    IF I edit and load the following, AnyChart correctly do not draw the last four months:
    < name of series = "CDA 2010" type = "line" color = "0x1D8BD1" > "".
    < point name = "Jan" y = "130" >
    < / point >
    < point name = "February" y = "970" >
    < / point >
    < point name = "Mar" y = "170" >
    < / point >
    < point name = "Apr" y = "140" >
    < / point >
    < point name = 'May' y = '110' >
    < / point >
    < point name = 'June' y = '230' >
    < / point >
    < point name = "Jul" y = "440" >
    < / point >
    < point name = "August" y = "" >
    < / point >
    < point name = "Sep" = "" >
    < / point >
    < point name = "October" y = "" >
    < / point >
    < point name = "Nov" y = "" >
    < / point >
    < point name = "Dec" y = "" >
    < / point >
    < / series >

    --------------------------------

    Thanks for any comments.

    Walter

    Published by: WannaRock on July 23, 2010 14:17
    --------------------------------------------------------------------------
    -being more descriptive
    -correction of the errors of three strikes

    Hi Walter,

    Thanks for that bring to our attention. The behavior you reported is the current default behavior to handle null values on the chart, where they are represented as a zero in the data series. I appreciate this manipulation is not what you expect, especially in your scenario, when you do not want to represent some points on the graph (August - December 2010), so I'll review this behavior and includes a fix for this in our next version 4.0.1 patch. I connected the bug 9945462 to follow up on this matter.

    Kind regards
    Hilary

  • Looking for the NULL in a column

    Hi all

    I have a column named responsible which can take the values (NULL, N, E, R).

    Now selects the columns with NULL or N values.

    I know that I can compare load = 'n' or Charge IS NULL. Is it possible that I can have as load as a whole (NULL, ' don't).

    Please notify.

    Thanks in advance

    BM

    Published by: user32322435 on February 3, 2010 08:16

    What about?

    CHARGE = 'N' OR CHARGE IS NULL
    

    A (IN) is just a condensed form of a bunch of statements of GOLD. Therefore,.

    CHARGE IN (NULL,'N')
    

    becomes

    CHARGE = 'N' OR CHARGE = NULL
    

    However, will HANDLE = NULL ALWAYS is false, you cannot compare anything to NULL because we don't know. This is why you use a condition IS NULL. Here's a sample:

    SQL> CREATE TABLE TEST(ID NUMBER);
    
    Table created.
    
    SQL> INSERT INTO TEST VALUES(1);
    
    1 row created.
    
    SQL> INSERT INTO TEST VALUES(NULL);
    
    1 row created.
    
    SQL> SELECT * FROM TEST WHERE ID IN (NULL,1);
    
                      ID
    --------------------
                       1
    
    1 row selected.
    

    HTH!

    Published by: Centinul on February 3, 2010 08:15

  • NULL values in service management LESS

    Hello

    I have the query unless you return through two date fields date... NULL values should be ignored in the calculation. I used the service LESS with NVL but not able to resolve the issue until I used the function REPLACE top of it to show the value NULL if the query returns date of NVL. Please find the tables and queries that I used...
    CREATE TABLE TEST_LEAST
    (RECORD NUMBER,
    DATE1 DATE,
    DATE2 DATE,
    DATE3 DATE);
    INSERT INTO TEST_LEAST VALUES (1, '1 AUG 2009', '23 JUN 2009', '4 APR 2009');
    INSERT INTO TEST_LEAST VALUES (2, '20 JAN 2009', '16 FEB 2009', '7 MAY 2009');
    INSERT INTO TEST_LEAST VALUES (3, NULL, '31 MAR 2009', '19 JUL 2009');
    INSERT INTO TEST_LEAST VALUES (4, NULL, NULL, NULL);
    COMMIT;
    To return date less date1 and date2, date3, I used the function LESS, but the result was not as expected with the following query:
    SELECT RECORD, LEAST(DATE1, DATE2, DATE3) FROM TEST_LEAST;
    Statement 3 should show a date of March 31, 2009.

    I changed the query to use NVL to handle NULL values...
    SELECT CASENBR, LEAST(NVL(DATE1, TO_DATE('31 DEC 9999')), NVL(DATE2, TO_DATE('31 DEC 9999')), NVL(DATE3, TO_DATE('31 DEC 9999'))) FROM TEST_LEAST;
    .. but now, the result shows that record 4 is December 31, 2009, instead of NULL.
    and finally, I replaced the date 31 DEC 2009' with null with this query...
    SELECT CASENBR, REPLACE(LEAST(NVL(DATE1, TO_DATE('31 DEC 9999')), NVL(DATE2, TO_DATE('31 DEC 9999')), NVL(DATE3, TO_DATE('31 DEC 9999'))), TO_DATE('31 DEC 9999'), NULL) FROM TEST_LEAST;
    I am not convinced with query then thought to ask THE GURUS for help. Please guide me how I can better handle nulls with LESS function.

    Thanks in advance!

    Use COALESCE with the first expression that column:

    SQL> SELECT RECORD, LEAST(COALESCE(DATE1,DATE2,DATE3),COALESCE(DATE2,DATE3,DATE1),COALESCE(DATE3,DATE1,DATE2))FROM TEST_LEAST;
    
        RECORD LEAST(COA
    ---------- ---------
             1 04-APR-09
             2 20-JAN-09
             3 31-MAR-09
             4
    
    SQL> 
    

    SY.

  • Nulls in the Collections of COM

    Please see this code example:

    ***

    <!-initialize Salesforce.com account->
    < cfset sfUserName = "xxx" >
    < cfset sfPassword = "xxx" >

    <!--> initialize Salesforce API
    < cfoutput >
    < cfobject action = "crΘer" type = "COM" class = "SForceOfficeToolkit3.SForceSession3.1" name = "sfdc" / > "
    < cfset x = sfdc. SetServerUrl ("https://www.salesforce.com/services/Soap/c/7.0") / >
    < cfset x = sfdc.login ("#sfUserName #","#sfPassword #") / >
    < / cfoutput >

    <!--> username pass
    < cfset userLastName = "Barr" >

    <!--> query Salesforce for last name
    < cfset soql = "" select ID, FirstName, LastName, accountid, Contact email where lastname = ' "& #userLastName # &" ' "/ >" ""
    < cfset userResult (soql, false) sfdc.query = / >

    <!--> view results
    < cfloop collection = "" #userResult # "item ="rec">"
    < cfoutput >
    #rec.item("ID").value # < br / >
    #rec.item("FirstName").value # < br / >
    #rec.item("LastName").value # < br / >
    #rec.item("accountid").value # < br / >
    #rec.item("email").value # < br / >
    < / cfoutput >
    < / cfloop >

    ***

    When I loop over the collection of COM, the value of the account ID is NULL. It is expected that this record is not
    Account ID.

    When I try to run this code, I get the following exception:

    ***

    Element VALUE is not defined in an object of type Java class coldfusion.runtime.com.ComProxy referenced as


    The error occurred in C:\CFusionMX7\wwwroot\sftest\sfSearch.cfm: line 25

    23: #rec.item("FirstName").value # < br / >
    24: #rec.item("LastName").value # < br / >
    25: #rec.item("accountid").value # < br / >
    26: #rec.item("email").value # < br / >
    27: < / cfoutput >

    ***

    How can I handle NULL values if I don't get an exception?

    Thanks a lot for help.

    RB

    OK change that: If (IsDefined ("th"))
    for this: If (IsDefined ("th") AND IsDefined ("zDat.value")).

    This should work or return nothing else than NULL values.

    BTW, you use COM to access SalesForce?

    It should be easier with CF7 web calls and has already been done.
    See http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=781179, etc.

  • Device identifier is invalid for DAQmxCfgDigEdgeStartTrig

    Device: USB-5133

    Software: Driver NOR-DAQmx ANSI C 8.7.2f1

    I have a work program that extracts data from the entry using software (immediate) fine analog trigger.  However, I get a weird error when I try to use PFI1 as an external trigger:

    Measurements: Device identifier is invalid.

    Specified device: dev9

    Status code :-200220

    It seems to tell me that dev9 is invalid (which would be true), wait that I specified dev2 in the function call. In the search for other examples, this seems like it should work.  Here is the code I am using.  I would like to get a glimpse of what could happen here.

    error = DAQmxCreateTask ("", & taskHandle);
    If (DAQmxFailed (error))
    {
    DaqError ("scanner error (DAQmxCreateTask)" ");
    Returns false;
    }

    error = DAQmxCreateAIVoltageChan)
    taskHandle, / / task handle
    "dev2/0", / / physical channel name
    "", / / Name of channel virtual, so white uses the name of the physical channel
    DAQmx_Val_Cfg_Default, / / the input terminal configuration
    -1.0, / / measure the minimum value you expect
    1.0, / / maximum value that you expect to measure
    DAQmx_Val_Volts, / / the units of the two previous settings
    (NULL);                   Name of the custom scale
    If (DAQmxFailed (error))
    {
    DaqError ("scanner error (DAQmxCreateAIVoltageChan)" ");
    Returns false;
    }

    error = DAQmxCfgSampClkTiming)
    taskHandle, / / task handle
    NULL, / / terminal the sample clock Source (use NULL for internal)
    RPSC-> SampleRateHz, / / sample rate in samples per second
    DAQmx_Val_Rising, / / Edge of the clock to acquire samples on
    DAQmx_Val_FiniteSamps, / / sampling mode
    RPSC-> nCount);           Number of samples per channel to acquire
    If (DAQmxFailed (error))
    {
    DaqError ("scanner error (DAQmxCfgSampClkTiming)" ");
    Returns false;
    }

    If (m_trig_type is Trig_Serial)
    {
    error = DAQmxCfgDigEdgeStartTrig (taskHandle, "/ dev2/pfi1", DAQmx_Val_Rising ");
    If (DAQmxFailed (error))
    {
    DaqError ("scanner error (DAQmxCfgDigEdgeStartTrig)" ");
    Returns false;
    }
    }
        
    error = DAQmxStartTask (taskHandle);
    If (DAQmxFailed (error))
    {
    DaqError ("scanner error (DAQmxStartTask)" ");
    Returns false;
    }

    Hi Benote,

    Welcome to the Forums EITHER!  The USB-5133 is intended to be used with the driver OR-SCOPE as opposed to DAQmx.  The likely reason that the code works initially, is that NEITHER-SCOPE is based on our DAQmx driver.  You may be able to perform certain functions DAQmx, but many of the features of NOR-SCOPE are implemented differently (it seems that this would include trigger).  Since the 5133 is not intended to be used with the DAQmx driver, we could expect to see unusual (or incorrect) error messages that you receive.

    If you haven't done so already, I recommend that you install OR-SCOPE (the link above or from device drivers CD).  Examples of NO-SCOPE and documentation can be found at:

    Start > all programs > National Instruments > NOR-SCOPE.  If you have any questions do not hesitate to ask.  Thank you and have a great day!

    -John

Maybe you are looking for

  • 6 iPhone stuck in DFU

    So my iPhone 6 is stuck in DFU mode and it will not come out. I tried all of the applications to the buttons. I had to take it to local shops than the so-called 'fix' but do not work. This * because it's my main phone to use. I don't have an Apple st

  • BSOD after upgrade RAM on Satellite L350-14F

    Hello I have a L350-14F and I upgraded my ram 2x2gb PC5300 - 667 mHzWhen I start the laptop in bios I see ram 4096 but when I restart the laptop I have a blue screen. PFN_LIST_CORRUPT STOP: 0x0000004E (0x0000008D, 0x00090ET2, 0x00000000, 0x00000000)

  • How photos store &amp; sync with devices

    Hello community. I am an old user of mac and I must admit that I'm starting to be a little overwhelmed by new features in cloud computing. I need your help to configure my devices to work the way I want to. I have 2 macs (an iMac and a MBP), 2 iPhone

  • Action Cam Movie Creator, GPS overlay problems (solved)

    Hello community, I am Stefan of Germany. I am owner of a HDR - AZ1 with remote control. When I overlay the GPS data I get the white areas in my video. That seems independent of importation through the CCMA or PMH. Firmware and software of cam, remote

  • hardware device

    Como can restore o driver? No centro da Ação I can not.