Making sub-programs with picture objects

Hello all,
I'm a mentor for a FRC Robotics Team. For the summer, I want to try to make a VI that is able to create sub-programs for the autonomous period. Basically, there would be this canvas that the user could move the "robot" (aka rectangle) around, and it would record its movements and "translate" them into "motor code".
For instance: I want my robot to go straight for about 3 feet, rotate 90 degrees clockwise, and go another 3 feet. I would take the rectangle, drag it up an equivalent 3 feet (maybe using a grid pattern to show 0.5 feet increments), rotate the rectangle 90 degrees clockwise, then drag it another 3 feet.
This is the big picture. Right now, I want to know if it's possible to have a user drag a picture (such as a rectangle) and have the program where it is on a coordinate plane.
Thanks!

Whenever I hear someone ask, "Can LabVIEW..." I always say yes, regardless of what comes next. In the the case of your requirement, there is (or at least was) an example in one of the lower-level training classes that did most is what you want.
The point of the exercise was to teach saving binary data, but to generate the data (this is the bit that will be interesting to you) they created a little drawing program using mouse events on a 2D picture control.
So, yes, what you want to do is very doable, my sense though is that it is one of those projects that would take a couple hours to create a working prototype, but you could play with tweaking for months...
Have fun!
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Who has the book:Object-Oriented Programming with ABAP Objects

    Hello everyone
    Now i want to learn ABAP OO,and Lots' of guys told me that the book  Object-Oriented Programming with ABAP Objects is realy a good book.but i searched on the net,and could not got PDF of this book,could some one gave me the net address if you know where to download the book or send me to my Mailbox:<email id removed by moderator>,I will very glad to receive any response from you,
    of course,if you have some advise on how to learn ABAP OO or some other material ,hope you could share your meaning with me, hope to receive your response.
    Best regards!
    From Carl
    Moderator message : Moved to career center.
    Edited by: Vinod Kumar on Aug 27, 2011 9:21 AM

    I'm sure you're not asking for illegal, "free" downloads. You can legally purchase the book, also in electronic format, at sap-press.com
    Thomas

  • Program with authorization object

    Hi Experts,
    I have an issue regarding rules and authorization.
    I have created a program with 2 radio buttons transfer and backload. The requirement in authorization is not all users can access both; some can only access transfer and some can access backload only. (r_trans,r_back)
    The basis told me that they need an authorization object in order for them to block/separate the transaction for transfer and backload.
    Is there a way for me to modify the program and put an authorization object with my radio button? or is it possible to do this with the current program?
    Thanks!

    Hi,
    Thanks for the reply,
    Our basis is using PFCG for roles and authorization , how can they check if my authorization object was created using that code?
    Here is my code: Im getting sy-subrc = 12.
    IF r_trans EQ 'X'.
       AUTHORITY-CHECK OBJECT 'ZACTIVITY'
                    ID 'ACTVT' FIELD '01'.
       IF sy-subrc NE '0'.
         MESSAGE 'User not authorized' TYPE 'S'.
         LEAVE LIST-PROCESSING.
       ELSE.
         MESSAGE 'User is authorized' TYPE 'S'.
         LEAVE LIST-PROCESSING.
       ENDIF.
    ELSEIF r_back EQ 'X'.
       AUTHORITY-CHECK OBJECT 'ZACTIVITY'
                    ID 'ACTVT' FIELD '02'.
       IF sy-subrc NE '0'.
         MESSAGE 'User not authorized' TYPE 'S'.
       ELSE.
         MESSAGE 'User is authorized' TYPE 'S'.
       ENDIF.
    ENDIF.

  • Interactive Reporting Scripting with Picture Object

    I'm using CreateShape(bqShapeType, [sectionName]) to dynamically create some simple graphics on a report. I've created simple shapes and lines fine. But I'm at a loss when creating new picture objects (which is a shapetype bqPicture). I can create it fine, but I have not been able to find the property to set to the image file or resource that I want to use. I belive I've inspected all properties and methods of the picture object and there doesn't seem to be one for setting the actual image to use. I find this really odd! I looked at all the following properties and methods.
    Picture Object
    - Methods - OnClick
    - Properties - Alignment, Comments, Locked, Name, Text, Type, VerticalAlignment, Visible
    - UserValues - Methods: Add, Item, RemoveAll, Properties: Count
    - Line - Properties: Color, DashStyle, Width
    - Fill - Properties: Color, Pattern
    - Placement- Methods: Modify, Properties: Height, Width, XOffset, YOffset

    Unfortunately, there is no way to programmatically replace picture in the dashboard. If you need to dynamically change some picture then the common approach is to add several pictures one upon another and hide/show the picture you need. 'Visible' property is used in this case.
    However the replacement is possible for report pictures, see the 'FilePath' property for details (dashboard pictures lack this property).
    This problem is solved in the upcoming release. It will contain a full featured api to manage the centralized image storage (aka Resource Manager, Tools -> Resource Manager). Also, FilePath property will be added to dashboard picture property list.
    Hope this information will help you.

  • Module pool programming with Abap Objects

    Hi masters,
    Somebody tell me that you can directly call a local class in a module pool.
        Is that possible?
        Can anybody refer me to any kind of information?
    Thanks a lot.

    Well, thanks for the answer, but not was the one i was waiting for... it wasn't helpful.
    But, i've continued searching for answers... and i've found that:
    OO Transactions Locate the document in its SAP Library structure
    In transaction maintenance (SE93), you can specify a transaction code as an OO transaction.
    You either link the transaction code to the Transaction Service of the Structure link ABAP Object Services for persistent objects or to a public method of a global or local class of a program. When calling up a transaction that is linked to an instance method, the system automatically generates an instance of the class in its own internal session.
    An example of a link between a transaction code and an instance method of a local class of an unspecified ABAP program:
    Example
    *& Modulpool DEMO_OO_TRANSACTION *
    program DEMO_OO_TRANSACTION.
    class DEMO_CLASS definition.
    public section.
    methods INSTANCE_METHOD.
    endclass.
    class DEMO_CLASS implementation.
    method INSTANCE_METHOD.
    message 'Instance method in local class' type 'I'.
    endmethod.
    endclass.
    The DEMO_OO_TRANSACTION program is a module pool of type M that does not contain any screens or dialog modules. Instead, the program contains the definition of a local class DEMO_CLASS.
    The DEMO_OO_METHOD transaction code is linked to this program as follows:
    The start object of the transaction is Method of a class (OO transaction).
    OO transaction model is not selected.
    The Class Name is DEMO_CLASS.
    The Method is INSTANCE_METHOD.
    Local in program is selected and DEMO_OO_TRANSACTION specified.
    When the transaction is called up, the program is loaded, an instance of the class is created, and the method is executed.
    Leaving content frame
    That's what i wanted.
    I hope it would be helpful for anyone else.

  • Programming witha picture

    Say I have a picture, a jpeg. It is a rectangle with a oval hole in the center. Say a user points and clicks at the top/bottom and sides of the rectangle and the top/bottom and sides of the hole. Is there a way, using JAVA, for those points (where the user clicked) to be stored and the distance from each side to the boundary of the hole can be calculated. What I want to do is find the dimensions of the hole.

    you could place the image onto a jlabel and the use the mouselistener or mouseadapter and detect mouse click events to get the coordinates (x,y) and then possibly use that to calculate the distance. only problem is that this assumes the use will click the correct places, top/bottom and sides of hole and rectangle, not sure how you can detect that only those areas will be clicked. but if you going to assume that the user will always click there use the mouseclicked event from the mouselistener or mouseadapter to get the coordinates.

  • Spiral/Vortex with Multiple Objects

    Hi, all
    I'm trying to replicate this image from Shutterstock with multiple objects to create this spiral vortex.
    http://image.shutterstock.com/display_pic_with_logo/849265/101051014/stock-vector-card-sui t-hearts-diamonds-spades-and-clubs-playing-cards-op-art-vector-illustration-101051014.jpg
    I looked up tutorials like this: http://vectorguru.com/tutorials/how-to-distribute-objects-along-spiral.html
    Where I can put say the hearts on one spiral.
    But, the image seems to be multiple spirals in a uniform and equidistant manner. I would like to know how to go about making a "vortex" with multiple objects very similar if not the same to this fashion.
    Please advise.
    Thanks!

    Hi lotrismylife,
    I was able to get a similar effect using the following steps:
    Create a pattern brush of the 4 symbols next to each other (that way you can distribute them easily around the circle).
    Start with the outermost circle, and apply the new pattern brush to it's stroke.
    Expand the circle
    Object > Transform > Transform Each (CTRL + ALT + SHIFT + D)
    Set the horizontal & vertical scale to be smaller than 100% (you must experiment with this, depending on how big the gaps between circles must be)
    Set the rotation angle (depending on how much each circle must rotate)
    Click on Copy
    Now continually press CTRL D - this will continue to create a copy of the outermost circle that is x % smaller, and x degrees rotated.
    End result:

  • How to display a continuously updating mesh object with the Labview 3D Picture Object

    I have a continously updating stream of 3D images that can be represented in a mesh (a 3D movie if you will). I want to display this in the 3D Picture object so that everytime I acquire a new 3D image it is displayed. Examples are scarce and I couldn't find anything that dealt with this specific issue.
    Currently (within a FOR/WHILE loop) for each iteration I create a scene object, set the geometry as a newly created mesh object, set the texture and eventually wire it to the 3D Picture. This implementation seems to leak memory (the taskmanager shows the used memory continously increasing and eventually processing speed will drop). I assume it's because I recreate the object for each iteration. Trouble is, I can't find anything that would let me release/delete the object once I'm done with the frame. All examples that I found only deal with creating the 3D object once and manipulating it.
    What's the appropriate way to code this? 
    Solved!
    Go to Solution.

    You just need to use the 'Close Reference" VI on the 3D Picture Reference as this code below. It runs inside the loop.
    Now, if you are dealing with mesh, then you should use the Set Mesh Parameters to change the points inside the loop and then, just closed the reference after the code is done. Look at this code below. The trick is to get the reference back from object using Typecast ( To More Specific Reference VI).
    Also, look at the shipping examples in:
    C:\nivs_dev\2013\InstallTo\ProgramFiles\National Instruments\LabVIEW\examples\picture\3D Picture Control
    and specially the Using Meshes.vi.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • Can I change background of program with a desired picture?

    Hi
    Can I change background of program with a desired picture? how?
    Solved!
    Go to Solution.

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Help on "Programming with Objective-C Exercise.

    I'm working through the "Programming with Objective-C exercise and in the chapter "Working with Objects," there is a question to use the factory method as follows:
    Implement the XYZPerson class person factory method you declared in the previous chapter, to return a correctly allocated and initialized instance of the XYZPerson class, then use the method in main() instead of your nested allocand init.
    Tip: Rather than using [[XYZPerson alloc] init] in the class factory method, instead try using [[self alloc] init].Using self in a class factory method means that you’re referring to the class itself.This means that you don’t have to override the person method in the XYZShoutingPerson implementation to create the correct instance. Test this by checking that: 
        XYZShoutingPerson *shoutingPerson = [XYZShoutingPerson person];creates the correct type of object. 
    I'm not sure how to impliment the "person" method.
    My code looks as follows:
    -(void)person
         [[self alloc]init];
    After this I get various error messages when I try to change the code.
    What is the benefit of using this initiation versus the [[XYZPerson alloc]init]; ?
    Thank you.

    I tried that but i got an error message: "result expression unused".
    +(void)person
         [[self alloc] init];
    in my main.m file,
    XYZShoutingPerson *shoutingPerson = [XYZShoutingPerson person];
    also gives me an error message "innitializing 'XYZShoutingPerson * __strong' with an expression og incompadible type 'void'
    this is the link to the page from which I found the exercise.
    https://developer.apple.com/library/mac/documentation/cocoa/conceptual/Programmi ngWithObjectiveC/WorkingwithObjects/WorkingwithObjects.html#//apple_ref/doc/uid/ TP40011210-CH4-SW1

  • Can DME, EDI be used to build a form(with pictures and logos)?

    Hi All
    I have a question on DME,Electronic transmission and forms(sapscripts,smartforms etc).
    There is a program rfumsv00(advance tax return). Surprisingly this program doesnot give the option to output the data into a "form"(government specified format with logos, pictures etc).
    (The program gives this facility to output to a form only for Germany and Belgium.)
    Now i want to get the output of this program into a "format as prescribed by the government of India". How do i do this?
    The program has facility for "electronic transmission" and DME". Can we use this to get a output similar to a "form"?If yes...how?
    Message was edited by:
            kumar kumar

    Hi Anji
    Thank you(I am on the verge of awaring you points).
    But one last clarification. You have mentioned that i can design a FORM and then make the program call the form. But this would involve making a Z program.
    I want to know if instead of the form, I can use the option "electronic return" or "DME"?Maybe the  "electronic return" or "DME" already has pre defined forms (with pictures and logos) and if not will SAP allow me to define the form in DME  or electronic return and make the standard program to use that? This way i dont have to do a Z development. Can you help me?
    Message was edited by:
            kumar kumar

  • Memory Leak with Picture Control

    Hi all
    There is bug with Picture Control
    When you insert you picture data in loop into the shift register, memory leak
    Can somebody to prevent this bug?
    Run attached example and look at Task Manager
    Attachments:
    Picture Memory Leak Example.vi ‏24 KB

    I believe David properly called the cause of this memory consumption.
    In reply # 52 of thsi thread,
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=5&jump=true
    I posted an example that inserts 130 FP object images in a picture and moves them around (it is a random walk where each object is assigned a letter and the program terminates when all of the letters required to spell out "Hello World" wander into the trap at the bottom.)
    A snippet of the code follows.
    A) Start with a blank picture
    B) Inster all of the images
    C) show the updated image.
    Other links to LV Picture control examples can be found in this thread.
    http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14&jump=true
    Ben
    Message Edited by Ben on 01-14-2007 08:58 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    Many_Objects.JPG ‏24 KB

  • How do you make a slideshow with pictures & videos?

    ok, i'm new to mac & video editing. i want to make a slideshow with pictures & @ the end of it, i want to put in a clip from a home video. if i put the home video on a DVD, will i be able to edit it? i know i have to edit the video in imovie but where do i go from there? can i import it into iphoto & make the slideshow there? if so, how do i save the imovie project as the right file type so i can import it into iphoto? if i can't make it in iphoto, what program do i use? i want the slideshow to be able to be viewed on a PC also.

    Welcome to the Apple Discussions. As already mentioned you'll need to use a 3rd party slideshow application or iMovie.
    However, you can create a slideshow in iDVD with stills and a video clip as iDVD 7 (08) now permits both stills and movie clips to be placed in a slideshow. This screenshot shows multiple video clips in an iDVD slideshow but you can also have stills and video clips.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • About report groups and read programs for the object EC_PCA_SUM

    Hi Friends,
    Hope every one is doing well..!
    I've an issue with the report groups and read programs for the object EC_PCA_SUM. As we know that the report groups and read programs available for this object in the application customizing are used to analys the archived data.
    That is these programs comes into picture after the archiving operation.
    For more information, you can visit the below web site:
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/e4/69f353b75a11d1b5850000e82debc6/frameset.htm]
    Now, my question is how would I check the code for these analysing programs available for this object. I can't see this in SE38.
    Thanks to reply for this..
    Full marks will be awarded.
    Regards,
    Shamim

    Hi Lakshman,
    Thanks for the reply.
    Hi Deiter,
    You're right.
    Your provided transaction "GR55" helped me to find out the program name for a particular group. However, these are just Write and Painter reports.
    But can you please let me know the functionality of these report groups ?? what are these used for ???
    Do we have these programs for other archiving objects like CO_ITEM,CO_ML_BEL,MM_MATBEL,CO_ORDER,
    PP_PLAN,PP_BKFLUSH ??
    More points will be awarded.
    Thanks a lot.
    Regards,
    Shamim
    Edited by: S H A M I M on Sep 19, 2008 3:19 PM

  • Program with Top includes

    Hallo,
    I hope someone can help me.
    I would like to know if is it allowed this program under ?
    Program with Top Includes.
    Type 1 Exucutable Program.
    Developement class $TMP - Temporary Objects.
    Logical Database ABS. ABAP Book: Customer and bookings.
    (DB Selection Screen 1000)
    If it is allowed where can I use Events GET in flow logic ?
    Thank in advance.
    Kindest regardes.
    Claudia

    Hi Claudia,
    Welcome to SDN Forum. Don't forget to read the [rules of engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    Take a look at Report "EXAMPLE_PNP_GET_PAYROLL" it demonstrate how to use Logical database and GET events.
    Logical database      PNP                   HR Master Data
    Selection screen      900                   Selection screen on payroll results
    * These three tables need to be declared for the selection screen-.
    * Currently, the declarations of  pyorgscreen, pytimescreen HAS to
    * be done in addition to setting selection screen = 900 .
    TABLES: pernr.
    * Declare the country specific structure:
    * payXX_result with  XX = country code, e.g. payDE_result for Germany
    * Country = 99 is an exception: If this structure is used, the
    * international part of every payroll result is returned regardless
    * of country code. In the other case, pernr's whose country code do
    * not fit the structure are skipped.
    NODES: payroll TYPE pay99_result.
    DATA: wa_wpbp LIKE LINE OF payroll-inter-wpbp.
    GET pernr.
    WRITE: / 'Currently working on:'(021), pernr-pernr.
    GET payroll.
      LOOP AT payroll-inter-wpbp INTO wa_wpbp.
        WRITE:   / 'Personal Area ='(018),  wa_wpbp-werks,
                   'Sub Area ='(019),  wa_wpbp-btrtl.
      ENDLOOP.
    Don't forget to close this thread and all yours previous when your question be answered !
    Best Regards.
    Marcelo Ramos

Maybe you are looking for

  • Mandatory item validation at a page level?

    Hi, We have a page where the list of mandatory items changes according to how some 'key' items are set by the user e.g. if they select option 1 on item 1 we need a different set of mandatory fields than if they set option 2 - setting option 1 in item

  • Process chain taking long time

    Hi,     I developed a Process chain. In developemnt for Completion of the Update rules(Start routine) its taking 60m( for around 50,000 records). After transporting the Process chain to Production for Start routine completion (For 1,70,000 records) i

  • Bridge CS3 and Camera Raw

    Hello, I have Bridge CS3 that came with Adobe Web Standard that I bought when I have doing web design. I also have Photoshop CS that I use for my camera digital editing. At a camera club today they were using Bridge and Photoshop CS5 to show what it

  • Problem when I upload txt files to the server

    Hi, I have a problem when I try to upload files to the server, and I can't understand the fail. My case is: I have a jsp page where a from is. This form is sended to a servlet that proccess its content and upload the attach file to the server. It wor

  • How to create a common function in Sqlserver to get Effective working hours of employee

    Hi The following is the logic applied in the application , But I want to create an server function , Pls help adc_opening  is starting time and   is an argument 1 adc_break is finishing time and   is an argument 2 adc_break is breake time and   is an