How to use Labview ""buttons"" to functioning the program?

i'm trying to use the ok button to operate the program to add the value in the  cluster X Y (millemetre) [which is from the machine vision operation] with the value X Y offset [which i gonna input them myself] but .. i dont' know how to make it done , now i'm trying to use event structure but it's not working
plz give me some advice thanks ... by the way i'm got to make this thing done by 3 days due to my project schedule ... thank you
also this software is to locate the orientation for robot to grip the object by using CCD camera
Message Edited by NuMetal on 01-04-2010 10:55 AM
Message Edited by NuMetal on 01-04-2010 10:55 AM
Solved!
Go to Solution.
Attachments:
Project1.vi ‏97 KB
1.jpg ‏92 KB

Place the Event structure inside a while loop. Have a look at some of the examples that ship with LV, they for sure show this.
Then use the value change event for the ok button (place the button's terminal in that fram to have the latching behaviour set correctly).
You can pass the data of XY to the loop output in the same event frame to read it at the very moment, the ok button is pressed.
Felix
www.aescusoft.de
My latest community nugget on producer/consumer design
My current blog: A journey through uml

Similar Messages

  • How to use Labview 7.0 to make program interface?

    Hellow!
    Will Labview 7.0 be able to make the program interface? just like some application software made by VC++,VB?
    The program interface should have the menu,button,...
    Thanks!

    You can use LV to create a fully working program with an interface of your design, just like you would in any other compiler. LV actually serves as a compiler for a graphical language called G, which is based on dataflow instead of text based execution (the data "flows" through wires from one function to the next, controlling execution order and filling the role of variables).
    Since LV is multiplatform (and not MS), its default controls are not identical to those in VC and VB, but those can be accessed to. Actually, in many ways, it's much easier to build an interface in LV, because building the interface actually defines your "variables" and your interaction with the code.
    An interface would be no good without a program, so you will have to know how to use LV. It's much faster to learn than other languages, but you will still need some experience to write good programs.
    To learn more, I suggest you start by reading the LabVIEW user manual. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
    In addition, I suggest you read the LabVIEW style guide.
    If your question was only about MS buttons, like in VB and VC, you can find them in the Dialog Controls palette, or you can use ActiveX to embed them into your program.
    Try to take over the world!

  • How to use SUBMIT key word in the program in the program

    Hello Folks,
                     I want use SUBMIT statment in the program for calling the other program. My query is
    I have one report named REPORT1 and I am using the SUBMIT statment in this report to call the second report named as REPORT2. The flow of the program is I excute the first report REPORT1 and entr the value on selection screen of REPORT1, selection screen is having one parameter. then SUBMIT statment comes into picture to call the second report REPORT2 in this second report, I would like to pass the selection screen value of first report REPORT1.
          I want to know how to pass the selection screen value of the first REPORT1  to second REPORT2.
    Anyone please guide me in this regards.
    Thanks & Regards
    Chetan

    Hi Chetan,
    Try this report.
    Create two reports namely ztry, ztry1 as below.
    Run report ztry.
    When you run report ztry,
    ztry1 will get excuted first(through 'submit'),
    getting values from report ztry through 'import' and 'get parameter'.
    Report ztry.
    *Export and Import
    DATA: text(20) VALUE 'Hello',
          mem(20).
    WRITE:/ 'Export and Import' COLOR = 1.
    EXPORT text TO MEMORY ID mem.
    SUBMIT zawi_try AND RETURN.
    WRITE:/ ''' Hello'' exported to ZAWI_TRY successfully '.
    WRITE:/.
    *Set and Get Parameter ID
    DATA: var(20) VALUE 'Master'.
    WRITE:/ 'Set and Get Parameter' COLOR = 1.
    SET PARAMETER ID 'abc' FIELD var.
    WRITE:/ 'Set Parameter ID is success'.
    WRITE:/.
    Report ztry1.
    DATA: text(5),
          mem(20).
    IMPORT text FROM MEMORY ID mem.
    WRITE:/ 'Importing '' Hello'' from ztry:', text color = 1.
    FREE MEMORY ID mem.
    write:/ mem.
    DATA: var(6).
    GET parameter id 'abc' field var.
    write:/ 'Value got through Get Parameter ID from ztry:',var color = 1 .
    Thanks....

  • How to use LabView to control Primera Bravo II CD burner?

    I am trying to use LabView to control the Primera Bravo II CD burner and label printer. The software that controls the Bravo II is PTPublisher. How to use LabView to communicate/control the PTPublisher? Please help, Thanks

    Hi Qian,
    I installed PTPublisher on a virtual machine, and I was wondering what kind of tasks you wanted to control within LabVIEW.  From the program GUI, it appears like the only way to access functions is via mouse clicks.  Do you know of any other way to control the Bravo II CD burner besides the PTPublisher software?  If not, does the PTPublisher allow you to control it in some way other than clicking?
    Peter K.
    National Instruments

  • How to Use an Image to Customize the Static Button Widget

    Can I just get someone to help me figure out how to use an image to customize the static button widget, please?
    I have tried using several different types of images, but none of them seem to actually change the appearance of the button.
    Thanks!
    Laura
    Captivate 5.5

    I tried to use the tools within the widget itself - it offers you the opportunity to use an image (see screenshot below).
    I also opened it in Flash and tried to replace the images for one of the button styles there w/ my own, but in re-publishing the SWF from there I broke the widget.  When I attempted to use the edited widget, there were no customization controls available after I inserted it (see screenshot two below).

  • I need to program a Hittite Fractional​-N Synthesize​r Evaluation Kit with a HMC702LP6C​E an external YIG oscillator​. Not sure how to use Labview to control the PLL.

    I need to program a Hittite Fractional-N Synthesizer Evaluation Kit with a HMC702LP6CE an external YIG oscillator.  Not sure how to use Labview to control the PLL.

    Here is how to use the PLL. But I don't know of how to interact with that device
    http://zone.ni.com/devzone/cda/tut/p/id/3781
    And for thouse who don't know what a PLL is a free bonus link is here:
    http://digital.ni.com/public.nsf/allkb/07BC8D77D4E​9AE258625708B007CE74F?OpenDocument
    and a second one on what that device is: http://www.hittite.com/products/view.html/view/HMC​702LP6CE
    Now we are all caught up to speed.
    Sam S
    Applications Engineer
    National Instruments

  • How to use labview with the handyboard

    Hi,
    how to use labview with the handyboard
    Thx...

    I'm assuming you're talking about this, since you didn't provide a link for those of us who don't know what you're talking about.
    As the other poster said, you didn't say how you want to use LabVIEW with it.  If you want to write LabVIEW programs than run on the microprocessor, then you're out of luck.  If you want LabVIEW to interact with it, then you've got a couple of options, SPI probably being the best, but it also has DI and AI that you could use to communicate with it - the DI's could be used as a parallel interface.
    Message Edited by Matthew Kelton on 12-17-2007 02:21 PM

  • How to use a button in a required field

    Hi,
    this is my scenario:
    1) In a Form I have two Blocks
    2) In the first, I use a text Item for the customer code, with the required property set to true and with a trigger WHEN-VALIDATE-ITEM
    3) In the second block, I use a button that call the 'show_lov' function in order to display the list of the customers.
    If the focus is out of the first block, I can use the button without problems.
    If the focus is on the customer code Item and I try to use the serch button, the alert message "Field required" is displayed and I don't be able to use the function in the button.
    Exist a method in order to use my button when the focus is in the required customer item?
    If Yes, how can perform this ?
    I hope...
    Best Regards
    Gaetano

    When you set Required = Yes, you're telling Forms not to allow the user to navigate away from the item until they enter a required value. That's the way Forms is designed.
    If you don't like that behavior (and I'm one that doesn't), I rarely use Required = Yes. Instead, I write the code to check for a required value in the PRE-COMMIT trigger. If the item doesn't have a value, I set focus to the item, and then issue a RAISE Form_Trigger_Failure.
    I'm sure there are other ways to do this, but that is just one technique.

  • How to use a user defined function in XI

    Hi Experts,
    I would like learn how to use a user defined function  in Xi during mapping . Is there any step by step on that.
    Besides during when me make communcaton channels I see the following tabs...Paramters ..Identifiers ...Module...
    The module that is given here ...where and how it is used.

    Hi,
    You can write UDFs in java in Graphical mapping to enhance your XI Graphical mapping functionality
    The steps for doing it would be:
    1. Click on Create New function Button found on Bottom left corner on your XI Mapping window.
    2. Write your java code.
    3. Run the Mapping Test as usual.
    >>The module that is given here ...where and how it is used.
    The adapters in the Adapter Framework convert XI messages to the protocols of connected external systems and the other way around. When doing so, some
    functionality might need to be added specific to a situation which is possible with the use of custom modules.
    Typical example would be validation of file content when using a File Adapter or modification of the message payload to a common content structure which is not supported by any of the standard SAP modules.
    An Adapter module is developed as an Enterprise Java Bean and is called locally by the Adapter.
    An example on modules :
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805">How to develop a module for reading file name in a sender file adapter XI 3.0</a>
    Cheers,
    Chandra

  • How to Use LABVIEW charts with Mathscript

    Hi,
       I recently tried to work on Mathscript and it is really amazing. what I tried to figure out is:
        Instead of plotting using traditional "plot" statement, how to use LabVIEW chart ( I know how to Add output but the graph were not as expected
    Is there any mean to get rid of this "Lengthy" delay that "ALL MATLAB User know" for first time compilation?
    Thanks in advance
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology

    Well Chris,
             I was about to post the solution, but as I said, I'm in a middle of experts
    It took me 3 hours to figure it out. I should've checked your answer . I resolved to the same suggesstion of yours. I only added some functionality to get the newbies like me being acquainting with how easy to work with LABVIEW mathscript based on MATLAB knowledge.
    Waleed El-Badry MSc.,MCPD, ISTQB Certified Tester
    Assistant Lecturer
    Mechatronics Department
    Faculty of Engineering
    Misr University for Science & Technology
    Attachments:
    Play with Mathscript.vi ‏35 KB

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to use a user defined function module in IP

    Hi All,
    Can you please guide me on how to use a user created function module in IP? My requirement is to have 2 exit function modules to be used in IP to load the falt file data into a cube..
    Regards,

    Hi,
    /people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
    thanks to Marc Bernard
    Regards

  • How do i make is so that the program is running already and then have a start button to execute?

    I created a program to control a function generator.  I want it so that the program is already running when i load it up, and then when i actually want it to run press a start button.   I think you can just do a case structure for the start button... but how do i get it so that the program is running when you load it.  so when you press the start button it starts. instead of having to press the start button, then press the run program button. thanks!

    A few things about Run When Opened.  Once this is set, if you need to edit the vi, it will start running when you open it.  You then have to abort the vi to edit it.  Some people like to make a backup copy that is not set to run when opened so they can edit it without the hassle of aborting.  In your case, it is probably not worth it since your vi does nothing until the start button is pressed.  But this is for future instances of run when opened.  Also, if you want to edit, I think if you press and hold the shift key (or is it the control key) while opening the vi, it will not run when opened.  Another method to get around the run when opened is to create a blank vi.  In the block diagram, put your vi that is set to run when opened.  Then you can double click on the vi and edit it without having it run when opened.
    - tbob
    Inventor of the WORM Global

  • How to use java api for function activity in embed oracle workflow?

    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

    The Java Function Activity Agent is not certified for Oracle Workflow embedded in Oracle Applications. Installing standalone workflow should be a lot easier than what you have found, although it looks like you did hit a Pentium 4 issue with the Oracle Universal Installer. I suggest you contact Oracle Support or Oracle Consulting for assistance.
    because i can't install standalone oracle workflow successfully.
    pls tell me how to use java api for function activity in embed oracle workflow?
    are there some patch or pulg-in package?
    ths a lot...........

  • How to use LABVIEW to collect wireless network camera (with video server) video.

    How to use LABVIEW to collect wireless network camera (with video server) video.I would like to use LABVIEW for a wireless network camera (IP Camera comes with the video server module)the client program.Will the ability to achieve?If feasible, how to do, there are examples, thank you.

    I believe NI Vision is what you are looking for. 

Maybe you are looking for

  • Not receiving group iMessages/texts

    First off - i know there have been lots of threads similar to this.  I've looked through those and tried the suggestions, but to no avail. I'm still left with the same issue. I've switched back and forth between my iPhone and Android phones for a cou

  • Purches could not be made. Help please.

    Hey, when I want to buy something to a game it says "Your purchase could not be carried out if you want help, contact support for itunes on http://www.apple.com/support/itunes/ww/." The problem is that the site isn't helping. I can't find the solutio

  • Number Range BU_PARTNER & CRM_SERVIC

    Hi, We have newly Installed the Solman 7 EHP1. I have configured Standard Service Desk & CHARM. But when I created first support message its number is 8000000074 next number is 8000000075. After this next ticket number is 8000000080, 8000000082. Ther

  • Date + nos of days

    Hi, How do I get the compute the current date + 7 days could someone provide the sample quotes ? thks

  • Ipod Touch - Apple Mobile Device service

    My iPod is not syncing and I am getting a message saying "This iPod cannot be used because Apple Mobile Device Service is not started" - I have used this iPod previously with only this computer and never had this message come up. Any suggestions how