Generating Trigger DDL using OO4O (OField::GetChunk)

WINNT 4.0SP6
MS Visual C++ 6.0 (using MFC)
Oracle 8.1.7
I'm attempting to write some C++ code that will generate the DDL of a trigger using OO4O.
Here's the code (so far):-
strSQL.Format("SELECT DESCRIPTION, TRIGGER_BODY FROM ALL_TRIGGERS WHERE OWNER = '%s' AND TRIGGER_NAME = '%s'", strOwner, strName);
dyn.Open(m_pDatabase->m_database, strSQL);
int nBuffSize = 65535;
nSize = dyn.GetFieldSize(0);
const char *pValue = strValue.GetBuffer(nSize+1);
dyn.GetFieldValue(0, (char*)pValue, nSize + 1);
strValue.ReleaseBuffer();
strText.Format("CREATE OR REPLACE %s %s", pszType, strValue);
OField fld =      dyn.GetField(1);
const char *pBuffer = NULL;
unsigned short nBytesRead = 0;
long nOffset = 0;
CString strBuff;
do
     if (fld.GetChunk(&pBuffer, nOffset, nBuffSize, &nBytesRead) != OSUCCESS)
          break;
     if (nBytesRead)
          char *p = strBuff.GetBuffer(nBytesRead);
          memcpy(p, pBuffer, nBytesRead);
          strBuff.ReleaseBuffer();
          strText += strBuff;
          nOffset += nBytesRead;
while (nBytesRead);
My problem is that the GetChunk method is failing, although it still returns OSUCCESS.
If I call OField::GetErrorText() after the GetChunk call I get the error "ROWID must be selected ..". Looking at the documentation this does make sense. That is, to access LONG type field values the ROWID must be accessible.
In this case there is no ROWID available because we are selecting from a dictionary view (ALL_TRIGGERS). Attempting to "SELECT ROWID FROM ALL_TRIGGERS" results in the error "ORA-01446: cannot select ROWID from view with DISTINCT, GROUP BY, etc.".
Can anyone out there point me in the right direction to solve this one ?
Thanks in advance.
Adrian Capp
LBS Limited, UK

Thanks for that.
Can you tell me which Dictionary Table I need to query. I've tried looking at the definition of the ALL_TRIGGERS view but was still none-the-wiser.
I agree that it's not an ideal solution, but the application in question is only going to be used internally by development personel. I could also add a check as the app starts so it will only run if connected to a specific version of Oracle (just an idea).
Adrian

