Error in validation an input field in a table ui and high lighting the cell

Hello All,
I have a table ui in one of my application.   This table has, say 6 columns; out of these 6 columns 4 columns are shown as input fields.  User needs to put in some numbers in two of the fields.  I need to capture these two number fields data and subtract one from the other.  If number is negative , I need to let the user know by error message that the number is negative and they need to fix their input to make the answer positive.  I am able to do all this, but I am not able to high light the corresponding field which needs to be fixed.  Is there anyway I can do that...I mean high light the particular field as one gets it when we use the "report attribute error message" method of message manager class. 
Secondly I can not halt the application, I need to do some work around for that using some flags.  Is there a simple way to halt the application, other than using flags and if condition?  I searched this forum, but could not find any definite answer....
Thanks very much!
Any help would greatly be appreicated.

Hi....
First you should have the table values in an internal  table.... for that yo need to get the values from the context like this....
*DECLARE INTERNAL TABLE AND WORKAREA.
data ls_nd_stru type wd_this->element_<node name>
data lt_nd_table type wd_this->elements_<node name>
get all declared attributes
lo_nd_<your context node>->get_static_attributes_table(
                                           importing
                                           table = lt_nd_table ).
*now your lt_nd_table will have the values.....what ever you have in the table.
*then
loop at lt_nd_table into ls_nd_stru.
<.....your logic.....>
<ie., read the current line of the field like
ls_nd_stru-<field name1> = ls_nd_stru-<field name2> - ls_nd_stru-<field name3>
then check error msg... based on your postive or negative values
endloop.
Hope this will help you....
Thanks & regards
Raja

