Is it possible to acquire string data from PLC through LabVIEW?

Hi All,
I am using Labview 8.6 and modbus library to communicate with a Allen Bradley PLC and exchange data. the screenshot of library and its usage is attached. the operations possible right now with this library are r/w of bits and bytes. Now there is a requirement to transfer the log table inside PLC to the labview. Using the available provisions in the library, there is no method to read the PLC memory which stores the log table. So I am left with the option of copying the log table memory into input registers and reading input registes into Labview, continuing until 128K of log data is read. But this doesnt really appear neat. Is there any other way of transferring Log table data into Labview?
Is there any other forum in which I can ask this question?
Thanks.
Attachments:
Modbus Library.png ‏71 KB

I had a project to communicate with omron plc with opc server.
 ni opc server configration window,you can config the tag with storage address you wanted.then you can connect your labview application to plc through opc server.
by this way, i can read and write most of the data type,including string.
your labview application act as the client for the opc server.
sorry for my poor english.

Similar Messages

  • Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?

    Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?
      Now a days we are saving / extracting data in a excel spreadsheet, but we would like to do that using a database because it is better.

    You can use ODBC connection to work with SQL Server database.
    Use SQLExec object to execute the SQL statement. Here is a KB about the SQL statement.
    http://digital.ni.com/public.nsf/allkb/4ADEEA04CD24AE0B862565E20002A16F?OpenDocument
    To write data to spreadsheet is more straightforward because Lookout has built-in spreadsheet object. But you need to write SQL statement by yourself to interact with other database.
    To read the data back is the same way. Just use "select" SQL statement to query. You can use Datatable object to query.
    The "Data Source" can be "DSN = data source name;". The data source name is configured in Control Panel->Administrative Tools->Data Sources(ODBC).
    Ryan Shi
    National Instruments

  • Is it possible to Extract the Data from Website?

    Dear Experts,
            Is it possible to Extract the Data from Website and Upload it in the SAP Table?.It is very Urgent.Please help me.
    Thanks & Regards,
    Ashok.

    Hi Friend,
    Generaly if it is one time activity you can do it manually by copy paste in excel.
    But if it is weekly or monthly activity then you have to ask website provide to provide data in excel or CSV file and upload it into SAP.
    I have a situtation like this, and they (Rapaport price) provide it in CSV format with defined columns.
    So it is better to raise the issue to website provider.
    Regards
    Krishnendu

  • Is it possible to retrieve the data from maintainance view?

    Hi experts,
    Am facing one problem.
    Is it possible to retrieve the data from Maintainance View ,If yes how?
    IF it is not possible then Y?
    While am trying to retrieve data from maintainance view it's showing message like
    "it is not a database view or table".
    Can u pls give me ans.
    Thanks&Regards,
    Arun.

    Hi Arun,
    It is not possible to retrieve the data from Maintenance view. Maintenance View is different and Database View is different.
    Maintenance view : Maintenance view permits you to maintain the data of an application object together.The data is automatically distributed in the underlying database tables.
    A standardized table maintenance transaction is provided (SM30), permitting you to maintain the data from the base tables of a maintenance view together.
    In other words, Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    Database View: Data about an application object is often distributed on several database tables. A database view provides an application-specific view on such distributed data.A database view is automatically created in the underlying database when it is activated.Database views implement an inner join.If the database view only contains a single table, the maintenance status can be used to determine if data records can also be inserted with the view. If the database view contains more than one table, you can only read the data.
    Database views should be created if want to select logically connected data from different tables simultaneously. Selection with a database view is generally faster than access to individual tables. When selecting with views, you should also ensure that there are suitable indexes on the tables contained in the view.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong v

    Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong version of backup.

    Answer is no.
    If you want the iCloud backup you have to have n internet connection, thus WiFi.
    The not working WiFi has happened with quite a number of users.
    It is not exactly clear what is the cause but there are suggestions to clear it up:
    Some people have had success by removing an apostrophe from the iPhone name. If your iPhone is called something like “John’s iPhone” then this might work. Go to Settings > General > About > Name and change it to something with no apostrophe.
    Some people have reported success by putting the iPhone into Airplane mode and then going to Settings > General > Reset > Reset Network Settings, but the problem may return.
    You could also try going to Settings > Control Center and disable Access on Lock Screen then turn your iPhone off and on again.
    Make sure that your router firmware is up to date.
    Try backing up your iPhone and then restoring it. Check how to factory reset an iPhone for details.
    If nothing is working for you, try contacting Apple or take your iPhone into an Apple Store.
    Succes, Lex

  • I lost my iPhone 4S. Is it possible to restore the data from the 4S-Backup to my old 3S?S

    Hello,
    I lost my iPhone 4S. Is it possible to restore the data from the 4S-Backup to my old 3S? How can I do it?
    Thank you very much.
    :-) Michael

    Thank you very much for this information.
    I have the newest version of iOS 5.1.1 on my 3S. But I get the data from the last backup of my 3S. The programms are at the same level like the 4S.
    Is it possible to get the data from Time Machine?

  • Is it possible to read/write data from Salesforce using web service hub in Informatica?

    Anyone from Informatica can asnwer this question please

    Is it possible to read/write data from Salesforce using web service hub in Informatica? Not asking about PowerExchange for Salesforce or Informatica Cloud. Just using web service can we load data into Salesforce? Thanks ahead.

  • Acquiring streaming data from two sources

    I�m trying to acquire data from two devices at the same time. I have written two sub VI�s where each one takes the data from one piece of equipment. The equipment is such that they are both constantly outputting data. I have been successful in running both of the sub VI�s separately at the same time. The trouble occurs when I try to put the sub VI�s together in a larger VI. When the two sub VI�s part of a larger VI, both cannot run at the same time. One of the sub VI�s tries to read from the serial port and is unable to get anything in response. Is there something I am missing as to why they can not be running at the same time?

    Hello,
    It is possible that you are seeing the consequences of LabVIEW compiling code written in parallel. More specifically, if you have code in parallel (not connected by dataflow, but in the same block diagram) LabVIEW will split execution time between those parts of your code. Previously you were likely manually starting two separate programs, which inherently adds a delay between the start of the programs, allowing the first program to get sufficiently far in its execution; we could be seeing the consequence of this. It would help if you could be more specific about the details of your setup and code (such as 1. which instruments are connected to which ports? 2. are you writing a command to your instruments and then receiving data as a response? 3. do you rec
    eive any errors? 4. if you do receive errors, which errors do you see and where in your code do you first see them?).
    Repost with some more information (perhaps a screen shot or your code) and we can get a more definitive answer!
    Thank you,
    Regards,
    JLS
    Applications Engineer
    National Instruments
    Best,
    JLS
    Sixclear

  • Acquiring thermocouple data from mutliple channel

    Hi,
    I am developping a temperature measurement data acquisition application (Using the NI-9211). I already managed to acquire data from one channel at a time and plot in on a graph.
    But my final system should allow the user to select from how many channels they want to acquire data, up to  4 channels at the same time. (the NI-9211 got 4 channels).
    Any hint or help on how to do that would be greatly appreciated.
    Thank you

    I tried using the Property Node -> Node name, but with no luck (Can't figure out how to use it properly).
    I included a picture showing how I want my interface to look like. The
    user chooses which channel by checking its corresponding box and the
    graph will only display those checked.
    What is the easiest way to implement it?
    Thanks for your help.
    Attachments:
    Interface.JPG ‏41 KB

  • Acquiring sales data from SAP ERP

    (While evaluating Lumira, after watching promoclips, reading papers and working with the free trial some questions are still unanswered. I kindly ask you for help… Supporting a clear structure, I decided to open a separate thread for each question.)
    How’s about connecting Lumira to a SQL-based SAP Instance to analyze sales data? Does SAP provide a “Business Content” similar to SAP-BW or do I have to join all the affected tables manually?
    How would the scenario above be if I connect Lumira to a HANA-bases SAP Instance?
    Any help would be appreciated, thank you in advance!

    Hi,
    there are a couple of similar threads already, which might give you suggestions:
    Retrieve Data from ERP Infosets
    SAP Lumira: Getting Familiar Freehand SQL Against SAP ERP - then to iPad
    both those links discuss using 'freehand sql' drivers in Lumira to connect to ERP Infosets . (a kind of ECC query)
    a similar approach, going via Business Objects BI 4,  would be to have a Universe ontop of Infoset, and Lumira connects to BI4 to consume the Infoset Universe.
    In both cases, the prerequisite is the definition of said 'infoset' - the creation of which would be handled by content creators within ECC environment, not likely the Lumira user.
    Regards,
    H

  • How can I acquire the data from 3 separate Channels of SCXI1300 simultaneously?

    I am trying to build a DAQ system, which can collect the data coming from 3 different channels. I am using the SCXI 1300 board, Labview 8.0. I used 3 separate DAQ Assistant module to build the system, but it can not collect the data from the 3 channels simultaneously, it can only collect the data from one channel by another channel. So I am wondering how could I fix this problem or rebuild my system.  Thanks

    Hi, Dennis
    I tried to use the NI-DAQmx to replace the DAQ Assistant to do the 3-channel data acquisition simultaneously, and I did the signal splition as you told me. The program works fine for 1-channel data collection, but if I chose 3 channels to do the data acquisition simultaneously, the program could not wokr, and  a warning window  kept poping up, and the window tells me the maximum sampling frequency is 0.952. So I am wondering what is going wrong and how to fix it.
    The attached files are the code and the screen shot of the warning window, please check them.
    Thanks
    Jingrui
    Attachments:
    NI-DAQmx program.vi ‏165 KB
    Warning Window.jpg ‏2305 KB

  • Converting string data from a web service respons into XML structure of XI

    Hi,
    We receive a string structure from a web service.
    The string structure has an xml type format, that is all the tags and its content are in one line .
    The WSDL file of the webservice defines its response structure as a string type.
    How do i convert this string into proper XML structure (predefined by me in Integration repository).
    OR how do i make XI understand this string as an XML structure for further processing.
    Later i have to map this XML message type into IDoc.
    Himani

    Hi Himani,
    Please find the code for ur requirement -
    String need to parse -<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>
    Below mentioned code will convert it to -<MT_DATA><FROMDATE>20080202</FROMDATE><TODATE>20080101</TODATE></MT_DATA>
    Create a Message type and map it like this using java mapping ( no need to use Graphical mapping).
    Use MT_DATA as source and map it to your target structure .
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.io.StringReader;
    import java.util.HashMap;
    import java.util.Map;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.transform.TransformerFactoryConfigurationError;
    import org.w3c.dom.DOMException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Text;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    public class XMLParser {
         private Map param = null;
         public static void main(String[] args) {
              try {
                   XMLParser wdb = new XMLParser();
                   wdb.parse();
              } catch (Exception e) {
                   e.printStackTrace();
         public void setParameter(Map param) {
              this.param = param;
              if (param == null) {
                   this.param = new HashMap();
         public void parse() {
              String document = "<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>";
              try {
                   Document sdoc;
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   // Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   // parse using builder to get DOM representation of the XML file
                   sdoc = db.parse(new InputSource(new StringReader(document)));
                   Element docEle = sdoc.getDocumentElement();
                   NodeList nl = docEle.getElementsByTagName("from_date");
                   Element lstElmnt = (Element) nl.item(0);
                   NodeList nl1 = docEle.getElementsByTagName("to_date");
                   Element fstElmnt = (Element) nl1.item(0);
                   System.out.println(fstElmnt.getFirstChild().getNodeValue());
                   System.out.println(lstElmnt.getFirstChild().getNodeValue());
                   Document tdoc = db.newDocument();
                   Element structure = createElement("MT_DATA", null, tdoc);
                   tdoc.appendChild(structure);
                   Element statement = createElement("FROMDATE", fstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement);
                   Element statement2 = createElement("TODATE", lstElmnt.getFirstChild().getNodeValue(), tdoc);
                   structure.appendChild(statement2);
                   System.out.println("Struct is :::"+tdoc.getDocumentElement().toString());               
              } catch (DOMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              }  catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (FactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (ParserConfigurationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (SAXException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (TransformerFactoryConfigurationError e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         static Element createElement(String elementName, String content,
                   Document document) {
              Element returnElement;
              returnElement = document.createElement(elementName);
              if (content != null) {
                   Text T = document.createTextNode(content);
                   returnElement.appendChild(T);
              return returnElement;
         static Element createElement(String elementName, String content,
                   String attributeName, String attributeValue, Document document) {
              Element returnElement = createElement(elementName, content, document);
              returnElement.setAttribute(attributeName, attributeValue);
              return returnElement;
    Regards,
    Kishore

  • Concerned about possibility of recovery personal data from my old iPhone

    I'm concerned about possibility of recovery personal data after applied "Erase All Content and Settings" option on an iPhone or iPad. Does Apple guarantee that no one can recover my personal data after I deleted & reset my old iPhone by the "Erase All Content and Settings" option ?

    Welcome to the Apple Community.
    You can safely delete the old back up now.

  • Not able to retrieve data from database through servlet

    Hi friends,
    I am trying to open a excel sheet through servlet. In this servlet i am retriving data from mssql database.I am not getting any error but no data is retrived
    i m also pasting the code here
    // Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
    // Jad home page: http://www.kpdus.com/jad.html
    // Decompiler options: packimports(3)
    // Source File Name:   EmployeeData.java
    import java.io.*;
    import java.sql.*;
    import javax.sql.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.*;
    public class EmployeeData extends HttpServlet
        public EmployeeData()
        public void service(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
            throws ServletException, IOException
            httpservletresponse.setContentType("text/html");
            httpservletresponse.setHeader("Content-Type", "application/excel");
            httpservletresponse.setHeader("Content-Disposition", "filename=reports.xls");
            PrintWriter printwriter = httpservletresponse.getWriter();
            try
                javax.servlet.http.HttpSession httpsession = httpservletrequest.getSession(true);
                int i = 0;
             /*   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                Connection connection = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:3413;DatabaseName=newreportsodbc", "reportuser", "cisco");*/
                String url="jdbc:odbc:newreportsodbc";
                Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
                Connection connection = DriverManager.getConnection("jdbc:odbc:newreportsodbc","reportuser","cisco");
                Statement statement = connection.createStatement();
                printwriter.println("<b><center><u> Search Results </u></center></b>");
                printwriter.print("<table><tr><th color=brown background-color=#fff000>  No.  </th>");
                printwriter.print("<th> DateTime      </th></tr></table>");
           ResultSet resultset = statement.executeQuery("SELECT * FROM t_Call_Type_Half_Hour");
                boolean flag;
                for(flag = false; resultset.next(); flag = true)
                    i++;
                    SerialNo = resultset.getString(2);
                    printwriter.print((new StringBuilder()).append("<table><tr><td> ").append(i).append("</td>").toString());
                    printwriter.print((new StringBuilder()).append("<td> ").append(SerialNo).append("</td></tr></table>").toString());
                if(!flag)
                    printwriter.println("<h1> No records selected </h1>");
            catch(Exception exception)
                System.out.println((new StringBuilder()).append("SQLException: ").append(exception).toString());
        static String empid1;
        static String empid;
        static String SerialNo;
        static String designation;
    }thanks in advance. i just feel there is something to be done with connection string.

    post the table format in SQL

  • How to see data from anemometer in labview?

    I'm attempting to see the data from my anemometer via labview...when that didn't work I wanted to make sure the instrument was working, so I tried to set it up in HyperTerminal like the anemometer instruction manual suggested. Now HyperTerminal won't let me connect to the anemometer using that port (keeps saying another program is using Com5, and to try again later!)
    Any suggestions on how to just basically See the data in labview from my anemometer(or hyperterminal if you're better at trouble shooting that!!)??
    Thanks!

    It's possible that Com5 isn't the correct port to read the data from. Since the built in serial port on most PCs is setup to be Com1, you might just be talking to wrong port. Of course if you've changed the default system setup or have added some extra serial ports, this may not be the issue. Hyperterminal probably isn't working because you have opened the port in LabVIEW but have not properly closed it. The operating system won't let more than one application at a time to access a serial port. Try shutting down LabVIEW, then try Hyperterminal. That should release the port. You might need to reboot. If you still get the error in Hyperterminal, then you are trying to access a port that is already in use by something else.
    Since your anemometer is a serial instrument, the easiest way to simply read data from it would be to use the Instrument Assistant Express VI. (assumming you're using LabVIEW 7.0 or 7.1 here)The Instrument Assistant is pretty good at hepling you figure out how to talk to your device. But if you're going to be using this in an application, you should look into using the VISA functions.
    Have a look through the LabVIEW examples (look in the help menu for "Find Examples") for plenty of serial examples. And remember to always close the port at the end of your application and don't use the Abort button on the toolbar to stop your application. Put everything in a While loop and use a boolean Stop button. The examples will show how to set this up.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

Maybe you are looking for