Similar Messages

  • Generate trigger ddl

    Hi there,
    How do I recreate the trigger ddl without using the "exp/imp"? I've tried the DBMS_METADATA.GET_DDL and didn't work.
    Thanks

    Make sure you have that trigger using user_triggers view. Becuase I see dbms_metadata works.
    SQL> select dbms_metadata.get_ddl('TRIGGER','PDM_BRAND_BI') from dual;
    DBMS_METADATA.GET_DDL('TRIGGER','PDM_BRAND_BI')
      CREATE OR REPLACE TRIGGER "XX"."PDM_BRAND_BI"
    BEFORE
      INSERT
    ON pdm_Message was edited by:
    RPuttagunta

  • Suppress auto sequence and trigger DDL for surrogate keys?

    Is there a way to suppress trigger and sequence creation for surrogate keys when export to DDL file?
    I know most of the time the automatic sequence and trigger creation is welcome and very handy.
    However I'm migrating from an old Designer model and there only the needed sequences are created.
    They have a different name and trigger logic is custom (and  generated outside designer).
    There is a lot of package code depending on this. So I prefer to create and use different sequences.
    Is there a way to achieve this? Any tips are welcome.Create

    Hi,
    Note that generating the DDL for Oracle 12c means that it will attempt to use your Oracle 12c Physical model.  So if you normally use Oracle 10g or 11g, you will find that any details from your Oracle 10g or 11g Physical Model will not be included.  So this approach may have other implications for you.
    If you are not using Oracle 12c, there are some relevant properties on the Auto Increment tab of the Relational Model properties dialog for the Column which may help:
    Sequence Name - allows you to specify the name of the Sequence (which can be the name of a Sequence defined in the relevant Physical Model).
    Trigger Name - allows you to specify the name of a Trigger (which can be the name of a Trigger that is defined for the Table in the Physical Model).
    Generate Trigger - unsetting this will stop the Trigger being generated.
    David

  • Delete rule not being generated in DDL

    Hi,
    I've only recently started using SQL Developer Data Modeler (coming from the Designer world), and it's been a good learning experience. There's a piece that I can't seem to figure out though, and it's related to the generation of DDL for foreign keys. In all my models (logical, relational, physical, I have the Delete Rule set to "Restrict". This isn't just the default preference I'm talking about, when I actually drill down to the properties of the FK, it says that the delete rule is restrict. However, when I generate the DDL, no delete rule is generated. The only option generated is NOT DEFERRABLE.
    There are two issues with this:
    1) The rule isn't going into the DB unless I manually alter the DDL, and
    2) Every time I re-import the DB to generate ALTER statements, the comparison detects that the rule in the DB (NO ACTION) is different than the rule in the model (RESTRICT), so it deletes and re-generates the FK. However, it re-generates it still not having the delete rule set, so it doesn't fix the problem.
    Is this a known bug, or is there some way of telling the program to generate the delete rule in DDL that I'm missing? I should add I'm using version 3.1.1.703.
    Thanks in advance for your help.
    Mike
    Edited by: user10832262 on Apr 12, 2012 9:53 AM

    I did some more research and I think I was completely misunderstanding Oracle's implementation of delete rules. Now I believe that Oracle implements the "RESTRICT" option in SQL Developer Data Modeler as "No Action", which is the default option, hence why no DDL option is generated. However, it would still be nice if Data Modeler could detect this fact when comparing two models. What I mean it, if comparing an Oracle DB to a model, treat Restrict and No Action as the same, and thus don't attempt to re-generate the DDL for this "difference". For now, I'll just change the action on my models to No Action, and this should resolve the issue.

  • How do you get a list of all the trigger DDLs?

    I want to get a list of all the DB trigger DDLs of owner 'ABS'. I want to do it using 1 SQL statement.
    This is what I ran:
    SELECT
    TO_CHAR(DBMS_METADATA.GET_DDL('TRIGGER', TRIGGER_NAME, 'ABS'))
    FROM
    ALL_TRIGGERS
    WHERE
    OWNER = 'ABS';
    I get this error: [1]:
    (Error): ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4414, maximum: 4000)
    Then I looked up in the web and they ask to use DBMS_LOB.SUBSTR instead. So I do that:
    SELECT
    DBMS_LOB.SUBSTR(DBMS_METADATA.GET_DDL('TRIGGER', TRIGGER_NAME, 'ABS'), 32767, 1)
    FROM
    ALL_TRIGGERS
    WHERE
    OWNER = 'ABS';
    Now I get this error:
    [1]: (Error): ORA-06502: PL/SQL: numeric or value error: character string buffer too small ORA-06512: at line 1
    Looks like you cannot show more than *4000* chars. There are 43 triggers whose DDL is more than 4000 chars long.
    Why is this?
    How can I solve my problem?
    Edited by: Channa on Feb 16, 2010 9:45 PM

    Herald, fantastic news. SET LONG did the trick.
    But I had to put a very big value. 32000 was not enough. Otherwise some of the triggers (big ones) got cut off.
    This is my complete code which did it.
    SPOOL F:\Channa\zz_zzTemp\Binuka\OutPut.txt
    set trimspool on
    set pages 0
    set long *1000000000*
    set linesize 32767
    SET TERMOUT OFF
    SELECT DBMS_METADATA.GET_DDL('TRIGGER', TRIGGER_NAME, 'ABS')
    FROM ALL_TRIGGERS
    WHERE OWNER = 'ABS' AND trigger_name NOT LIKE 'BIN$%'
    SPOOL OUT
    THANKS A LOT. REALLY APPRECIATE IT.
    P.S: I had to include the NOT LIKE 'BIN$%' in the where clause because otherwise I got this error:
    ERROR:
    ORA-31603: object *"BIN$cqXDSqghrFngQKjAJAovgw==$0"* of type TRIGGER not found in
    schema "ABS"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 2805
    ORA-06512: at "SYS.DBMS_METADATA", line 4333
    ORA-06512: at line 1
    no rows selected
    I THINK BIN$... triggers are dropped triggers in the DB recycle bin???
    Edited by: Channa on Feb 17, 2010 2:58 AM
    Edited by: Channa on Feb 17, 2010 3:01 AM

  • Mappingtool generates bad DDL for sybase (J2ee tutorial)

    Running the mappingtool on the J2EE tutorial app (3.0.0RC1) generates bad
    DDL for sybase. It's trying to create a table with a column of type
    "IndexName":
    C:\devtools\kodo\samples\j2ee>mappingtool -a refresh package.jdo
    0 INFO [main] kodo.Tool - Mapping tool running on type "class
    samples.j2ee.Car" with action "refresh".
    0 INFO [main] kodo.Tool - The tool is now reading existing schema
    information; this process may take some time. En
    able the kodo.jdbc.Schema logging category to see messages about schema
    data. Also see the -readSchema tool flag.
    3716 INFO [main] kodo.Tool - Recording mapping and schema changes.
    Exception in thread "main" kodo.util.FatalException:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length
    or scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length or
    scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:431)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:790)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    NestedThrowablesStackTrace:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length or
    scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:67)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.access$400(LoggingConnectionDecorator.java:19)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingStatement.executeUpdate(LoggingConne
    ctionDecorator.java:506)
    at
    com.solarmetric.jdbc.DelegatingStatement.executeUpdate(DelegatingStatement.java:125)
    at kodo.jdbc.schema.SchemaTool.executeSQL(SchemaTool.java:1042)
    at kodo.jdbc.schema.SchemaTool.createTable(SchemaTool.java:803)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:334)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:186)
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:364)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:790)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    Anyone else seen this? It works ok with Hypersonic (though i can't get the
    tutorial app to run with hypersonic - see my earlier post).
    Alex.

    Some bugs in RCs sometimes don't make it into Bugzilla as it is a
    release candidate and not production quality.
    I would reocmmend upgrading as it fixes a number of major bug fixes and
    you should be able to use the same eval key.
    Alex Robbins wrote:
    Abe White wrote:
    I should also have asked: what JDBC driver are you using?Hi Abe,
    I haven't tried with RC2 - has this been fixed in RC2? I didn't find this
    bug on bugzilla.
    I'm using Sybase JConnect JDBC driver (com.sybase.jdbc2.jdbc.SybDriver in
    jconn2.jar) - looks like this is the version:
    jConnect (TM) for JDBC(TM)/5.5(Build 25008)/P/JDK12/Tue May 29 14:37:46
    2001
    Should I upgrade from RC1 to RC2, and if so, can I continue to use the
    same eval license key or can i download a new one?
    thanks,
    alex
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • Delete rule not generated in DDL

    Hello,
    I am using SQL Developer Data Modeler (Version 3.1.1.703) and experience the following issue:
    I have a table with a foreign key and a delete rule "SET NULL". However if I generate the DDL for "SQL Server 2005" then the rule is not there. Only if I change the rule to "CASCADE" then it is generated properly. Is that a bug or am I missing something?
    Thanks in advance for your help,
    Michael

    Hi Philip,
    when can we expect a fix for that since it is kind of an important function for us because without it we can't export a valid database structure.
    Thanks in advance,
    Michael

  • How to generate incrementel DDL.

    I'm an old Designer user and I appreciated very much the capability to generate incremental DDL agains a real Database.
    Is it possible with SDDM ?
    How?
    Tks
    Tullio

    Hi Tullio,
    Yes. It can be done by first opening your model in Data Modeler. Then use the Data Dictionary Import Wizard to import your current definitions from the database (using the "Swap target model" option in step 2) and when this shows the Compare Models dialog, use the DDL Preview button to generate the incremental DDL.
    For more detail, I suggest you read this earlier message on this forum: Re: Generate DDL - change is a new column and I want to generate a alter table
    David

  • Schematool createDB can't generate the ddl

    Hi,
    I am trying to run the schematool to generate the ddl to re-create the
    current DB - according to the doc, I should run :
    schematool -a createDB -f sql.txt
    However, when I run it (after put some CLASSPATH setting before the java
    execute), it gives me following exception (Note: the first line is the
    output of "echo $CLASSPATH"):
    [tyang@zetus UMA]$ ./schematool -a createDB -f tmp.ddl
    /usr/java/jsdk/ext/JMF-2.1.1e/lib/jmf.jar:/usr/java/jsdk/ext/JMF-2.1.1e/lib/sound.jar:.:lib/commons-beanutils.jar:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-digester.jar:lib/commons-lang.jar:lib/commons-logging.jar:lib/commons-pool.jar:lib/cwlicense.jar:lib/db2java.jar:lib/db2j.jar:lib/jakarta-regexp.jar:lib/jaxen-full.jar:lib/jca1.0.jar:lib/jcommon-0.8.8.jar:lib/jdo-1.0.1.jar:lib/jdom.jar:lib/jfreechart-0.9.13.jar:lib/jndi.jar:lib/jta-spec1_0_1.jar:lib/kodo-jdo.jar:lib/kodo-jdo-runtime.jar:lib/license.jar:lib/log4j-1.2.8.jar:lib/msbase.jar:lib/mssqlserver.jar:lib/msutil.jar:lib/ojdbc14.jar:lib/pg72jdbc2.jar:lib/saxpath.jar:lib/servlet.jar:lib/sqlline.jar:lib/tjdo.jar:lib/xalan.jar:lib/xercesImpl.jar:lib/xml-apis.jar:build/classes:build/jdometa-dtd
    Exception in thread "main" java.lang.NullPointerException
    at org.postgresql.jdbc2.ResultSet.getBytes(ResultSet.java:321)
    at
    org.postgresql.jdbc2.DatabaseMetaData.getIndexInfo(DatabaseMetaData.java:2942)
    at
    com.solarmetric.jdbc.DelegatingDatabaseMetaData.getIndexInfo(DelegatingDatabaseMetaData.java:253)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingDatabaseMetaData.getIndexInfo(LoggingConnectionDecorator.java:321)
    at
    com.solarmetric.jdbc.DelegatingDatabaseMetaData.getIndexInfo(DelegatingDatabaseMetaData.java:253)
    at kodo.jdbc.sql.DBDictionary.getIndexInfo(DBDictionary.java:2921)
    at
    kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:568)
    at
    kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:577)
    at
    kodo.jdbc.schema.SchemaGenerator.generateIndexes(SchemaGenerator.java:357)
    at
    kodo.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:188)
    at
    kodo.jdbc.schema.SchemaGenerator.generateSchemas(SchemaGenerator.java:168)
    at
    kodo.jdbc.schema.SchemaTool.getDBSchemaGroup(SchemaTool.java:1062)
    at kodo.jdbc.schema.SchemaTool.createDB(SchemaTool.java:293)
    at kodo.jdbc.schema.SchemaTool.run(SchemaTool.java:1383)
    at kodo.jdbc.schema.SchemaTool.run(SchemaTool.java:1317)
    at kodo.jdbc.schema.SchemaTool.main(SchemaTool.java:1267)
    Any clue ?
    Thanks,
    Tao

    It does appear to be a driver bug, and it looks like it is fixed in
    recent versions of the Postgres JDBC driver. See:
    http://archives.postgresql.org/pgsql-jdbc/2002-02/msg00179.php
    In article <brsrnl$4q0$[email protected]>, Abe White wrote:
    >
    Exception in thread "main" java.lang.NullPointerException
    at org.postgresql.jdbc2.ResultSet.getBytes(ResultSet.java:321)
    at
    org.postgresql.jdbc2.DatabaseMetaData.getIndexInfo(DatabaseMetaData.java:2942)
    As you can see, this is a postgres error, so it's difficult to know what
    is going on. Are you using Postgre's own 7.2 driver?--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Conn generating link ddl but schema in same database

    i have a connector which associates 2 locations in the same database. when i deploy the connector, it generates link ddl. when i deploy my mapping it uses that link. i can't get the mapping to generate schema.table_name.
    any help would be appreciated.
    i've searched the forum and gone through the docs. i don't know what i'm doing wrong.

    Chandra,
    Such document is always one and the same with all Oracle products - a User Guide that ships with a product and is available online http://www.oracle.com/technology/documentation/warehouse.html The User Guide is searchable and indexed. Look up "register locations" and you'll find "Registering Locations" section in Chapter 13 (of OWB 10g User Guide) with step-by-step instructions.
    Nikolai Rochnik

  • "Generate in DDL" checked back after Export DDL

    I have a table COUNTRY in a relational model with "Generate in DDL" flag unset. When I export the model with "File > Export > DDL File" the flag is set back and table is exported.
    1) Is there a way to "convince" Data Modeler to leave the "Generate in DDL" flag unset and do not export the table?
    2) Is this a bug?
    There is a Foreign Key to table COUNTRY with the "Generate in DDL" flag set, but I would say this should not change the flag.

    I found the problem. When I do "File > Export > DDL File" , then Generate a small window shows with ticks for:
    - Whole model
    - - Assigned to Schemas
    - - Not Assigned to Schemas
    - - Schemas
    - - Structured Types
    - - Collection Types
    All are selected and I only need to export objects "Not Assigned to Schemas". If I untick the "Whole Model" then I tick only "Not Assigned to Schemas" it will set all the tables/objects from the model, without using the "Generate in DDL" flag. More than this, it will set back the "Generate in DDL" flag for all objects in the model. Imagine that I have 100 objects into the model, how is to need to tick back the "Generate in DDL" flag for 30 objects of 100 all the time. This is an annoying bug if you agree.

  • Generating Parent Number using Level and Display Number

    I am facing problem in generating parent number using level and dispaly number.
    Here is the table structure
    CREATE TABLE test(
    DISPLAY_NUMBER       NUMBER,
    LEVEL_NUM           NUMBER,
    COMPONENT   VARCHAR2(10))
    INSERT INTO test VALUES (1,1,'A');
    INSERT INTO test VALUES (2,2,'B');
    INSERT INTO test VALUES (3,3,'C');
    INSERT INTO test VALUES (4,4,'D');
    INSERT INTO test VALUES (5,3,'E');
    INSERT INTO test VALUES (6,3,'F');
    INSERT INTO test VALUES (7,2,'G');
    INSERT INTO test VALUES (8,3,'H');Here is the output table structure and required output data format
    CREATE TABLE test1(
    DISPLAY_NUMBER       NUMBER,
    LEVEL_NUM           NUMBER,
    COMPONENT   VARCHAR2(10),
    PARENT VARCHAR2(10))
    INSERT INTO test1 VALUES (1,1,'A',NULL);
    INSERT INTO test1 VALUES (2,2,'B','A');
    INSERT INTO test1 VALUES (3,3,'C','B');
    INSERT INTO test1 VALUES (4,4,'D','C');
    INSERT INTO test1 VALUES (5,3,'E','B');
    INSERT INTO test1 VALUES (6,3,'F','B');
    INSERT INTO test1 VALUES (7,2,'G','A');
    INSERT INTO test1 VALUES (8,3,'H','B');Oracle database version : Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Thanks in advance.
    Regards,
    Laxman

    >
    I am facing problem in generating parent number using level and dispaly number.
    >
    Thanks for posting the table DDL and data. I called the tables testa and testb.
    insert into testb
    select a.*, (select component from testa b where b.level_num + 1
      = a.level_num and rownum = 1) parent
    from testa a
    select * from testb
    DISPLAY_NUMBER,LEVEL_NUM,COMPONENT,PARENT
    1,1,A,
    2,2,B,A
    3,3,C,B
    4,4,D,C
    5,3,E,B
    6,3,F,B
    7,2,G,A
    8,3,H,B

  • Analog input generating trigger on the counter gate to measure frequency

    Hello,
    I want to measure a frequency on the analog input but it doesn't seem to work.
    I'm trying to get it working using DAQmx with the use of ansi c.
    The
    first step I made was acquiring the information on the analog input.
    With the use of a simulated device this shows a sine wave on the input.
    My next step was to generate a trigger signal for the counter, but this doesn't seem to work.
    I don't see how it is possible to connect the trigger on the analog input to the counter.
    For the creation of the analog input and trigger I use the following code:   
        DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
        DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandle,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-3.0,3.0,DAQmx_Val_Volts,NULL));
        DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"",10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000));   
        DAQmxErrChk (DAQmxCfgAnlgEdgeStartTrig(taskHandle,"Dev1/ai0",DAQmx_Val_RisingSlope, 0));
    For the creation of the counter I am using the following code:   
    DAQmxErrChk(DAQmxCreateCIFreqChan(taskHandle1,"Dev1/ctr1",
    "",1,2000,DAQmx_Val_Hz ,DAQmx_Val_Rising ,DAQmx_Val_LowFreq1Ctr ,1,4,"");
    I hope some one could give me a hint.
    I have also tried the examples that come with DAQmx but far as I know this are only counter examples using digital inputs.
    Thanks in advance.
    Solved!
    Go to Solution.

    Hi,
    You have to use the comparison event output to the counter input. Change this property after the configure channel function.
    DAQmxSetChanAttribute (taskHandle1, "", DAQmx_CI_Freq_Term, Dev1/AnalogComparisonEvent);
    Regards,
    Bas

  • I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    I have multiple email accounts.  One is a google email and another aol.  I have the aol going into my google.  I Now Go Lead Generate! Am using outlook on my pc.  How can I get my outlook to share with my ipad?

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • Error in generating HTML output using Central Output Pro Server 5.5

    I am getting the following error while generating HTML output using the Output Pro Server. A new printer was created with the Physical Device as "HTML Template Generation - [html]" and added to the Job.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](1801) The printer name is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3015]Error, unable to open printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3008]Error, unable to get info about device 'PAYMENTADVICEHTM.html' attached to port '<nil>'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](183) Cannot create a file when that file already exists.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [2]Error opening output device/file 'PAYMENTADVICEHTM.html'.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [400](6) The handle is invalid.<br /><br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [3018]Error ending page on printer.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfmerge: [210]Nothing was printed.<br />2004/05/07 20:09:53 D:\Program Files\Adobe\Central\Bin\jfserver.exe: [314]Agent exit message: [3018]Error ending page on printer.

    If I were to guess, I'd guess that your filename is invalid. How about removing all special characters (spaces, brackets, etc.) from the device name. Also, make sure your form was compiled for HTML.
    I haven't actually used the HTML driver, but these are general things you should do if you have trouble with any Central driver.
    Regards,
    Rob McDougall
    Indigo Pacific

Maybe you are looking for