Similar Messages

  • How to do validation of input fields

    Hi all,
              I have a rquirement to do the validation of input fields.Can anybody explain me how to go for that???Please explain in detail.U can also give me a link where i can find the tutorial for doing this.

    Hi Amit,
    What everyone has said above is correct - in the method of your action simply test for whatever condition you need to validate for.  However, the following tutorial shows you how to use Web Dynpro's Message Manager to display the messages on the screen in an easy user-friendly way:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/a%20simple%20input%20form%20with%20message%20and%20error%20service%20support.pdf">Enabling Message and Error Support</a>
    In addition, there are some validations that are done automatically depending on what you have your input fields set to - for instance, if you bind your input field to a date and a user enters words into the field instead of an actual date, it will automatically display an error message.  To learn how to turn this feature on and off, see this tutorial
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/edf6ea90-0201-0010-7696-a68662381c12">Using Validating and Non-Validating Actions</a>

  • Dynamic filling of input fields in a table

    Hi,
    There are input fields in a two tables these are to be filled parallely at run time. the no of entries depend on the entires in internal table.
    If internal table has more entries, then a certain entries is filled up; say 9 times the control should be given to a new tables and the remaining entries should be filled in the input fields of other table .
    I appreciate help.

    Hi,
    Actually there is two HTML tables, each table has nine rows. if the no of entries in the internal table exceeds nine then the second table should be filled after the first HTML table has filled with all the nine entries.
    Both tables contains same input fields. How to fill both tables dynamically. I think now it makes sense.

  • Updation of Primary Key field in HR Tables (PA2001 and PA2002) - Urgent

    Can anyone please tell me how to update a primary key field in HR Tables (PA2001 and PA2002).
    I need to update sprps field in both the tables. I used HR_Infotype_Operation function module, but still it is not updating the field.
    Pls find the following code snippet for the table PA2001 and let me know if any discrepancies :
    TABLES: pa2001.
    DATA: it_pa2001 TYPE TABLE OF pa2001,
    wa_pa2001 LIKE LINE OF it_pa2001,
    DATA: date TYPE d.
    date = sy-datum - 100.
    SELECT pernr sprps begda endda FROM PA2001 INTO CORRESPONDING FIELDS OF TABLE it_pa2001
    WHERE begda BETWEEN date and sy-datum.
    WRITE:/.
    WRITE:/ 'PA 2001 Records'.
    if sy-subrc <> 0.
    WRITE:/ 'No Data Exists'.
    else.
    LOOP AT it_pa2001 INTO wa_pa2001.
    WRITE:/ wa_pa2001-pernr, wa_pa2001-sprps, wa_pa2001-begda, wa_pa2001-endda.
    ENDLOOP.
    endif.
    LOOP AT it_pa2001 INTO wa_pa2001.
    wa_pa2001-sprps = 'X'.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    infty = '2001'
    number = wa_pa2001-pernr
    SUBTYPE =
    OBJECTID =
    LOCKINDICATOR =
    VALIDITYEND =
    VALIDITYBEGIN =
    RECORDNUMBER =
    record = wa_pa2001
    operation = 'MOD'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT =
    VIEW_IDENTIFIER =
    SECONDARY_RECORD =
    IMPORTING
    RETURN =
    KEY =
    ENDLOOP.
    if sy-subrc = 0.
    write:/ 'SY-subrc is zero'.
    write:/ ' Rows modified = ', sy-dbcnt.
    else.
    write:/ 'No Record(s) updated'.
    endif.
    commit work.
    WRITE: / 'Updated Records in the Internal Table IT_PA2001'.
    SELECT pernr sprps begda endda FROM PA2001 INTO CORRESPONDING FIELDS OF TABLE it_pa2001
    WHERE begda BETWEEN date AND sy-datum..
    LOOP AT it_pa2001 INTO wa_pa2001.
    WRITE:/ wa_pa2001-pernr, wa_pa2001-sprps, wa_pa2001-begda, wa_pa2001-endda.
    ENDLOOP.

    Thanks Kiran.
    But I need to change this field as we need to lock the records, as soon as the employee fills his/her time sheets which will be sent for HR Payroll, later on.
    When I am updating directly the field the database table PA2001, its not updating but for table PA2002, only few records are being updated.
    Is there any other alternative for this problem?
    Pls reply.
    Thanks,
    Harish

  • Error message without blocking Input fields

    Hi,
    I want to display an error message in the selection screen. The error is for input date validation. But the once error displays in the status bar, it blocks the input fields in the selection screen. I want to display the error message without blocking any of the input parameter in the selection screen. Where should i write the code?
    Thanks in advance.
    Ezhil

    Hi Ezhilhrh
    I think you could have done a trial with different message types before posting this question.
    Please try with success message(Type - S) and DISPLAY LIKE 'E'.
    And also control the program flow using a flag or by checking the initiality of your internal table.
    Regards
    Hareesh Menon

  • Javascript validation of input field in HTMLB in jsp

    Hi... i am using Javascript in HTMLB in JSP for input filed validations .
    According to the requirement , the Input Field should start with only "Alphanumeric values" .
    Can somebody please help me out in this.
    Regards
    Smita

    Hi,
    using java script can write like this
    function validate(str){return str.substr(0,1) == str.substr(0,1).toUpperCase();}
    Regards
    Supraja
    Edited by: Supraja Koganti on Nov 27, 2008 12:16 PM

  • How to link label with an input field in data table?

    I am curious if there is a nice way to link a label to input field in a data table directly in JSP? Data filling the table are dynamically bounded.
    Sample, simplified code below. Values of "label" property are unique in the collection binded to dataTable.
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:jsp="http://java.sun.com/JSP/Page">
         <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" />
         <f:view>
              <html>
              <body>
              <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Name" />
                        </f:facet>
                        <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
                   </h:column>
                   <h:column>
                        <f:facet name="header">
                             <h:outputText value="Value" />
                        </f:facet>
                        <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
                   </h:column>
              </h:dataTable>
              </body>
              </html>
         </f:view>
    </jsp:root>
    returns:
    17:39:01,390 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.IllegalArgumentException: #{DATA_ROW.label}_id
    what is related to EL expression in h:inputText's "id" attribute.
    Is there any other way to bind label with dynamically created input field in JSP? Do I really have to bind input field directly to component objects with "binding" and set IDs manually with setId() (what is ugly solution because it moves View related logic to Model layer)?

    I've thought of using EL because I have to somehow
    link a label to an input field dynamically. Somehow? Dynamically? Just use plain text :)Well... just look at my code snippet (notice: we want to join the pairs of labels and text boxes placed in a datatable [or any other repeater-like component rendering properties of objects from a collection]):
    <h:dataTable value="#{screen$monitoring$errorlog$CorrectHopper.dataset}" var="DATA_ROW">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputLabel value="#{DATA_ROW.label}" for="#{DATA_ROW.label}_id" />
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Value" />
    </f:facet>
    <h:inputText value="#{DATA_ROW.label}" id="#{DATA_ROW.label}_id" />
    </h:column>
    </h:dataTable>
    and what is your idea of using plain text as "id" attribute value in this case? :)
    Regards,
    Michal

  • How to get the values from the input field of a table

    Hello Friends
    I am having table having one column as InputField and rest are the textview fields
    I input the data and click the button that will add them to a node.
    But what is happening is it is adding the current value to all the fields replacing other filelds.
    Like suppose I am having 3 rows
    In column I input 10
    In column 2 input 20
    In column 3 input 30
    Now it is setting the value 30 to all the 3 fields.
    Can any one tell me the code to set 10, 20 and 30 as different value in a node as entered by me.
    Thanks

    Hi
    i am your scernario as follows
    Context
    TN_node (value node of cardinality 0:N)
                 val1 (value attribute under value node)
                 val2 (value attribute under value node)          
    i have binded Tn_node to table and val1 is textview and val2 is inputfield
    public void wdDoInit()
        //@@begin wdDoInit()
        for(int i=0;i<5;i++)
        IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().createTN_nodeElement();
        wdContext.nodeTN_node().addElement(ele);
        ele.setVa1("val"+i);
        //@@end
    i have a button go in which printing all the values
    public void onActionGo(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionGo(ServerEvent)
        for(int j=0;j<wdContext.nodeTN_node().size();j++)
        //IPrivateTestView.ITN_nodeElement
        IPrivateTestView.ITN_nodeElement ele=wdContext.nodeTN_node().getTN_nodeElementAt(j);
    wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa1());
    wdComponentAPI.getMessageManager().reportSuccess("-----"+ele.getVa2());
    Hope this helps,
    If your problem is not solved please post your code like this
    Thanks and Regards,
    Arun

  • Input field in a table view control

    Hi,
        I have a table view control, with input field in one of the columns.
        That is meant for entering some values.
        My problem is when i am entering a 3 input field with value and then by   using     mouse control i enter say 20th input field with value.  After that when i use the directional keys to enter the 21st field, the cursor is not in 21st field, it is somewhere else.
    How to correct this problem.
    Regards,
    Vijayalakshmi

    Hi,
    Try to use the TABINDEX property of <input>.
    Best regards,
    Guillaume

  • Error - A valid installer could not be found, using AAMEE and CS6

    I receive the error - A valid installer could not be found, when using AAMEE 3.0 to create a CS6 Trial Package in Windows 7.  I'm following the procedure documented here - http://blogs.adobe.com/oobe/tag/cs6 Imaging CS6-Attack of the Clones.  I've tried both pointing at the DVD and pointing to a local folder, after copying the DVD to a local folder and copying the \payloads folder from the second DVD.  I know the DVD is valid because I did a manual installation.  I'm pointing at the folder that contains the Set-up.exe file, plus I've tried pointing at every other folder as well, with no success.  I have a 40 user license for CS6 Master Collection for a classroom on our campus.  I need to create a image for this classroom, and was thrilled that a solution was being provided to accomodate this, but AAMEE does not work!  I'm working in a Windows 7 environment.
    On top of this frustration, my Adobe ID is not working, I've used "chat" support and phone support and I can still not log in.  They claim it has been escalated.  When I explained the AAMEE error to the phone support rep, he informed me that there was no technical support and my only option was to post the question on the forum...but you have to log in with your Adobe ID to post a question!  Round and round it goes.  So I had to create another ID under a different email, just to post my question.  I'm getting the mystery "an error has occurred, please try again", when I try to log in with my work Adobe ID.
    Help! Anyone?

    RESOLVED - Thanks in part to the ALBERT-in-Vancouver and Tushar Bammi thread concerning a similar problem.  I dissected the PDApp.log.  I had copied the installation DVDs to a local folder per the Deployment Guide, when installing from the DVD initially failed.  But, PDApp.log stated - EnterpriseNativeApplet Individual media disks on fixed volumes are not supported, please use CD/DVD or mounted ISO/DMG media.  That clued me in to trying to create the MSI using the DVDs again.  My fault - that the original attempts to create the MSI from the DVDs did not work, I didn't realize I needed to run AAMEE with elevated privileges.  Note - the earlier attempts when I was running AAMEE with elevated privileges and pointing to the locally copied installation files, failed.  Interesting.  I'm confused as to why the Deployment Guide directed my to create a product-install folder...
    I haven't tested the MSI file yet, but if I have additional problems I will start a new thread.
    Thanks.

  • Please Help. How to access to an input field in a table with javascript

    Hi
    i�m trying to access to the content of an input field that is in an table with a javascript function in this way
    function Valida_Tabla()
    var centro = document.getElementById("form1:idcentro").value;
    alert("Centro es ["+centro+"]")
    var des = document.getElementById("form1:table1:0:textField2").value;
    alert("des ["+des+"]")
    The fisrt alert is ok and displays the value of a field that is in a table.
    The second alert is not displayed.
    Is the syntax wrong?
    what i�m doing wrong
    Please help

    The best bet is to look at the source of the generated HTML and then use the exactly generated ID in the HTML source. When I looked at the HTML source I see the ID of a textfied inside a table as
    form1:table1:tableRowGroup1:0:tableColumn1:textField1
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Disabling the input field inside a table

    I am using a table having 5 fields. i am displaying the data in the table with all the fields as inputfields. When i click a button, the rows having the data should become disable and the rows which doesn,t have the records should be in enable mode only.
    Can we achieve this functionality ?

    Hi Manjunath,
    Thatu2019s what I had suggested the solution foru2026  I will try to put it down again. Take 2 Boolean attributes at your context level:
    1)     Would be a flag to know whether the user has entered any data in this particular row (Lets say flag1). By default set it to false so that it would mean that for the 1st time the entire table being displayed would have the flag1u2019s value as u2018 u2018.
    2)     Would be a variable for using to bind to the table columnu2019s readOnly property (Lets say flag2) By default have this value to false so that the entire column would be in editable mode by default.
    Say suppose you want to make all the working days for which the user has made entries you should bind the cell editors readOnly property of all those columns to flag1.
    When the user enters some data into a row and presses on the save then change the flag1 value for that particular row to X. (So this changes should get reflected on the context nodes data)  So for example the user has entered data for first 2 rows then flag1 would be X for both these rows in the context node.
    Now when the user presses on the Freeze button just get your entire contexts data & loop through only those records where you have flag1 = u2018Xu2019
    Loop at it_data into wa_data where wa_data-flag1 = u2018Xu2019.
                    Wa_data-flag2 = u2018Xu2019.
                    Modify it_data from wa_data transporting flag2.
    Endloop.
    So now you would only set the readOnly value for the rows where flag1 = u2018Xu2019 (i.e., where the user has made his entries). The rest of the rows would still continue to have the default value defined at context level u2018 u2018 and so would remain as editable. I hope that you have understood what I intended to say.
    Regards,
    Uday

  • Field symbols as Table name and in where condition in a select statement

    Hello All,
    I have a scenario where I need to get user input on table name and old field value and new field value. Then based on user input, I need to select the record from the database. The column name for all the tables in question is different in the database, however there data type is the same and have same values.
    I am not able to use a field symbol for comparing the old field value to fetch the relevant record in my where clause.
    I cannnot loop through the entire table as it has 10 millilon records, please advice on how to add the where clause as field symbol as the table name is also dynamically assigned.
    Here is my code:
    DATA: TAB       LIKE SY-TNAME,
          TAB_COMP1 LIKE X031L-FIELDNAME,
          TAB_COMP2 LIKE X031L-FIELDNAME,
          NO_OF_FLD TYPE N.
    DATA: BEGIN OF BUFFER,
            ALIGNMENT TYPE F,
            C(8000)   TYPE C,
          END OF BUFFER.
    FIELD-SYMBOLS: <WA>   TYPE ANY,
                  <COMP1> TYPE ANY,
                  <COMP2> TYPE ANY.
    GET TABLE NAME GIVEN BY USER IN LOCAL VARIABLE
      TAB = TAB_NAME.
    CREATE FIELD NAME BASED ON THE TABLE NAME ENTERED.
      CASE TAB_NAME.
      WHEN 'OIUH_RV_GL'.
          KEY FIELD
            TAB_COMP1  = 'GL_GL_SYS_NO'.
            NO_OF_FLD  = 1.
      WHEN 'OIUH_RV_OPSL'.
          KEY FIELD
            TAB_COMP1  = 'OPSL_GL_SYS_NO'.
            NO_OF_FLD  = 1.
      WHEN 'OIUH_RV_OTAX'.
          NOT THE ONLY KEY FIELD
            TAB_COMP1  = 'OTAX_GL_SYS_NO'.
            TAB_COMP2  = 'OTAX_TAX_POS_NO'.
            NO_OF_FLD  = 2.
      WHEN 'OIUH_RV_GTAX'.
          NOT THE ONLY KEY FIELD
            TAB_COMP1  = 'GTAX_GL_SYS_NO'.
            TAB_COMP2  = 'GTAX_TAX_POS_NO'.
            NO_OF_FLD  = 2.
      WHEN OTHERS.
            EXIT.
      ENDCASE.
    SET FIELD SYMBOL WITH APPROPRIATE TYPE TO BUFFER AREA.
    ASSIGN BUFFER TO <WA> CASTING TYPE (TAB).
    How to add where clause and remove the if condition in the select -- endselect
    SELECT * FROM (TAB) INTO <WA>. 
      ASSIGN COMPONENT TAB_COMP1 OF STRUCTURE <WA> TO <COMP1>.
      IF NO_OF_FLD = 2.
        ASSIGN COMPONENT TAB_COMP2 OF STRUCTURE <WA> TO <COMP2>.
      ENDIF.
      IF <COMP1> = OLD_SYS_NO.
        code for updating table would come here
          WRITE: 'MATCH FOUND'.
          EXIT.
      ENDIF.
    ENDSELECT.
    Please advice. Thanks much.
    Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:33 PM
    Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:34 PM
    Edited by: Shipra Jhunjhunwala on Jul 22, 2009 1:35 PM

    1. Create single column table for holding field name depending on the table entered.
    2. Take input from user: for e.g. table_name
    3. Using case load single column table with required fields
       for e.g.
      CASE TAB_NAME.
       WHEN 'OIUH_RV_GL'.
             Append 'GL_GL_SYS_NO' to KEY_FIELD --> KEY_FIELD is the single line internal table as mentioned in step 1.
       WHEN 'OIUH_RV_OPSL'.
             Append 'OPSL_GL_SYS_NO'.
       WHEN 'OIUH_RV_OTAX'.
             Append 'OTAX_GL_SYS_NO' to KEY_FIELD.
               APPEND 'OTAX_TAX_POS_NO' to KEY_FIELD.
       WHEN 'OIUH_RV_GTAX'.
             Append 'GTAX_GL_SYS_NO' to KEY_FIELD.
               APPEND 'OTAX_TAX_POS_NO' to KEY_FIELD.
       WHEN OTHERS.
          EXIT.
       ENDCASE.
       Now depending on the table name you have required column ready
    4. Create dynamic internal table using following sudo code
       Fill the fieldcatlog using the single column field table and DD03L table, See what all columns from DD03L you want to fill in field catlog table
       loop at internal table with all the fields.
        move it to field catalog.
        append field catalog.
       endloop.
    5. Pass this field catalog table to static method create_dynamic_table method
       DATA table TYPE REF TO DATA. --> data object for holding handle to dynamic internal table.
       call method cl_alv_table_create=>create_dynamic_table
       exporting
          it_fieldcatalog = fieldcatalog_tab
       importing
          ep_table = table.
    6. Now assign table reference to field symbol of type table.
       ASSIGN table->* to <field-tab>.
    7. Also create work area <field-wa> using refrence of table.
       create data object wa LIKE LINE OF <field-tab>.
       ASSIGN wa->* to <field-wa>.
    8. Also define field symbol for field name.
       for e.g. <field_name>
    4. Dynamic internal table is ready
    5. Now execute the select statement as follows:
       SELECT (KEY_FIELD)
         INTO <ITAB> --> created dynamically above
          FROM (TABLE_NAME)
         WHERE (WHERE).  --> WHERE is single line internal table having line type of CHAR72. So for every old value there will be one line
         Where condition is same as like we give in static way only difference in this case it will stored in internal table line wise.
        In this case you need to append all your where condition line by line in to WHERE.     
    5. To fill this dynamic internal table using ASSIGN COMPONENT <Comp_number> OF STRUCTURE <field-wa> TO <field-name>
       So in this case if first field of structure STRUCT1 is user_id then sudo-code will be
       loop at internal table containing list of fields into field_wa --> single column field table
           ASSIGN COMPONENT field_wa OF STRUCTURE <field-wa> TO <field>. "Here field_wa is wa area for single column internal table holding all the fieldnames.
           Now <field-name> points to user_id field. Move some value into it as nornally we do with variables.
           Move <your_new_value> to <field-name>. --> Assign new value
            or
            <field-name> = <your_new_value>.
       Endloop.
    6. After completing all the fields one row will be ready in <field_wa>.
       APPEND <field_wa> to <field_tab>.
    Hope this helps you.
    Thanks,
    Augustin.

  • Field OBJNRZ in Tables FMIFIIT and FMIOI

    Hi all,
    I need fill the field OBJNRZ in tables Tables FMIFIIT and FMIOI but I dont know if the User exit EXIT_SAPLFMRI_001 and EXIT_SAPLFMRI_001 need abap code for to be filled (OBJNRZ) or only is needed activate this user exit.
    Regards,
    Alberto

    Hi Rob,
    At that point the accounting records of FM documents in our system are carried out in the table FMIFIIT if what you mean.
    what is meant is that the OBJNRZ object field can be filled through the application as you say with the values of Cost Center, Order of CO (Element Maintenance or PEP).
    Greetings
    alberto

  • I need to scan an input string for EOF (control Z) and then view the data that has come in since the last EOF.

    I'm talking to a Furness micromanometer.  It sends a string of three lines formatted as follows:
    Time                 xx:xx:xx xM
    Velocity             xxxxx ft/m
    Temperature    xxx.x degC
    I want to watch the input, and when I see the EOF character (ctlZ), I want to display the three lines of text sent since the last EOF.  Any help is appreciated.

    Lynn, attached is the original vi I wrote months ago.  It works, but occasionally there seems to be a disconnect between the instrument and LabVIEW.  The string received is shown in the upper left corner of the front panel (Micromanometer output) is the string last received.  Then it's parsed out into teh three columns.  AS you can see from the block diagram, I made a rather complex vi, although that was NOT my intent.  Occasionally, as I said, things don't work right.  Instaed of the first line beginning with "Velocity", it might read "city" and then everything is sort of offset, and the data is corrupt.  After closing and reatarting LabView it usually works correctly.  SO, I decided to go with a simpler, less complex approach.  Instead of sending the T to the instrument to trigger it, I simply set the Furness to sample at one second intervals (locally - on its front panel interface)and send its data out on the serial port.  Then I want Labview to monitor the port, and read the data whenever it sees there is date to read.  I don't know if I can use EOF or the start bit, or what.  I just wrote an application like this for another instrument, but I was able to determine the number of bytes in the string (19).  I just used a property node (Bytes at port), compared the numer to 19, and if it was greater than or equal to 19, I read the port. It works great, but I can't seem to get a handle on what I'm doing wrong here.  Anyway, attached is the old vi, as well as the beginning of the new one.  Help??!!!
    Attachments:
    Furness.vi ‏291 KB
    simple.vi ‏75 KB

Maybe you are looking for