How to Read barcode using Gige camera qith vison software

Hi ,
I have a Gige vision camera, I need to use this to read the barcode and save it in a file. Is there a way to read a barcode directly from the camera using labview vison software.Please do let me know if there is a way.
Thanks,
Ankit G
Solved!
Go to Solution.

Hi Ankit 
I dont know if you have NI's Vision Builder for Automated Inspection, it has a function to do Barcode reading, it is very convenient tool to use with lot of good examples.
Kudos are welcomed 
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D :-)
Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.

Similar Messages

  • How to scan barcode using flex?

    We are developing a mobile app.
    Our requrement is to scan barcode using mobile camera.
    Any one can give me idea how to do it?
    Do I need to connect to any third party app? If so How.
    Or flex have capabilites to read barcode?
    I have seen this example using web cam
    http://www.renaun.com/flex2/BarcodeReader/BarcodeReader.html
    I am not sure that will it work in mobile app?

    This is a Flex question. Please try posting on the Flex forums for better response http://forums.adobe.com/community/flex/flex_general_discussion

  • How to read 'Barcode' in Adobe PDF Forms?

    Hi Everybody,
    I have a scanned pdf of 20 pages. There is a barcode in every page in a serial order like in first page it is 545001 in second page it is 545002 and in third page it is 545003 and so on. I want to automate a process sothat i can know that all the barcodes are in serial order or not. Or, I could know whether it is tempered or not.
    Please tell me. How i can do this using Adobe Acrobat or Adobe LiveCycle?
    Is there any features in acrobat or livecycle?
    Thanks,
    Manjeet

    It is an offline form.
    We are consuming the web service in Form to create a PR.
    However we also need the user to attach some documents before it actually clicks on the "Create PR" button.
    User can attach the file through "Attachments"  facility provided on Adobe Reader.
    Our problem is how to check whether user has attached the documents or not. If the documents are attcahed then how to read them using JavaScript?
    Thanks,
    Taha

  • How to print Barcode using SAPscript?

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

    hello, everyone.
    I have some questions.
    now, I have to print some doc. that described by barcode in sapscript form.
    so, try to test in t-code so10
    input value SAPSCRIP-BARCODETEST, ST, EN.
    and click 'print-preview'
    result is correctly output in pint privew.
    but when I print dis priviewed doc. disappeared barcode image.
    is this O.K??
    I have to do something?? (Add DLL file, barcode font or etc....)
    I don't know how to print barcode using SAPScript. anybody solve this problem.please.
    p.s this system is SAP ECC 6.0 only ABAP.
    printer setting is front-end print.

  • Is it possible to read Barcode using Blackberry Application?

    Dear Friends,
    Is it possible to read Barcode using Blackbbery application? If yes please let me know what thing we'll be require to develop the same. It is very urgent please help me.
    Regards,
    Haidar Ali

    Yes, it is. There are already a number of barcode reader applications for BlackBerry, such as one named  "Edocrab".  Google it.
    You'll need some experience in Java development. Please see the Developer section of this forum.
    And here:
    http://na.blackberry.com/eng/developers/
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HOW to read file using ftp???

    Hi to all,
    I have problem with reading file using ftp connection, i want to read only 1024 bytes for one time, and i have
    next code wich read this:
    byte buffer[] = new byte[1024];
    while( (readCount = input.read(buffer)) > 0) {
    bos.write(buffer, 0, readCount);
    but I dont know how to put all read data in one byte[] if i dont know length of file.
    I can't do some like: byte file[] = new file[1000000];
    Thanks for all sugestions!

          * Download a file from a FTP server. A FTP URL is generated with the following syntax:
         * <code>ftp://user:password@host:port/filePath;type=i</code>.
          * @param ftpServer FTP server address (incl. optional port ':portNumber').
          * @param user Optional user name to login.
          * @param pwd Optional password for <i>user</i>.
          * @param fileName Name of file to download (with optional preceeding relative path, e.g. one/two/three.txt).
          * @param destination Destination file to save.
         * @throws MalformedURLException, IOException on error.
         public void download(String ftpServer, String user, String pwd, String fileName, File destination) throws MalformedURLException, IOException {
            if (ftpServer != null && fileName != null && destination != null) {
                StringBuffer sb = new StringBuffer("ftp://");
                if (user != null && pwd != null) { //need authentication?
                    sb.append(user);
                    sb.append(':');
                    sb.append(pwd);
                    sb.append('@');
                }//else: anonymous access
                sb.append(ftpServer);
                sb.append('/');
                sb.append(fileName);
                sb.append(";type=i"); //a=ASCII mode, i=image (binary) mode, d= file directory listing
                BufferedInputStream bis = null;
                BufferedOutputStream bos = null;
                try {
                    URL url = new URL(sb.toString());
                    URLConnection urlc = url.openConnection();
                    bis = new BufferedInputStream(urlc.getInputStream());
                    bos = new BufferedOutputStream(new FileOutputStream(destination.getName()));
                    int i;
                    while ((i = bis.read()) != -1) { //read next byte until end of stream
                        bos.write(i);
                    }//next byte
                } finally {
                    if (bis != null) try { bis.close(); } catch (IOException ioe) { /* ignore*/ }
                    if (bos != null) try { bos.close(); } catch (IOException ioe) { /* ignore*/ }
            }//else: input unavailable
        }//download()If you don't want to strore the data into a file, use ByteArrayOutputStream instead of a FileOutputStream.

  • How to read OVD using java

    Hi all,
    how to access OVD using Java?
    Thanks,
    Kumar.P

    Hi,
    You can just normal LDAP API codes to connect to OVD the same way you connect to other LDAP servers.
    PFB sample code for connecting to OVD.
    Properties props = new Properties();
    try {
    props.load(new FileInputStream("LdapCredentials.Properties"));
    } catch (IOException e) {
    // TODO
    ldapurl = "ldap://hostname:390";
    ldapUser = "cn=orcladmin,ou=Org12,dc=ovid,dc=com";
    userPassword = "welcome1"; //"Killtheking123456";
    userContext = "ou=Join1,dc=ovid,dc=com";
    Now, you have to get Directory Context as shown below.
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY,
    "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, ldapurl);
    env.put(Context.SECURITY_AUTHENTICATION, "simple");
    env.put(Context.SECURITY_PRINCIPAL, username);
    env.put(Context.SECURITY_CREDENTIALS, password);
    //Initialize the Directory context
    DirContext dCtx = new InitialDirContext(env);
    Then you can perform search operations or new user creation etc., as you wish.
    Does this help?
    -Mahendra.

  • How to read barcode?

    Hi,
    In my application, we have a requirement of reading barcodes and generating barcodes for shipping lables. Do you have any idea about how to do this in a web application?
    Thanks in advance
    Regards,
    Challa.

    Hi rayudu,
    We have a custom transaction in SAP to read a barcode tag, but we don´t have any configuration or code to get it. The software of reader makes all work.
    You only have to configurate the reading device to simulate the entry of data in SAP, and then execute the wished process.
    regards,
    Alejandro.

  • Using an iPad Mini How do read pictures from a Camera Card (like SD)?

    Hello,
    I just picked up an iPad Mini.
    I see that I can browse to online pictures, and that I can take pictures with the device.
    However, how do I use the device to browse to existing pictures on a camera card card such as SD Flash that a DSLR Uses?
    Is that Possible?
    Thanks a ton!

    This:
    http://store.apple.com/us/product/MD822ZM/A/lightning-to-sd-card-camera-reader
    Not so muich browse the files as much as upload them to the iPad though.

  • How to read data using SQLGetData from a block, forward-only cursor (ODBC)

    Hi there.  I am trying to read data a small number of rows of data from either a Microsoft Access or Microsoft SQL Server (whichever is being used) as quickly as possible.  I have connected to the database using the ODBC API's and have run a select
    statement using a forward-only, read-only cursor.  I can use either SQLFetch or SQLExtendedFetch (with a rowset size of 1) to retrieve each successive row and then use SQLGetData to retrieve the data from each column into my local variables.  This
    all works fine.
    My goal is to see if I can improve performance incrementally by using SQLExtendedFetch with a rowset size greater than 1 (block cursor).  However, I cannot figure out how to move to the first of the rowset returned so that I can call SQLGetData to retrieve
    each column.  If I were using a cursor type that was not forward-only, I would use SQLSetPos to do this.  However, using those other cursor types are slower and the whole point of the exercise is to see how fast I can read this data.  I can
    successfully read the data using a block forward only cursor if I bind each column to an array in advance of the call to SQLExtendedFetch.  However, that has several drawbacks and is documented to be slower for small numbers of rows.  I really
    want to see what kind of speed I can achieve using a block, forward-only, read-only cursor using SQLGetData to get each column.
    Here is the test stub that I created:
    ' Create a SELECT statement to retrieve the entire collection.
    selectString = "SELECT [Year] FROM REAssessmentRolls"
    ' Create a result set using the existing read/write connection. The read/write connection is used rather than
    ' the read-only connection because it will reflect the most recent changes made to the database by this running
    ' instance of the application without having to call RefreshReadCache.
    If (clsODBCDatabase.HandleDbcError(SQLAllocStmt(gDatabase.ReadWriteDbc, selectStmt), gDatabase.ReadWriteDbc, errorBoxTitle) <> enumODBCSQLAPIResult.SQL_SUCCESS) Then
    GoTo LoadExit
    End If
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_CONCURRENCY, SQL_CONCUR_READ_ONLY), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_CURSOR_TYPE, SQL_CURSOR_FORWARD_ONLY), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.HandleStmtError(SQLSetStmtOption(selectStmt, SQL_ROWSET_SIZE, MAX_ROWSET_SIZE), selectStmt, errorBoxTitle)
    If (clsODBCDatabase.HandleStmtError(SQLExecDirect(selectStmt, selectString, Len(selectString)), selectStmt, errorBoxTitle) <> enumODBCSQLAPIResult.SQL_SUCCESS) Then
    GoTo LoadExit
    End If
    ' Cursor through result set. Each time we fetch data we get a SET of rows.
    sqlResult = clsODBCDatabase.HandleStmtError(SQLExtendedFetch(selectStmt, SQL_FETCH_NEXT, 0, rowsFetched, rowStatus(0)), selectStmt, errorBoxTitle)
    Do While (sqlResult = enumODBCSQLAPIResult.SQL_SUCCESS)
    ' Read all rows in the row set
    For row = 1 To rowsFetched
    If rowStatus(row - 1) = SQL_ROW_SUCCESS Then
    sqlResult = clsODBCDatabase.HandleStmtError(SQLSetPos(selectStmt, row, SQL_POSITION, SQL_LOCK_NO_CHANGE), selectStmt, errorBoxTitle)
    Call clsODBCDatabase.SQLGetShortField(selectStmt, 1, assessmentRollYear(row - 1))
    Console.WriteLine(assessmentRollYear(row - 1).ToString)
    End If
    Next
    ' If the rowset we just retrieved contains the maximum number of rows allowed, there could be more data.
    If rowsFetched = MAX_ROWSET_SIZE Then ' there could be more data
    sqlResult = clsODBCDatabase.HandleStmtError(SQLExtendedFetch(selectStmt, SQL_FETCH_NEXT, 0, rowsFetched, rowStatus(0)), selectStmt, errorBoxTitle)
    Else
    Exit Do ' no more rowsets
    End If
    Loop ' Do While (sqlResult = enumODBCSQLAPIResult.SQL_SUCCESS)
    The test fails on the call to SQLSetPos.  The error message I get is "Invalid cursor position; no keyset defined".  I have tried passing SET_POSITION and also SET_REFRESH.  Same error.  There has to be a way to do this!
    Thank you for your help!
    Thank You! - Andy

    Hi Apelkey,
    Thank you for your question. 
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated. 
    Thank you for your understanding and support.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to read emails using javamail

    hello friends
    well i am working on a project on phishing for that i had usinf javamail to read out the mails while i open my any email account while i working on the net .
    actually what i want is whenever i open my account my program could detect the mail and it will it work after that
    so can anyone please help me out in doing this means my first problem is how to get my program get linked with that so that everytime i opem my email account (not specific) i can use the message stuff written in that for my further use
    please help me guys i really need help
    please reply as soon as possible
    thanks

    i could not understand your problem exactly.
    if you mean you want to check the new messages count: you can simply used
    int newMessages = folder.getNewMessageCount();if you are reading mails first time using javamail.
    see http://itoday.wordpress.com/2007/04/08/sending-mail-using-javamail-apis/
    if you mean something else ... please let me know
    asif shahzad
    Edited by: asifsh7 on Jul 22, 2008 8:53 AM

  • How to read and use an API ?

    Hi all,
    In the Java Tutorial - Nested Classes chapter, one of the questions at the end is like this:
    Q2. Use the Java API documentation for the Box class (in the javax.swing package) to help you answer the following questions.
    a. What +{color:#3366ff}static nested class{color}+ does Box define?
    b. What +{color:#993366}inner class{color}+ does Box define?
    c. What is the +{color:#ff6600}superclass{color}+ of Box&rsquo;s inner class?
    d. Which of Box&rsquo;s {color:#003300}+nested classes+{color} can you use from any class?
    e. How do you create +{color:#ff0000}an instance of Box&rsquo;s Filler class?+
    +{color}+
    {color:#000000}I can figure out the answers from a - d. But I don't understand the answers for e.
    {color}{color:#008000}
    Answer 2e: {color}new Box.Filler(minDimension, prefDimension, maxDimension)
    Where do we find the answers for (minDimension, prefDimension, maxDimension)? Is it written in the API? We can't actually see the programming codes in an API, right?
    Thank you for your reply.
    {color:#ffff00}
    Cheers~
    ++{color}
    Edited by: elaine_g on 16-Jul-2008 10:18 AM

    JoachimSauer wrote:
    If you look at the JavaDoc for the [Box.Filler constructor|http://java.sun.com/javase/6/docs/api/javax/swing/Box.Filler.html#Box.Filler(java.awt.Dimension,%20java.awt.Dimension,%20java.awt.Dimension)], then you'll see that it takes 3 Dimension objects.
    Thank you! I was looking at the constructor of the wrong class - 'Class Box' instead of 'Class Box.Filler', no wonder I couldn't find it. :p Thx. :-)
    DrLaszloJamf wrote:
    The Filler constructor takes three dimensions objects, right?
    Dimension minDimension = ...
    Dimension prefDimension= ...
    Dimension maxDimension= ...
    Box.Filler filler = new Box.Filler(minDimension, prefDimension, maxDimension);That's it. Nothing more involved or mysterious.Thanks a lot for the code, I can visualize it better now.
    P/S: Well, it was pretty mysterious for a while. 'Twas the very first time I've ever seen an API. ;-)
    Cheers~

  • How to achieve image using digital camera of USB-type interface through IMAQ PCI-1424 board.

    1.Is it doable?
    2.How to connect USB-type interface with IMAQ PCI-1424 board.
    Thanks!

    See the Developer's Zone (www.ni.com/zone) for specifics on USB (search for "USB").
    "1.Is it doable?"
    - In short "no".
    - USB is similar to FireWire (IEEE 1394), and no framegrabber is required. We offer an IEEE 1394 IMAQ driver to interface FireWire cameras with LabVIEW & CVI.
    "2.How to connect USB-type interface with IMAQ PCI-1424 board."
    - You will need a USB driver for the camera. The 1424 is not required.

  • How to read XML using vbscript

    hi friends I have A big XML having following format :
    <ECSC>
    <ATTRIBUTES>
    <ETTOOLNAME>ECATT</ETTOOLNAME>
    <ETOBJ_GNDT>
    <VERSION>00000001</VERSION>
    <TWB_TITLE>TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x</TWB_TITLE>
    <TWB_STATUS>X</TWB_STATUS>
    <TWB_RELE>N</TWB_RELE>
    <FUSER>ECATT</FUSER>
    <FDATE>2014-05-22</FDATE>
    <LUSER>ECATT</LUSER>
    <LDATE>2014-05-22</LDATE>
    <LTIME>13:59:50</LTIME>
    </ETOBJ_GNDT>
    <ETOBJNOVER>
    <NAME>ZX_FI_FP_0569_MS07_COAS_FB01</NAME>
    <TYPE>ECSC</TYPE>
    <TWB_RESP>ECATT</TWB_RESP>
    <TWB_DISTL>B</TWB_DISTL>
    <DEVCLASS>Z_SOL_ONEERP</DEVCLASS>
    <MASTERLANG>E</MASTERLANG>
    <TADIR_RESP>ECATT</TADIR_RESP>
    <FRANGE>BC</FRANGE>
    </ETOBJNOVER>
    <ETOBJ_DOC>
    <SEARCH_1>FI_FP_FI_0569_MS07</SEARCH_1>
    <SEARCH_2>COAS</SEARCH_2>
    <SEARCH_3>KO03</SEARCH_3>
    </ETOBJ_DOC>
    <ETOBJ_CNST>
    <TWB_WKREQ>0.000</TWB_WKREQ>
    <TWB_PRIO>3</TWB_PRIO>
    </ETOBJ_CNST>
    <ETSC_TSYS>
    <SYSTEMDATA>Z_SD_1ERP_Z</SYSTEMDATA>
    <TESTSYSTEM>FI_TRUSTED_EN</TESTSYSTEM>
    </ETSC_TSYS>
    <ETSYS_COMP_TABTYPE/>
    <ETSYS_REL_TABTYPE/>
    </ATTRIBUTES>
    <SCRIPT>
    <ETXML_LINE_TABTYPE>
    <item>***********************************************************************.</item>
    <item>* Information.</item>
    <item>**********************************************************************.</item>
    <item>* Script for test case 'TF_FI_FP_FI_0569_MS07_CO_Search_Help_Internal_Orders_vTD0_1_EN.x'</item>
    <item>*</item>
    <item>* For Sub script:</item>
    <item>*  'Test case 3: Choose an Internal Order in One.Fi using external order number while transaction posting (positive case)'.</item>
    <item>*</item>
    <item>* Script is to Display Internal Order using external order number while Transaction Posting 'FB01'</item>
    <item>* GETTAB command is being used to fetch the data from table 'COAS'.</item>
    <item>*</item>
    <item>*</item>
    <item>*     Test data related Information</item>
    <item>*     -----------------------------</item>
    <item>* Default test data present in parameter list has been used while Scripting ( script recording &amp; Performing Checks ).</item>
    <item>*</item>
    <item>* Final execution of result log: 0000037077.</item>
    <item>*</item>
    <item>***********************************************************************.</item>
    <item>* Preparation.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* End Preparation.</item>
    <item>************************************************************************.</item>
    <item/>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Execution.</item>
    <item>***********************************************************************.</item>
    <item>* To get the 'Table Entries' from table 'COAS'.</item>
    <item>  GETTAB ( COAS , COAS_1 ).</item>
    <item>* To display the value for the field 'External Order No'.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FRM_TABL ).</item>
    <item/>
    <item>*----------------------Posting(FB01)-------------------------------------------*.</item>
    <item/>
    <item>* This part of Script is to Display Internal Order using external order number while Transaction Posting 'FB01'.</item>
    <item>MESSAGE ( MSG_1 ).</item>
    <item>* To get the name of the Title Screen.</item>
    <item>  GETGUI ( FB01_100_STEP_1 ).</item>
    <item>* Enter the Required details and Press Enter.</item>
    <item>  SAPGUI ( FB01_100_STEP_2 ).</item>
    <item>* Enter Amount and Tax Code.</item>
    <item>* and, Press F4 help in the Order Field.</item>
    <item>  SAPGUI ( FB01_300_STEP_1 ).</item>
    <item>* In F4 screen, enter the 'External Order Number'</item>
    <item>* pop-up screen is displayed with entries like Order, Description and External Order Number and select 1st order row, press Enter.</item>
    <item>  SAPGUI ( FB01_200_STEP_1 ).</item>
    <item>* To get the values for the field 'Order, Description and External Order No' from F4 help.</item>
    <item>  GETGUI ( FB01_120_STEP_1 ).</item>
    <item>  SAPGUI ( FB01_120_STEP_3 ).</item>
    <item>* To get the value for the field 'Order' from Main screen.</item>
    <item>  GETGUI ( FB01_300_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_300_STEP_3 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_700_STEP_1 ).</item>
    <item>* click 'Yes' button.</item>
    <item>  SAPGUI ( FB01_200_STEP_2 ).</item>
    <item>* click on 'F3' back button.</item>
    <item>  SAPGUI ( FB01_100_STEP_3 ).</item>
    <item>ENDMESSAGE ( E_MSG_1 ).</item>
    <item/>
    <item>* To display the Title Screen.</item>
    <item>  LOG ( V_TITLE_SCREEN ).</item>
    <item>* To display the 'Order' Number from F4 help.</item>
    <item>  LOG ( V_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Description' from F4 help.</item>
    <item>  LOG ( V_DESCRIPTION_FROM_F4).</item>
    <item>* To display the 'External Order no' value from F4 help.</item>
    <item>  LOG ( V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To display the 'Order' Number from main screen.</item>
    <item>  LOG ( V_ORDER_NO_FRM_MAIN_SCREEN ).</item>
    <item>************************************************************************.</item>
    <item>* End Execution.</item>
    <item>***********************************************************************.</item>
    <item/>
    <item>***********************************************************************.</item>
    <item>* Check.</item>
    <item>***********************************************************************.</item>
    <item>* To check name of Title screen for transaction FB01.</item>
    <item>  CHEVAR ( V_TITLE_SCREEN = I_TITLE_SCREEN ).</item>
    <item>* To check the value for the field 'External Order No' from F4 help, which should be equal to 'External Order No' from table.</item>
    <item>  CHEVAR ( V_EXTERNAL_ORDER_NO_FRM_TABL = V_EXTERNAL_ORDER_NO_FROM_F4 ).</item>
    <item>* To check the values for the field 'Order' number from Table, which should be equal to 'Order' no from F4 screen and Main screen.</item>
    <item>  CHEVAR ( ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FROM_F4 ) AND ( I_ORDER_NUMBER_FROM_TABLE = V_ORDER_NO_FRM_MAIN_SCREEN )).</item>
    <item>************************************************************************.</item>
    <item>* End Check.</item>
    <item>************************************************************************.</item>
    </ETXML_LINE_TABTYPE>
    </SCRIPT>
    <PARAMETERS>
                     <ETPAR_GUIX>
    <item>
    <PNAME>COAS_1</PNAME>
    <PTYP>X</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>GETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                              </item>
    <item>
    <PNAME>IOAS_1</PNAME>
    <PTYP>I</PTYP>
    <PDESC>Generated Table for View</PDESC>
    <PINDEX>0001</PINDEX>
    <PGROUP>IETTAB</PGROUP>
    <XMLREF_TYP>T</XMLREF_TYP>
    <PSTRUC_TYP>T</PSTRUC_TYP>
    <PREF_TYPE>VIEW</PREF_TYPE>
    <PREF_NAME>COAS</PREF_NAME>
    <PDATLEN>0000</PDATLEN>
    <PINTLEN>000000</PINTLEN>
    <PDECIMALS>000000</PDECIMALS>
    <SORT_LNR>0001</SORT_LNR>
    <PREF_NAME2>COAS</PREF_NAME2>
    <VALUE>&lt;VALUE&gt;</VALUE>
    <VAL_TYPE>T</VAL_TYPE>
    <TAB_INDEX>0</TAB_INDEX>
                            </item>
     </ETPAR_GUIX>
    </PARAMETERS>
    </ECSC>
    I want to write vbscript for above XML file. Vbscript should display following result :
    1) It should validate <SCRIPT> node The line staring with * symbol is called comment and the line staring without * symbol is call code in above XML file.
    2) Vb Script should display such line numbers those code don't have any comment line specified.
    for example : In above XML the code line : <item>  SAPGUI ( FB01_120_STEP_3 ).</item> it doesn't have any comment line means this code don't have any comment. So vbscript should find such line numbers and code text and show error message.
    3) Each code had its own comment just above line of code.
    4) In <PARAMETER> node we have to check <PNAME> is staring with letter "I" or not.. If its staring with letter "I" then its <PTYPE> and <PGROUP> staring letter should be "I". We have to check this condition
    for every child node of <PARAMETER> node using vbscript.
     Please help me and Thank You so much in advance.
    My Vb Script is as follows :
    filename = "D:\Automation\o.txt"
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set f = fso.OpenTextFile(filename)
    fl=0
    Do Until f.AtEndOfStream
                    strLine = f.ReadLine
                    if (strLine ="MESSAGE ( MSG_1 ).") then
                                Document.write("<br>Inside MESSAGE ")
                                     Do until f.AtEndOfStream
                                                    strLine = f.ReadLine
                                                                    if((Left(strLine,1)="*"))
    Then
                                                                    if((Right(strLine,1)="."))
    then 
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                                     fl=1
                                                    else 
                                                                    if((Right(strLine,1)=".")
    and (fl=1))Then
          fl=0
        else
          Document.write("<br>ERROR Found  at Line No :" & f.line-1&" "& strLine)
                                                                    end if
                                                    end if
                              Loop
    end if
       And the following code for <PARAMETER> tag :
    Const XMLDataFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    xmlDoc.Load(XMLDataFile)
     xmlDoc.validateOnParse = True  
     If xmlDoc.Load(XMLDataFile) Then 
              Document.write "SUCCESS loading XML File"  
     Else  
         Document.write "ERROR loading XML File"  
          End If
    counter=0  
    Set root = xmlDoc.documentElement
    Set items = root.childNodes
    for each item in items
        myPNAME = xmlDoc.getElementsByTagName("PNAME").item(counter).text
        myPTYP = xmlDoc.getElementsByTagName("PTYP").item(counter).text
        myPGROUP = xmlDoc.getElementsByTagName("PGROUP").item(counter).text
        If (Left(myPNAME, 1) = "I") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "I") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "I" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
        If (Left(myPNAME, 1) = "V") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "V") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "V" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    If (Left(myPNAME, 1) = "E") Then
            'Document.write("myPNAME Starts with I")
            IsValid = True
            'Innocent until proven guilty
            If (Left(myPTYP, 1) <> "E") Then
                IsValid = False
            End If
            If (Left(myPGROUP, 1) <> "E" )Then
                IsValid = False
            End If
            If IsValid = False Then
                Document.write(myPNAME & " is not valid.")
            End If
            IsValid = True
        End If
    counter=counter+1
    next
                                                                    

    Here is a better example of how to pull all of the text.
    strXmlFile = "D:\Automation\imp\p.xml"
    Set xmlDoc = CreateObject("Microsoft.XMLDOM")
    xmlDoc.Async = False
    If xmlDoc.Load(strXmlFile) Then
    WScript.Echo "SUCCESS loading XML File"
    Else
    WScript.Echo "ERROR loading XML File"
    End If
    Set items = xmlDoc.SelectNodes("//SCRIPT/ETXML_LINE_TABTYPE/item")
    For Each item In items
    WScript.Echo item.Text
    Next
    ¯\_(ツ)_/¯

  • How to Read DVD using ioctl call

    I used the ioctl call DKIOCCDREAD to read the CD content. Is any ioctl call to read the DVD content?
    If not, How can I read the DVD content in the MAC 10.5.8?

    I used the ioctl call DKIOCCDREAD to read the CD content. Is any ioctl call to read the DVD content?
    If not, How can I read the DVD content in the MAC 10.5.8?

Maybe you are looking for