IQ 16, jConnect 16 and numeric datatype

Hi,
I have a situation where I create a table like this:
CREATE TABLE DBA.A_TEST (
PK INTEGER DEFAULT AUTOINCREMENT NOT NULL,
TEST_9_2 NUMERIC(9,2),
PRIMARY KEY (PK)
INSERT INTO A_TEST (TEST_9_2) VALUES (2.01)
When I select the value 2.01 into a BigDecimal (java) value and then use that value to update it on the IQ server (jConnect version is:
jConnect Driver version: jConnect (TM) for JDBC(TM)/16.0 PL03 (Build 27073)/P/EBF23152/JDK 1.6.0/jdbcmain/OPT/Wed Jul 16 00:36:57 PDT 2014
the value 2 is sent.  This occurs when DynamicPrepare = true (default value for jConnect 7.X and 16.0).
I find that the Update command, when sent in DYNAMIC tds receives this from IQ:
PARAMFMT
returns TDS_INT4, usertype = 58
jConnect then calls sp_sql_type_name with the 56 for data type and 58 for user type. This seems to cause the update statement to send "2" instead of "2.01".  Is this a known issue?
It does seem if I set DYNAMIC_PREPARE = false, then the update works fine (since it explicitly depends on the binding for the parameter.)
File bigdeciTest157.txt is the java jdbc source
testbd_iq16_dp_true_esd05.txt is the TDS on a run - using 7.07 ESD#5 (16.0 PL03 jConnect had same behavior).
I'm thinking the dynamic prepare might not be fully supported on IQ?  I notice the dynamic prepare is allocated but on executions only TDS_LANGUAGE is sent and executed. Is this normal as well?
Cheers,
-Paul

Hi Paul,
Likely Jconnect CR#762132 (allableStatement with BigDecimal , SQL Types.DECIMAL scale zero should error.)
fixed in Conn 15.7 SP130 and Conn16 PL04.
Regards,
Tayeb.

Similar Messages

  • Difference between CHAR and VARCHAR2 datatype

    Difference between CHAR and VARCHAR2 datatype
    CHAR datatype
    If you have an employee name column with size 10; ename CHAR(10) and If a column value 'JOHN' is inserted, 6 empty spaces will be inserted to the right of the value. If this was a VARCHAR column; ename VARCHAR2(10). How would it handle the column value 'JOHN' ?

    The CHAR datatype stores fixed-length character strings, and Oracle compares CHAR values using blank-padded comparison semantics.
    Where as the VARCHAR2 datatype stores variable-length character strings, and Oracle compares VARCHAR2 values using nonpadded comparison semantics.
    This is important when comparing or joining on the columns having these datatypes;
    SQL*Plus: Release 10.2.0.1.0 - Production on Pzt Au 6 09:16:45 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    SQL> conn hr/hr
    Connected.
    SQL> set serveroutput on
    SQL> DECLARE
    2 last_name1 VARCHAR2(10) := 'TONGUC';
    3 last_name2 CHAR(10) := 'TONGUC';
    4 BEGIN
    5 IF last_name1 = last_name2 THEN
    6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
    || '-');
    7 ELSE
    8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
    ame2 || '-');
    9 END IF;
    10 END;
    11 /
    -TONGUC- is NOT equal to -TONGUC -
    PL/SQL procedure successfully completed.
    SQL> DECLARE
    2 last_name1 CHAR(6) := 'TONGUC';
    3 last_name2 CHAR(10) := 'TONGUC';
    4 BEGIN
    5 IF last_name1 = last_name2 THEN
    6 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is equal to -' || last_name2
    || '-');
    7 ELSE
    8 DBMS_OUTPUT.PUT_LINE ( '-' || last_name1 || '- is NOT equal to -' || last_n
    ame2 || '-');
    9 END IF;
    10 END;
    11 /
    -TONGUC- is equal to -TONGUC -
    PL/SQL procedure successfully completed.
    Also you may want to read related asktom thread - "Char Vs Varchar" http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1542606219593
    and http://tahitiviews.blogspot.com/2007/05/less-is-more-more-or-less.html
    Best regards.

  • How to copy a table with LONG and CLOB datatype over a dblink?

    Hi All,
    I need to copy a table from an external database into a local one. Note that this table has both LONG and CLOB datatypes included.
    I have taken 2 approaches to do this:
    1. Use the CREATE TABLE AS....
    SQL> create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db;
    create table XXXX_TEST as select * from XXXX_INDV_DOCS@ext_db
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype
    2. After reading some threads I tried to use the COPY command:
    SQL> COPY FROM xxxx/pass@ext_db TO xxxx/pass@target_db REPLACE XXXX_INDV_DOCS USING SELECT * FROM XXXX_INDV_DOCS;
    Array fetch/bind size is 15. (arraysize is 15)
    Will commit when done. (copycommit is 0)
    Maximum long size is 80. (long is 80)
    CPY-0012: Datatype cannot be copied
    If my understanding is correct the 1st statement fails because there is a LONG datatype in XXXX_INDV_DOCS table and 2nd one fails because there is a CLOB datatype.
    Is there a way to copy the entire table (all columns including both LONG and CLOB) over a dblink?
    Would greatelly appriciate any workaround or ideas!
    Regards,
    Pawel.

    Hi Nicolas,
    There is a reason I am not using export/import:
    - I would like to have a one-script solution for this problem (meaning execute one script on one machine)
    - I am not able to make an SSH connection from the target DB to the local one (although the otherway it works fine) which means I cannot copy the dump file from target server to local one.
    - with export/import I need to have an SSH connection on the target DB in order to issue the exp command...
    Therefore, I am looking for a solution (or a workaround) which will work over a DBLINK.
    Regards,
    Pawel.

  • Displaying a fraction with a horizontal bar between the denominator and numerator

    Hello guys
    I have a dynamic textfield and am going to display textual content in it dynamically.
    But I have a fraction in that textual part and I want to display that fraction as a "typical fraction with a horizontal bar between the denominator and numerator". Hope you understand what I am asking.
    Please look at the attached image.
    Thanks for your input.
    cheers

    @dmennenoh
    Thanks for your input.
    So its kind of superimposing Sprite or MovieClip that has a fraction.Basically I have to make two textfields and put them together over a horizontal bar so that it looks like a fraction and then place it over a big textfield where the fraction should be.
    Its a very long process.
    OMG, isn't there any other easy way to do this?

  • Export and Import Of Tables having BLOB and Raw datatype

    Hi Gurus,
    I had to export one schema in one database and import to another schema in another database.
    However my current database contains raw and blob datatype.I have exported the whole database by the following commnad
    exp SYSTEM/manager FULL=y FILE=jbrms_full_19APR2013.dmp log=jbrms_full_19APR2013.log GRANTS=y ROWS=y
    My question is if all the tables with raw and blob have been exported properly or not.I have done one more thing after taking the export , I have imported to local db and checked the no of rows in the both the envs are same.As I have not tested with the application to confirm.
    I am using this version of Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    not able to attach the complete log file but for the schema jbrms which has the blob and raw datatype.
    Please let me know if you find some potential concerns with the export for BLOB and raw
    . about to export JBRMS's tables via Conventional Path ...
    . . exporting table FS_FSENTRY 8 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table FS_WS_DEFAULT_FSENTRY 2 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PM_WS_DEFAULT_BINVAL 60 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PM_WS_DEFAULT_BUNDLE 751 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PM_WS_DEFAULT_NAMES 2 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table PM_WS_DEFAULT_REFS 4 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VERSIONING_FS_FSENTRY 1 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VERSIONING_PM_BINVAL 300 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VERSIONING_PM_BUNDLE 11654 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VERSIONING_PM_NAMES 2 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    . . exporting table VERSIONING_PM_REFS 1370 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.

    You could see the 'QUESTIONABLE STATISTICS' warning for a couple of reasons. I don't remember them all but.
    1. If the target and source character set is different.
    2. system generated names (I think?)
    the best solution if you don't need the exact statistics that are on your source database would be to add
    statistics=none
    to your imp command and then regather statistics when the imp command is done.
    Dean

  • How we handle CLOB and BLOB Datatypes in HANA DB

    Dear HANA Gurus,
    We have would like to build EDW using HANA base on our source system Oracle and it's supports CLOB and BLOB datatypes
    Would you please suggest how do we handle in HANA DB.
    Let not say it's oracle specific.
    Regards,
    Manoj

    Hello,
    check SAP HANA SQL Reference Guide for list of data types:
    (page 14 - Classification of Data Types)
    https://service.sap.com/~sapidb/011000358700000604922011
    For this purpose might be useful following data types:
    Large Object (LOB) Types
    LOB (large objects) data types, CLOB, NCLOB and BLOB, are used to store a large amount of data such as text documents and images. The maximum size of an LOB is 2 GB.
    BLOB
    The BLOB data type is used to store large binary data.
    CLOB
    The CLOB data type is used to store large ASCII character data.
    NCLOB
    The NCLOB data type is used to store a large Unicode character object.
    Tomas

  • I'm in iPhone 5.  I transfer photos to a Windows 7 PC, using the USB cable.  Lately, the photos are appearing in Windows Explorer within monthly folders, with gibberish titles.  The folder names will be 8 random letters and numeric characters.  I ten

    I'm in iPhone 5.  I transfer photos to a Windows 7 PC, using the USB cable.  Lately, the photos are appearing in Windows Explorer within monthly folders, with gibberish titles.  The folder names will be 8 random letters and numeric characters.  I tend to let photos build up, so there are about 2 years worth of these monthly folders… Between 20 and 25.  This is a huge hassle… I'm unable to tell what months are in each folder, by the folder name.…  Have to open each folder to see which month is in there.  I want to be able to look at all the photos on the iPhone in one view, as I was able to in the past.  How do I stop this foldering of photos, by months??  Thank you.  BC

    I have the same issue. I searched and finally got only one answer is -- Apple suggest customer using iMAC to transfer and backup photos instead of Windows. How great the solution is it!

  • Rowid and urowid datatypes

    I'm writing an exercise to learn more about different datatypes and am confused about the use of and difference between rowid and urowid. As I understand it using rowid should only be done when writing for backwards compatibility, and urowid should be used for new coding. I'm working in 9.2.0.1.0, so I assume I should use urowid.
    The following code returns an error (shown below). Anyone know why this is happenning?
    create or replace function lrnvrbls
    return varchar2
    is
    v_rowid urowid;
    v_data varchar2(100);
    select rowid
    into v_rowid
    from mytable
    where rownum = 10 -- 10 is just a number I chose
    execute immediate
    'select mycolumn ' ||
    'from mytable ' ||
    'where rowid = ' ||
    v_rowid
    into v_data;
    return v_data;
    end;
    SQL>select lrnvrbls from dual;
    select lrnvrbls from dual
    ORA-00904: "AAAHCAAAMAAAADVAAI": invalid identifier
    I've tried using both ROWID and UROWID datatypes with no luck. Also tried CHARTOROWID and ROWIDTOCHAR and failed the same way.
    Anybody understand how to use this?

    A single datatype called the universal rowid, or UROWID, supports both logical
    and physical rowids, as well as rowids of foreign tables such as non-Oracle
    tables accessed through a gateway.
    A column of the UROWID datatype can store all kinds of rowids. The value of the
    COMPATIBLE initialization parameter must be set to 8.1 or higher to use UROWID
    columns.
    DROP TABLE mytable
    CREATE TABLE mytable
    AS SELECT owner mycolumn FROM all_tables
    WHERE rownum < 100
    CREATE OR REPLACE
    FUNCTION lrnvrbls
    RETURN varchar2
    IS
    v_rowid urowid;
    v_data varchar2(100);
    strSQL varchar2(255);
    BEGIN
    select rowid
    into v_rowid
    from mytable
    where rownum = 1;
    strSQL := 'select mycolumn from mytable where rowid = '''||v_rowid ||'''';
    execute immediate strSQL into v_data;
    return v_data;
    END lrnvrbls;
    SELECT lrnvrbls FROM DUAL
    DROP FUNCTION lrnvrbls
    DROP TABLE mytable
    COMMIT
    16:39:37 SQL> DROP TABLE mytable
    16:39:39 2 /
    Table dropped.
    Elapsed: 00:00:00.00
    16:39:39 SQL> --
    16:39:39 SQL> CREATE TABLE mytable
    16:39:39 2 AS SELECT owner mycolumn FROM all_tables
    16:39:39 3 WHERE rownum < 100
    16:39:39 4 /
    Table created.
    Elapsed: 00:00:00.00
    16:39:39 SQL> --
    16:39:39 SQL> CREATE OR REPLACE
    16:39:39 2 FUNCTION lrnvrbls
    16:39:39 3 RETURN varchar2
    16:39:39 4 IS
    16:39:39 5 --
    16:39:39 6 v_rowid urowid;
    16:39:39 7 v_data varchar2(100);
    16:39:39 8 strSQL varchar2(255);
    16:39:39 9 --
    16:39:39 10 BEGIN
    16:39:39 11 --
    16:39:39 12 select rowid
    16:39:39 13 into v_rowid
    16:39:39 14 from mytable
    16:39:39 15 where rownum = 1;
    16:39:39 16 --
    16:39:39 17 strSQL := 'select mycolumn from mytable where rowid = '''||v_rowid ||'''';
    16:39:39 18 --
    16:39:39 19 execute immediate strSQL into v_data;
    16:39:39 20 --
    16:39:39 21 return v_data;
    16:39:39 22 --
    16:39:39 23 END lrnvrbls;
    16:39:39 24 /
    Function created.
    Elapsed: 00:00:00.00
    16:39:39 SQL> --
    16:39:39 SQL> SELECT lrnvrbls FROM DUAL
    16:39:39 2 /
    LRNVRBLS
    SYS
    Elapsed: 00:00:00.00
    16:39:39 SQL> --
    16:39:39 SQL> DROP FUNCTION lrnvrbls
    16:39:39 2 /
    Function dropped.
    Elapsed: 00:00:00.01
    16:39:40 SQL> DROP TABLE mytable
    16:39:40 2 /
    Table dropped.
    Elapsed: 00:00:00.00
    16:39:40 SQL> COMMIT
    16:39:40 2 /
    Commit complete.
    Elapsed: 00:00:00.00
    16:39:40 SQL>
    */

  • I am looking for an boolean and numeric expression evaluator. I want to be able to compare ( ,=, , or, not, and, nand, etc)and evaluate boolean/numeric expression.

    I am looking for an boolean and numeric expression evaluator. I want to be able to compare (>,=, <, or, not, and, nand, etc)and evaluate boolean/numeric expression. Does anyone know if there is any code samples anywhere. If anyone has any input, I would greately appreciate it.

    The problem is that I have to enter a string of that type (any random string), and the program should go and calculate the result for the whole stirng, by looking at which parts to calculate first (figuring out precedence), second, etc. This is like a calculator, you don't know what the user is going to enter next, so I can't just use the boolean palatte. I could use it if the equation was always of the form "a 'operator' b", where the operator is any logic or comparison operator. But that is not what I am trying to accomplish.
    Can you do logic in the formula node? I think it only allows numeric values for inputs and outputs, it doesn't let you enter in and output booleans and stuff..does it?
    Thanks,
    Yuliya

  • Help changing all PK and FK datatypes from uniqueidentifier to nvarchar(128)

    Is there a simple script to iterate through all my tables and change my PK and FK datatypes to nvarchar(128)? I don't want to have to go through each table manually, remove relationships, and change each key one by one. Here is my db schema if it helps.

    Hi Man_Cat,
    According to your description, you are looking for the script to update all the PK and FK datatypes from uniqueidentifier to nvarchar(128), right?
    Based on my research, we cannot change the data type of the Primary Key and Foreign Key directly as Tom said. However, we can drop the PK and FK and recreate them use the query below.
    --This will drop the primary key temporarily
    ALTER TABLE MyTable
    drop CONSTRAINT PK_MyTable
    --change data type
    ALTER TABLE MyTable
    ALTER COLUMN PrimaryKeyID BigInt
    --add primary key
    ALTER TABLE MyTable
    ADD CONSTRAINT PK_MyTable PRIMARY KEY (PrimaryKeyID)
    Reference
    http://forums.asp.net/t/1528279.aspx?Alter+script+to+change+the+Primarykey+Column+datatype
    Regards,
    Charlie Liao
    TechNet Community Support

  • Precision and scale for numeric datatypes

    Could be in XSU, could be in Oracle thin driver, but I'd expect the SAL column of the EMP table to include its precision and scale, e.g. 800.00 and not 800.
    oracle: decribe EMP
    NAME TYPE
    SAL NUMBER(7,2)
    sql server: sp_help EMP
    Column_name Type Length Prec Scale
    SAL numeric 5 7 2
    sql server:
    java myOracleXML getXML -conn "jdbc:inetdae7:aetius:1433?database=Northwind" -user "sa/sa" "select SAL from EMP where EMPNO > 7999"
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <SAL>800.00</SAL>
    </ROW>
    </ROWSET>
    oracle:
    java OracleXML getXML -user "scott/tiger" "select sal from
    emp where empno > 7999"
    <?xml version = '1.0'?>
    <ROWSET>
    <ROW num="1">
    <SAL>800</SAL>
    </ROW>
    </ROWSET>
    So who loses the scale in the Oracle case, the driver or XSU.
    Steve.

    user4928701 wrote:
    Specifying precision and scale in the datatype when creating a procedure does not work:
    create or replace function SqlTxFunctionTesting(inparam in number(9,2)
    Error(1,48): PLS-00103: Encountered the symbol "(" when expecting one of the following: := . ) , @ % default character The symbol ":=" was substituted for "(" to continue.
    And one of the cons in the PL/SQL language in my view.
    The language does not allow parameters to be declared in the fashion you are attempting to. Even declaring a subtype and using that, does not enforce either the precision or scale, on the parameter value passed.
    Even worse - the parameter value can be a different data type all together from the defined parameter type - and a silent and implicit data type conversion will be done at run-time.
    So you can expect run-time errors in your code unit caused by the caller passing invalid values, despite the compiler okaying the call from the caller to your code.
    There are pros and cons to this approach. But if you are from a very strong type language environment like C or Pascal, you tend to see more cons than pros in this specific case.

  • CLOB and LONG datatypes

    I have a problem with needing to display fields in a report that are stored in the database as CLOB.
    The report isn't too complicated, and can be put together using folders in Admin.
    There is a table in the database that stores text from reports. Each report is identified by its case id, and then there may be a number of reports for each case (let's say 1-5 for the purposes of this explaination). There will then be three sections of text in each report, identifed in the database by section numbers.
    The fields needed are the case number (case_id), the report number (report_no), the section number (sect_no) and the section text (sect_text)
    All of the fields are numeric, except sect_text, which is a CLOB datatype.
    There are two queries, one to select the case id, min report number and first section of text and the other to select the case id, max report number and last section of text. The aim being a report that shows the start of the first report and the end of the last one.
    So, that's the background. All of the queries to select the data work fine in sqlplus. However they can't be displayed in Disco because it brings in CLOB fields as LONG, and can't group them (which it has to do for the MAX and MIN)
    I'd rather not set the whole thing up as a view on the DB, as I'd prefer to have the flexibiility of editing it in discoverer
    Any tips?

    Hi
    I do have a tip. Please take a look at this thread that I was involved in a couple of years ago:
    CLOB show up as item
    And here is another one that might help:
    Possible for Discoverer to display BLOB type documents stored in database?
    Best wishes
    Michael

  • Problem with Long and BigDecimal DataType convertion

    HI,
    I have an application which talk to MySQL database with Spring JDBC layer and everything runs like a champ :)
    Now I am converting the same application with the same DAO implementation to communicate with oracle database and I am having some trouble converting DataType from database to my java code.
    For example before with MySQL I would convert any Integer coming from the database to Long datatype and it worked. Now it seems that Int datatype from oracle comes as a BigDecimal type.
    I am thinking about two approaches writing an additional implementation to implement my dao interfaces or if there is some trickery that I can bypass doing that and work around these datatype incompatibility from MYSQL to Oracle.
    I can also put bunch of try and catch statements and if fails with Long try with BigDecimal, but still don't buy it as the best solution.
    Here use also code snippet:
    User u = new User();
                        u.setObjectId((Long) m.get("oid"));//This works with MYSQL backend but not with Oracle so the raw object seem to be coming as BigDecimal datatype
                        u.setLogon((String) m.get("logon"));
                        u.setPassword((String) m.get("password"));
                        u.setName((String) m.get("uname"));
                        u.setCompany(companyDAO.getById((Long) m.get("cOid")));Any help will be appreciated.
    Edited by: kminev on Mar 3, 2010 12:25 PM

    //This is my entity class
    public class User implements Comparable<User>  {
        private Long objectId = 0L;
        private Company company;
        private String logon = "";
        private String password = "";
        private String name = "";
        private boolean hasAdminRights=false;
        private boolean hasMaintenanceRights=false;
    //This is my bean class
    <bean id="userDAO" class=" com.myorg.myapp.dao.jdbc.UserImpl">
            <property name="transactionManager">
                <ref local="transactionManager"/>
            </property>
            <property name="companyDAO">
                <ref local="companyDAO"/>
            </property>
            <property name="companyAccessDAO">
                <ref local="companyAccessDAO"/>
            </property>
        </bean>

  • XDOFX if-then-else command testing of space and numeric value

    Hi,
    I have the following xdofx statement in a RTF template to display the value of one variable or another, depending on the value it contains: (the variable can contains both space or null or a numeric value).
    <?xdofx: If Amount_1 = " then 'display amount_2' else If Amount_1 = 0 then 'display amount_2' else 'display Amount_1' end if?>
    Result: When Amount_1 variable contains space or null value, then this If-then-else statement works. But When Amount_1 contains a number such as 0, it gives error "SBL-OMS-00203" (when it's checked against [=" ] in If condition). What's causing this? Is XDOFX being confused to test a variable that supposedly a character string (default by testing against [ =" ]), but find a number in the variable?
    Any work around solution? (So [=" ] and [=0 ] can both be specified against a variable in an if-then-else statement in XDOFX).
    Thanks a lot.
    A.

    try
    <?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (Amount_1 =’0’) then ‘display amount_2’ else ‘display Amount_1’ end if?>or
    <?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (to_number(Amount_1) =0) then ‘display amount_2’ else ‘display Amount_1’ end if?>

  • (1) Would like to pause syringe pump at certain volume while still collecting diameter data, (2) Would like to delay chart and numerical indicator output until after syringe pump is run

    Hello:
    I am using Labview to control a New Era Pump Systems automatic syringe pump and to record diameter measurements from a LaserMike optical comparator. My program is fully functional, the code is attached with all auxilliary files in the NE-50X folder. I mostly understand my program, I used drivers for the NE-50X pump found on the NI website to build my code and added to it as needed. My program currently does the following:
    After I push the white Run button, I am prompted for a file name. After I enter one, Labview begins collecting data from the LaserMike and syringe pump and outputs them to their respective numerical indicators and waveform charts. Then I can change the syringe pump flow rate and syringe diameter on the front panel. Once I push the green RUN button on the front panel, the syringe pump runs, and the balloon diameter vs. syringe volume XY graph begins to record. I can then reverse the direction of the pump and/or pause the pump however many times I like, while Labview still records diameter from the LaserMike. Pushing the red STOP button on the front panel terminates the program and stops the pump.
    Here are three things I would like to change about my program that I don't know how/what to do:
    1) I would like the LaserMike and syringe pump to output to their respective numerical indicators and charts only AFTER the green RUN button on the front panel has been pushed and the pump is running.
    2) I would like to be able to pause the syringe pump at two specific volumes while Labview continues to collect data from the LaserMike. I do not mind if I would have to push RUN to manually restart the program. I just want the pump to stall for a few seconds once the syringe pump dispenses a certain volume without the program terminating.
    3) I would like the program to terminate once a certain volume has been dispensed. I would also like the syringe pump to return to zero, its starting position, after each test so that each test is identical.
    If anyone has ideas about how to do any of these three things, your help is greatly appreciated.
    Attachments:
    Balloon Diameter.vi ‏132 KB
    NE-50X.llb ‏994 KB

    1.  You can set a boolean value when the Run button is pressed and use that boolean value to determine whether or not your indicator is updated.
    2.  You check the value of your syringe volume every loop iteration and pause the pump if a certain value is reached.  You can have the program wait for the user to press a button to restart.  You can also have it pause for a period of time and continue automatically.
    3.  Just like #2, you can wait for a certain value and stop the overall loop once that value has been reached. 
    Your program is an excellent candidate for event handling.  I have attached a link to a tutorial.
    Brian R.
    District Sales Manager
    Washington DC
    National Instruments

Maybe you are looking for

  • Photoshop CS4 and save as PDF

    Is there a way to make Photoshop CS4 save layers in a PDF that are accessible in Acrobat, InDesign, Illustrator? I had to do an ad layout for a weekly newspaper and when I saved it as a PDF from photoshop, it retained the layers as long as it was ope

  • Document and Element trick!Please give me hand

    hello there I have a question for ya What is the difference between Document and Element regarding XML If I have this Document r ; how I could convert it Element say e; and vice versa it is possible to say Document r; Element e = (Element) r; what ab

  • IPod doesn't update properly

    when my ipod is in itunes a window pops up that says "iPod cannot be updated. Required file is in us." What does this mean? Why does it do that?

  • How to fix this query ??

    Hello Everyone, I have this query It says missing right parenthesis...I have marked on the query with the (where) clause... I'm using Oracle 9i... select t1.course_id,t1.status from select t11.course_id, t11.status, row_number() over(partition by t11

  • ACE http Probe Question

    Hi there, I have a probe and it keeps failing. I believe it might be something to do with the special character in the URL. The URL requires a port then a page after the server address: probe http Server2_Probe description Checks Server2 http is resp