Using LabView to create a GUI for Delta PLC

Hi,
I'm currently using a Delta PLC, programmed with the Delta WPL software, and I'd like to use LabView to create a very simple GUI which would allow the user to communicate with the PLC (basically, the PLC would be running but doing nothing til the user writes data in one of the coils). I don't know how to do that, and I don't even know if it's possible ?
The PLC I'm using supports Modbus. I tried to use the Modbus library from LabView but I'm not sure it's useful for what I'm trying to do.
Any idea ?
Regards,
Coline

The Modbus library can certainly be used to read and write registers and coils. You just need to know the relevant details for your PLC (address, coil addresses, ASCII/RTU, etc.) and to make sure the PLC is configured to accept these commands.
The Modbus library should have a couple of examples showing how to act as a Modbus master, which is what you want.
Try to take over the world!

Similar Messages

  • Using SWING to create a GUI for PC to Microcontroller connection...

    Hello,
    I am currently undertaking a project task regarding the connection of a microcontroller (uC) to a host pc. Our main task now is to create a GUI that would display information stored on the uC.
    I was just wondering if SWING will be able to accomodate the following:
    1) The uC will be hooked up either through ETHERNET LAN cable or a USB WIFI adapter. The host pc running Java will have a GUI that would be able to locate this IP address of the uC and connect to it.
    2) We have verified that a telnet connection from a pc to the uC works. We could successfully, get the necessary files needed from the uC.
    3) The contents of the files we want are just a bunch of serial numbers. We have uC run a code and store the output into a file. This file would then be transfered to the host pc.
    4) In the end, we want to send this data wirelessly, instead of using the LAN CABLE.
    My question now is would SWING be a good option in implementing this GUI. I have taken a JAVA course a 2 yeasr ago so I am still familiar with some JAVA basics but I have not delved into the networking aspects of JAVA, which I do know it has.
    I await your kind responses,
    thanks.

    Hi,
    By ?C do you mean ?C/OS-II?
    I don't know much about ?C/OS-II, I believe that you could
    make a program for that processor that would listen for connections
    on some ethernet port. Then your java program need to connect to that port
    and fetch the data.
    At the end of this article is a bit of info about sockets in ?C/OS-II.
    http://www.hardware.dibe.unige.it/Software/DynamicC/DynCUsersManual/14ucos.htm
    As pointed earlier, the GUI isn't your biggest problem.
    kari-matti

  • Creating a GUI for use on an Ethernet Network

    I'm designing a data logger to log voltage, current and temperature data on a reserve battery string while it's being charged. The logger will have the capability to be viewed remotely via Ethernet. With that said, I'd like some advice regarding the GUI for the remote PC which will be used to view the logger. Will it be easier to create the GUI using LabView or another high-level language  (Java, C++ etc)? (Note: I have some programming experience in C (though I've never written/created a GUI) and I've never used LabView).
    Solved!
    Go to Solution.

    Hi Joe1373.  In general, for a small one-off project, I would suggest you go with a language you know.
    In this case it sounds like whatever you choose you will have a learning curve, so I would recommend
    LabVIEW if that is a possibility cost-wise.  LV has a lot of built-in support for GUI development so
    you can make realtively sophisticated GUIs without a whole lot of work/learning.
    There are time-limited evaluation versions of LV available for download.  I would take a look there, especially
    the examples.  Find something a little similar to what you want to do, then change the GUI on the 
    example to more closely match your ultimate objective to get a feel for the GUI development in LV.
    This forum is a great resource with some very helpful developers, so come back with questions.
    There are also many professional developers available to assist if you have a budget or inclination
    towards that direction.
    Matt

  • How to use labview to create a Menu?

    Hi I would like to use labview 8.0 to create a Menu interface, anyone can tell me how to do it?
    Thanks,
    Mike

    Click on the Edit>>Run time menu button, and this will open up a menu editor for you.
    In your code, you can use an event structure with the "Menu Selection User Event" to handle the menu selection.
    Open up the Example Finder in LabVIEW and search for Menu.  There are 6 or 7 examples there that will get you started.
    S G
    Certified LabVIEW Architect, Certified TestStand Developer, Certified Professional Instructor

  • Wanna create a gui for an app

    greetz!
    i wanna create a little gui for a commandline app. never done this before. does any1 know about some howto's online? i don't know much about these things at the moment, but i gotta start somewhere, and i'm not afraid to read and spend some time. things that cross my mind when thinking about creating a gui are python, c, gtk,...
    any help, advice, links are very welcome! 
    thanks in advance!

    These should be helpful:
    http://java.sun.com/docs/books/tutorial … index.html
    http://java.sun.com/docs/books/tutorial … index.html
    Basically, you start with a static main method, create a JFrame extension from in it, create the display, add events for buttons and components. To interface with a commandline app, you can use Runtime.getRuntime().exec(); take a look at the java api (under java.lang) for the various versions of the exec method.
    You can e-mail me directly (dusty at buchuki.com) if you have questions, though for professional style advice, the forums at java.sun.com might be more effective (though perhaps not so friendly :-D)
    Dusty

  • Somewhat new to Java -- Given the task to create a GUI for a test.

    Hello there, I am a freshman student, in a Java class; the semester is coming to an end. In our project, we were assigned three parts to complete a program, that basically hands out a test. [I believe someone else has asked questions about a similar problem before, but not towards my situation.]
    The topic I chose to work with was the GUI for the program,and I'm already hitting snags. The issue is..well, probably the fact I get sort of lost when it comes to calling other methods, or just stupid mistakes to begin with. Some of the options we're faced with that we can put into the program are, for example, creating back/next buttons so the user can scroll through given questions, a progress meter [which I have no idea how to go about], Add an answer sheet in a separate window, and some others, but if possible, I will get to those when the time is right.
    Also, a small note about the majority of the code; Most of it is from a mold that was given to us as an example in class, and the 'setUp' method came from another class. [QuizDriver] As of now, the code remains untouched, but the if loops that remain empty or rather messed up is my fault, as I hit a snag and..to be honest, I am quite lost.
    As of now, my code for the GUI is this.
    import javax.swing.*;     
    import java.awt.*;     
    import java.awt.event.*;
    public class ProjGUI implements ActionListener {     
         // class constants      
         private static final int WINDOW_WIDTH = 700; 
         private static final int WINDOW_HEIGHT = 200; 
         private static final int TEXT_WIDTH = 50;   
         private static final FlowLayout LAYOUT_STYLE =     
              new FlowLayout();          
         static Test exam = new Test("Sample Exam", "Select the correct answer for each question");
         private JFrame window = new JFrame("Project GUI: Test");     
         private JTextArea results = new JTextArea("");
         int counter;
         private JLabel QTag = new JLabel("The Current Question:");     
         private JTextField QText = new JTextField(exam.displayQuestion(0));     
         private JLabel AnsTag = new JLabel("Your Answer:");
         private JTextField AnsText = new JTextField(TEXT_WIDTH);     
         private JButton SubButton = new JButton("Submit");     
         private JButton backButton = new JButton("Back");
         private JButton advButton = new JButton("Next");
         private JButton clearButton = new JButton("Reset Answer Choice");
         // constructor      
         public ProjGUI()
              // configure GUI      
              window.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);     
              window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
              QText.setEditable(false);     
              QText.setBackground(Color.WHITE);     
              // register event listener      
              SubButton.addActionListener(this);     
              clearButton.addActionListener(this);
              backButton.addActionListener(this);
              advButton.addActionListener(this);
              // arrange components in GUI      
              window.getContentPane().setLayout(LAYOUT_STYLE);     
              window.getContentPane().add(QTag);     
              window.getContentPane().add(QText);     
              window.getContentPane().add(AnsTag);     
              window.getContentPane().add(AnsText);     
              window.getContentPane().add(SubButton);     
              window.getContentPane().add(backButton);
              window.getContentPane().add(clearButton);
              window.getContentPane().add(advButton);
              // display GUI      
              window.setVisible(true);     
         // actionPerformed(): run button action event handler
         public void actionPerformed(ActionEvent e) {     
              if (e.getActionCommand().equals("Submit"))
                   if(QText.equals(""))
                        QText = null;
                   if(e.getActionCommand().equals("Back"))
                        // Code for going back through the questions.
                   if(e.getActionCommand().equals("Next"))
                        // Code for advancing through the test
              // exam.answer(counter, ans);
              QText.setText(exam.displayQuestion(0+1));
              if (counter == exam.length())
                 exam.scoreExam(true);
                 results.setText("Your final score was " + exam.getScore() + "/" + exam.getMaxScore() + " points.");
                 results.setVisible(true);
              counter++;
         // main(): application entry point     
         public static void main(String[] args)
              setUp(exam);
              ProjGUI gui = new ProjGUI();     
         private static void setUp (Test t)
              TrueFalseQuestion x = new TrueFalseQuestion("The sky is blue.", "true", 2);
              t.addQuestion(x);
              x = new TrueFalseQuestion("The first FORTRAN compiler debuted in 1957", "true", 5);
              t.addQuestion(x);
              MultipleChoiceQuestion m = new MultipleChoiceQuestion("Which of the following is NOT a disk-scheduling algorithm?", "b", 4);
              m.addAnswerChoice("SSTF");
              m.addAnswerChoice("SJF");
              m.addAnswerChoice("FCFS");
              m.addAnswerChoice("All of the above are disk-scheduling algorithms");
              t.addQuestion(m);
               x = new TrueFalseQuestion("Spock was a Vulcan", "false", 3);
              t.addQuestion(x);
    }Feel free to tear it apart, as I am doing trying to figure out how exactly the buttons should work. Any feedback is appreciated.
    Edited by: Ereki on May 15, 2008 11:03 PM
    Edited by: Ereki on May 15, 2008 11:07 PM

    You may find java.awt.CardLayout and javax.swing.JProgressBar helpful.
    Generally if you have Swing-specific questions, you should ask on the Swing forum.

  • Can I use Indesign to create an ePub for iPad with expandable images?

    Hello everyone!  I'm creating a book for iBooks on the iPad.  It is a basic book that has short chapters of text with pictures. Reading Terry White's, the Adobe evangelist, blog I saw that his attempt with InDesign seemed straight forward, without a need for html skills (which I don't have.)  So I would make the investment in InDesign if it is suitable.
    BUT! I would like to add an extra feature that I have seen in some iBooks: When  you double-tap an image the text disappears and the image expands and  fills the page. And when you double-tap the image again it goes back to  normal. Can this be done in InDesign? How?
    I'd appreciate any help.
    Thank you!      

    Size your image so that the longest dimension is 1024 pixels.
    Screen size of iPad is 1024 x 768.
    In iBooks, when a user double-taps on an image, iBooks will open the image in full-screen view and scales the image to its largest dimension.
    In normal book view, iBooks displays all images at their maximum size unless they're larger than the iBooks page, in which case they are displayed to the max width or height of the page (until double-tapped on).
    You can constrain the image size in iBooks with certain HTML coding. (Unlike other epub display software and devices, iBooks ignores CSS height and width instructions unless you make specific use of a <div> tag.)
    More info here:
    http://www.pigsgourdsandwikis.com/2011/04/resizing-images-in-epub.html
    http://carijansen.com/2011/06/07/epub-export-relative-to-page-size/

  • HELP!!! Using LabView to display/control Mitsubishi FX series PLCs

    Hello,
    I am a LabView novice and have some questions around using LabView to control and display information from several laboratory instrumentation with a Mitsubishi FX series PLC. The communication protocol for the PLC is Profibus. What LabView modules/products do I need? Will I be using the OPC server and client to communicate to the PLC? Will I be using the device drivers? Is the device drivers the same as the OPC server. Will I need a profibus network card in the PC for Labview to communicate to the PLCs. Once again, I am a novice so please be patience if I ask more questions to understand your response.

    Hi,
    The following thread seems to address a similar query:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=27248&requireLogin=False
    To answer some of your other questions:
    1. You'll be communicating with the Mitsubishi hardware using an OPC server.
    2. This isn't the same as the device drivers, though it could be included with the device drivers you got from Mitsubishi, you would have to check that with them.
    3. I don't know if you need a profibus network card in your machine, again, you'd have to check that with Mitsubishi
    NI do provide OPC software but I'm not sure if your device is supported. Check if it's listed in the following supported device list. If not you should be able to get an OPC server from Mitsubishi. According to the thread linked above they have one that's compatible with LabVIEW.
    The software NI provides that can communicate with OPC servers is called the Data Logging and Supervisory Control Module. What LabVIEW software do you currently have?
    I would advise that you contact Mitsubishi to make sure you have all the necessary hardware first. Also, ask them about the OPC server software. Then you can work on controlling the PLCs with LabVIEW.
    I hope this clarifies things but if not, post some more questions.
    Regards,
    Sarah
    Applications Engineer | National Instruments | UK & Ireland

  • Use Story to create a script for subtitle text

    I have found a way to use the Speech Analysis through After Affects to create subtitles. However, the film I am making is a documentary and in a foreign language. We have the transcripts of the translated speech and I need to get that into Premiere and eventually After Effects to create the visual subtitles.
    I have seen some threads on using Story to enter transcripts, but I'm new to this Story application and can't figure out how to use it for what I want. I need to assign the text I have to a specific place on the clip. Can Story (and/or Premiere) do this and how do I do it?
    I have assigned a scene number then some text, but nothing is showing up in the clip's metadata with the script assigned to it.
    Any suggestions? Any other ideas for getting text assigned to timecode points for subtitles?
    Thanks.

    If you are looking at attaching the story scripts (scene's) data to the clips metadata please follow the instructions from this thread
    http://forums.adobe.com/thread/1043216?tstart=0

  • Using HRALXSYNC to create internal candidates for E-REC

    Hi Experts,
    I have a question regarding the use of HRALXSYNC.  We have E-REC installed on our ERP system.  Security concerns have already been addressed. 
    I understand that I need to run HRALXSYNC to create internal candidates.  When I first run this program, it shows a red light beside the employee number.  I then click the CP line and click the repair button to create the internal candidate.  The lights then turn all green.
    Is this correct?  In order to create internal candidates I need to use the repair function for every employee from HRALXSYNC?
    Also, going forward, do I need to run this report for every new employee hired and perform the repair act to turn them into internal candidates?
    Thanks in advance.
    Shane LaBonte

    Hi Shane,
    e-recruiting only copies the user group assignment and the licence data of the referene user to the internal candidate. This is documented in Note 1324887 - User group and LicenceData of int. or ext. reference users. This note was SAPs solution to a customner requirement that there is no possibility to specify the user group for crating users for candidates e.g. in IMG.
    As this was originally developed for the old ALE I can't tell if the HRALXSYNC mechanism which is now used together with ALE for EhP 4 also in the standalone scenarion has been enhanced accordingly.
    The password for the user is generated and therefore "unknown" for security reasons. If sap would generate a standard password someone could just use it to access any account as long the internal candidates have not used it for an application and changed it. This would be a data security nightmare.
    There are two different standard scenarios to handle this. In a system landscape with single sign on users use their password for the SSO lead system / repository and the password on the e-recruitng system does not matter. If there is no single sign on internal candidates use the "request password" link on the login screen to get their password. 
    Kind Regards
    Roman
    Edited by: Weise, Roman on Jan 15, 2011 5:20 PM

  • Using DTW to create Outgoing Payment for two Incoming Payment on Accounts

    Hi Experts,
    I hope you can help me with something i'm trying to do please.
    The scenario is this:
    Customer has two Incoming Payment on Accounts:
    £0.30
    £10.00
    I am trying to create a DTW Outgoing Payment for the same Customer which selects these two Payment on Accounts.
    I am using the spreadsheets OVPM and VPM2.
    OVPM:
    DocNum  DocType    CardCode      TrsfrSum
    1              rCustomer  C23900          10.3
    VPM2:
    ParentKey   DocEntry   InvType          PaidSum
    1                  77              it_Receipt       10
    1                   78             it_Receipt        0.30
    Please note:  77 and 78 are the Incoming Payment Numbers.   I have not left any columns out of my templates when I do the import.
    I keep getting an error message which says u201CBase document card and target document card do not matchu201D, I found Note 1254839 for this but I have the correct BP and upper/lower case.
    I have tested on 8.81 PL04 and PL07 and get the same results.
    Any advice would be greatly appreciated!
    Thanks so much,
    Caroline

    Hi Gordon,
    Thanks for your email.
    The sceanrio is that the Incoming Payments have already been made (as POA) in SAP on a Customer Account. 
    Now the situation is that an Outgoing Payment needs created via DTW against the same Customer, but which selects the two POA which were made as Incoming Payments.
    I can do it in SAP whereby I don't use DTW, but whenever I use DTW I get that error message.
    Any help would be appreciated.
    Thanks again,
    Caroline

  • Using LabVIEW Web Server in RT for other web applicatio​ns

    I'm looking to find out whether or not I can host other web page technologies (Java Scripts for example) on web pages hosted on a LabVIEW RT target. I'd like to be able to post a configuration or status page on the web server as well as the standard VI Front panel page.
    Thanks,
    Jason

    Hello,
    LabVIEW RT Web Server is not meant to be used for other things different from LabVIEW VIs. This feature is not supported.
    Ricardo S.
    National Instruments.

  • Using LabVIEW to create a simple datalogger.

    Hello,
    Can someone show me how to create a simple data logger.
    Here's an example, Using a for loop can I keep track of the loop number in an array?
    In the first loop ,first array would have 1, in the second loop,second array would have 1,2. And in the last loop array N, would have 1,2,3...N.
    First loop =>      1
    Second loop => 1 2
    Third Loop =>    1 2 3
    N loop =>           1 2  3 4 . . . N.
    Thanks

    Building arrays are pretty simple. If you want the array outside the for loop, you just have to wire iteration terminal to the edge of the the for loop. The auto-indexing feature of a for loop will automatically create the array. If you need the array inside the for loop, you can use the build array function and a shift register.
    Attachments:
    Build Array.JPG ‏7 KB

  • Clearing Bank Sub-account using F-03 creates FX diff for FX invoice

    I make payments in foreign currency with my online FX provider.
    I enter the invoice (FB60) in foreign currency (eg IDR 200,000,000).
    I then clear the invoice with a payment (F-53) again in foreign currency (eg IDR 200,000,000), overriding the SAP generated OB52 FX rate to match the FX rate that was actually used when purchasing the IDRs to make the payment.
    The withdrawal from our bank account (eg AUD 25,000) is posted via FF_5.
    The local currency amount of the Payment is the same. (eg AUD 25,000)
    Viewing the bank sub-account in FAGLL03 shows a debit and a credit of AUD 25,000.
    When I manually clear the bank sub-account using F-03, I set the currency to the local currency (AUD).  The amounts from the payment side now appear as different AUD amounts.
    I select the transactions that I want to clear.  There is a balance which becomes zero when you toggle between Clearing Currency and Local Currency when you click the "Clearing Curr <> Local Curr" button.
    I am forced to charge off the Clearing Currency difference and enter an FX gain or loss item. 
    When I simulate, SAP automatically generates offsetting FX gain or loss items.  They have Document Currency AUD zero amount, Local Currency AUD non-zero amount and post to the Cost Centre that the original expense was posted to on the FB60 invoice. 
    Is there a way to avoid these FX transactions as all I'm doing is a clearing for bank reconciliation purposes on amounts that are the equal?  There is no actual FX gain or loss.

    Hi,
    When you select open items within clearing procedures, the amount in local currency is recalculated as at the translation date/clearing date from the foreign currency amount.
    The solution is we have to set flag u2018No exchange rate differences for clearing in local currencyu2019 through SAP Configuration (Transaction code: OBY6).
    Regards,
    Krishna Kishore

  • Using Labview's System Exec.vi, is there any way to send multiple standard inputs to the same executeable console? Or is there a way using Labview to target the window for the executeable and send commands to it at will?

    thanks

    One suggestion is to write a batch (.bat) file that will call your executable. The batch file can contain all the standard inputs necessary to run the executable. Then, in LabVIEW, you can call the .bat file using the System Exec.vi.
    As far as your second question, there is no slick way to do this LabVIEW. You would probably have to call Window API functions using the Call Library Function utility. There is a set of VI's that call some of the standard API functions but I don't think they have what you want.
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&74DDE683A1AFF6988625683A000C0D73&cat=034E59A8530E09DF862568900018707A
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

Maybe you are looking for

  • In terms of performance which is better?

    Hi I have a query ... I have table t1 which has 1.5 million records . now , which will be a better option ? Pls note I need to do it at run time from a procedure. create procedure p1 is begin execute immediate 'create table tidup nologging parallel a

  • Hook up a hd tv to my omni 120/1126

    how to hook up my omni 120 1126 windows 7 home premium to a hd tv

  • Which package for saving a variant of transaction SM30?

    Hello, I use SHD0 to create a variant of the transaction SM30. After saving it, I got the dialog to select the package. Z* packages are not allowed, only SAP Packages. Which is the correct package for saving the variant? Best regards, Alexander

  • Picture update

    hello ,if anyone can help,when i add new pics to my mac it should update in bb desktop software but doesn't  do it ,when i add new music to itunes it updates fine ,many thanks 

  • Is it possible to set default table attributes?

    The default font in my tables is different than the default composition font I selected. I know I can work around this by editing the table properties, then going to advanced settings, and specifying font attributes under the "inline styles" tab (eve