Draw with picture control using even structure

what i want to do is use the event structure and picture function vi to draw a figure on the displayed file
Attachments:
picturecntrl.vi ‏25 KB

Maybe something like that? (LV 8.5).
(You still need to add support for the zoomfactor, etc.)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
picturecntrlMOD.vi ‏32 KB

Similar Messages

  • 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 can I work lsmw with table control using mm01 appl?

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

    Hi
    How can I work lsmw with table control using mm01 appl?
    Is it difefrent the way we handle table control in BDC?
    Thank You

  • How do I send email with pictures attached, using PSE 9 and Windows 7 ?

    How do I send email with pictures attached, using PSE 9 and Windows 7 ?

    Try email attachment workflow in Organizer. http://tv.adobe.com/watch/learn-photoshop-elements-9/sharing-your-images-via-email/
    Thanks
    Andaleeb

  • Loop delay when using two VI's with picture controls simultaneously

    Hey all,
    I have observed an odd behavior and I'm not quite sure why it happens. I have two VI's that are mapping GPS coordinates onto XY graphs that are displayed on top of picture controls. When the maps from both of the VI's are visible on screen the loops get delayed by as much as a second, but if you just cover the map portion with another window they go back to looping at twice a second as they should. It took me a little while to figure this part out, let me tell you. There are no computing limitations that should be affecting it since my CPU is only at 10-12% and have 4GB of RAM available. I checked the GPU too just in case and it was sitting at 3% usage, so no hold up there. Anyone have any experience with something like this happening to them? It has me stumped.
    I though it might have to do with how LabVIEW handled them, so I went ahead and made them into EXE's and tried it out with the same results.
    Thanks in advance for any help or suggestions,
    dnorman

    dnorman wrote:
    Is it possible to run the redraw of the picture tiles in parallel, on multiple cores, if they are going into the same control?
    I doubt it. Even if the picture control wasn't pretty old (and it is), I don't know of any mechanism which will give you this level of control.
    Here are potential options. I have no idea if they will help:
    Instead of building separate commands, process the data in such a way that you have a single raster image (i.e. a 2D array) to place into the control. I believe this should be faster.
    Use another type of display (such as a .NET indicator).
    Instead of using the XY graph, overlay the data directly onto the image (there should be some graph VIs in the picture palette which might help).
    Try defering panel updates before updating all the controls and undefering after. I don't think this will help, but it's probably the easiest change to make.
    Try to take over the world!

  • How to run my vi from a front panel control without using even structure in the vi

    Hello, I would like to run my vi from a front pannel control instead of the tool bar RUN botton. I am using LV6.1 without the even structure feature, so I can't do as proposed by a previous posting by setting the vi to run at open in a "do nothing state" then taking the front panel control event and switching the vi into another ("running") state. I wonder is there some other type of solutions to this problem. Your help is greatly appreciated.
    Bryan

    Hi Dennis, thank you for the reply. I tried with the attached vi. It can only run once (also not in the correct state I want), as the control i placed on the front pannel will stop the VI. I want to have the vi do nothing when it is opened and start counting when the start botton is pressed. Then i want it stop counting when the botton is pressed again...and so on... I must need a different structure to get it work, or did I miss something simple? Thanks again.
    Attachments:
    StartVI.vi ‏16 KB

  • 3D Picture Control Using Solid Works VRML File and Moving Individual Components

    Hi, i am new to these forums and am looking for help concerning 3d picture control, i am a undergraduate student doing a second year project to control a 4DoF UAV.
    I'm trying to sort out the 3d simulation of it, i have made the solid works drawings and assembly then exported that to a single WRL file (in the correct format ie. ver. 97) however when trying to import that to Labview i am having difficulty setting the relationships so different parts rotate etc. in the assembly.
    i'll attach the corresponding example vi from labview and my solid work files.
    Any help is very much appreciated
    Thanks
    Tom
    Attachments:
    CDEx Draw Helicopter 3D Model.vi ‏21 KB
    WRL and solid work files.zip ‏4235 KB

    hi again,
    i've tried your suggestion with the naming however, i am using seperate VRML files for the different components and using the main vrml file to control the prent-child relationship etc. however when trying to access that file through labview it can't open it. this is the code within the vrml file
    #VRML V2.0 utf8
    DEF assembly Transform {
    Children [
    Inline {
    url [" Bottom Base.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Revolve Transform {
    Children [
    Inline {
    url [" Top Base.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Elevation Transform {
    Children [
    Inline {
    url [" Arm Pivot.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Connector Transform {
    Children [
    Inline {
    url [" Rod-Base Connector.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Rod Transform {
    Children [
    Inline {
    url [" Rod.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Roll Transform {
    Children [
    Inline {
    url [" Mount Connector.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Pitch Transform {
    Children [
    Inline {
    url [" Mount Pivot.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Mount Transform {
    Inline {
    url [" Arm Mount.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Chassis Transform {
    Inline {
    url [" Chassis.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Gearhead1 Transform {
    Inline {
    url [" i_gearhead.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Gearhead2 Transform {
    Inline {
    url [" i_gearhead-1.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Gearhead3 Transform {
    Inline {
    url [" i_gearhead-2.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Gearhead4 Transform {
    Inline {
    url [" i_gearhead-3.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Shaft1 Transform {
    Inline {
    url [" i_shaft.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Shaft2 Transform {
    Inline {
    url [" i_shaft-1.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Shaft2 Transform {
    Inline {
    url [" i_shaft-2.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Shaft3 Transform {
    Inline {
    url [" i_shaft-3.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Prop1 Transform {
    Inline {
    url [" Propeller.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Prop2 Transform {
    Inline {
    url [" Propeller-1.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Prop3 Transform {
    Inline {
    url [" Propeller-2.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Prop4 Transform {
    Inline {
    url [" Propeller-3.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Shell Transform {
    Inline {
    url [" Shell.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000
    DEF Dome Transform {
    Inline {
    url [" Dome.wrl "]
    bboxSize -1.000000 -1.000000 -1.000000
    bboxCenter 0.000000 0.000000 0.000000

  • Insert Art into the Picture control using AGM and ADM

    Hello. I need to get selected art and display it on the User Interface Picture control. What I already did:
    void ASAPI my_inDrawProc( ADMItemRef item, ADMDrawerRef inDrawer) {
    AIArtHandle **artStore = NULL;
    long artCount = 0;
    AIRealRect bounds;
    sAIMatchingArt->GetSelectedArt(&artStore, &artCount );
    AIPathStyle m_style;
    AIDrawArtData drawData;
    const AIColorConvertOptions drawOptions;
    for (int a=0; a<artCount; a++)
    AIArtHandle my_artHandle = (*artStore)[a];
    sAIPathStyle->GetPathStyle(my_artHandle, &m_style);
    sAIPathStyle->SetPathStyle(my_artHandle, &m_style);
    // Insert to port data
    drawData.art = my_artHandle;
    sAIDrawArt->BeginDrawArt(&drawData, drawOptions, 1);
    sAIDrawArt->DrawArt(&drawData, drawOptions);
    sAIDrawArt->EndDrawArt(&drawData, drawOptions);
    What to do next? Please help

    I'm not familliar with the AiDrawArtSuite unfortunately, but another way you might consider doing it is to rasterize the art you want to display using the AIRasterize suite. This will give you back the raw image data that you can put into an ADMImage (and cache).

  • How to control the tab control using event structure?

    Hi,
    I am using tab control and event structure in the program.
    When i run the application event is not happening for the active page.
    When user switches from active page to the other page then event is taking place for all pages
    So, how to get the event trigger for the active page when the application is started
    For more clarification i am attaching the code "Test Control Tab using Event Structure.vi"
    Attachments:
    Test Control Tab using Event Structure.vi ‏52 KB

    You have a basic misunderstanding of dataflow. Maybe you should start with some tutorials or study some of the examples that ship with LabVIEW.
    The event structure belongs inside the while loop, and not vice versa. RIght now, the event structure only runs exactly once and never again.
    If the stop is pressed first, the VI will stop. Game over.
    If the tab control is changed (from any state to any other state!), the inner loop will spin forever as fast as the CPU allows, either executing one or the other case. It just reads the tab terminal to decide which case to execute. Changing tab never triggers any events. The VI is trapped inside the event until stop is pressed to stop the VI.
    you were closer to a reasonable program in the other thread:
    http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=287905
    Have you tried execution highlighting? Maybe things would become more clear of you do.
    LabVIEW Champion . Do more with less code and in less time .

  • Picture control uses up all the resources

    I am using picture control to plot data. As the number of data points increase,the CPU resource usage increases. It finally reaches 100%. All I am doing is drawing the points on the picture control.

    hi jvg,
    you are accumulating draw commands in your shift register.
    Your accumulated commands adrawing the same points over top of where they where before. If you just pass the outputs of draw functions to the picture control, the new points will be drawn over top of the previous picture.
    So,
    in your example, toss the picture-shift-register and just wire to the picture control.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can I create a PDF with form controls using JAVA?

    I have a web site running on linux (Ubuntu). I'm programming in Java. Presently I use open office to create PDFs with form controls (checkboxes, lists and text fields). I'd like to be able to create in my program (Java) with form controls. JasperReports is not good because I don't see a way to create form controls. Help!!!

    I am not sure what this has to do with the Acrobat SDK, as we don't have a version of SDK for Linux (or Java).

  • Communication with motor control using RS-232

    I need to use labview to communication with a stepper motor drive using the serial port RS-232. Could someone please get me started I'm not sure if a should use VISA or instrument I/O. And if I use one of those, how would I set it up?

    Hi Phil,
    Outside of LabView, how do you communicate with or control the motor drive?  If you are able to use software like HyperTerminal or Procomm, then using the VISA serial communication tools will be the simple way of implementing your solution.
    Here are some links which may provide clues on how to proceed.  You can also do a search on VISA Serial communication.
    Happy wiring!!
    JLV
    LINKS:
    Link 1: Although this one talks about an error, it does provide instructions on how to setup the VISA session:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=99660&query.id=0#M99660
    Link 2: Here are some examples: (good starting point):
    http://forums.ni.com/ni/board/message?board.id=170&message.id=65873&query.id=0#M65873
    Link 3: more info:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=86971&query.id=0#M86971

  • Problem with image control using more than 1 web cam

    Hi,
    I am using logitech quickcam pro 4000.Actually I want to get image from
    3 web cam at a time wich will act as a CCTV.I want to get picture from
    more than 1 web cam at a time.But,When I start the .vi,than I get image
    from 1 web cam.I have attached the vi and the demonstration file.
    If anyone  has any idea please send me a reply.
    (The code was constructed using information
    from the Logitech Software Development Kit, downloaded from the Logitech web
    site January 4th 2004.  This
    package includes the royalty free distribution with the camera driver.
    To install the package, download and unzip
    LabVIEW Logitech UWA.zip and run Setup.exe in the 'redist' folder.  This installs drivers (if not already
    installed).  Then run LabVIEW and open
    Logitech Image Acquisition Master.vi. 
    Click the LabVIEW run button.
    Notes for Understanding the Code
    [1] The camera is controlled by an Active-X
    reference from a front panel Acitve-X container that displays the pre-view
    image.  To create this, create a blank
    Active-X container on the front panel and select the Active-X Hydra Video
    Portal class.
    [2] Three methods are called, following the
    Visual Basic guide from Logitech.  The
    first establishes a connection to the Active-X server.  The status bar is activated in the preview
    window (EnableUIElements), and we connect a camera (ConnectCamera2).
    [3] Here we set the value of property
    'EnablePreview' to turn on the preview panel.
    [4] We can get the camera description for
    camera zero here (the first camera connected).
    [5] Here we select the video format (64x480
    – can change it later).  The next call
    establishes the preview size by setting property values.  The preview size should be the same as the
    video format for fastest image acquisition.
    [6] We are restricted to saving the picture
    to a BMP file and then reading it in again. 
    This is a limitation of the SDK. 
    After reading the image file we can change it to a JPG if we wish to.
    [7] Here we re-read the image file and
    provide it to ImageDisplay.vi.
    Other methods and property values are
    reasonably self evident.  In LabVIEW, if
    you right click the Active-X reference terminal on any method, you can create a
    new method by simply selecting the appropriate one from a list.  The parameters for the method appear
    automatically and should be reasonably self-evident from the names.  If you want more details, download the SDK
    from Logitech.
    Other methods allow you to make movies in
    real-time or time-lapse sequences.
    Note that you can also monitor Active-X
    events to detect inputs or parameter changes made elsewhere.  For example it is possible to detect when
    the button on the camera is pressed.)
    Thanks
    Kabir
    Kabir mamun
    PhD Student,DCU
    [email protected]
    www.iward2010.blogspot.com
    Attachments:
    Logitech Image Acquisition Master.vi ‏98 KB

    Hi Peter,
    Thanks for your e-mail.And sorry for late.
    I have changed my activex server in my labview programme.Current 
    server name is XVideoOCX.I have attached 1 example.Still I am facing
    the same problem that I am not getting disply from more than 1 web
    cam.So would you be able to advice me,what should I do regarding this
    matter.
    Actually,This is a part  of my M.Sc project.I am under pressure.Peter,Please do me  this fevour.
    Thanks
    Kabir
    1 eample from help file:
    Video Disply
    1. Choose the input mode (Video, Single Image Files, Screen, etc.)
    XSetInputMode(0) // This
    chooses video as input
    2. Choose the video device
    XSetVideoInput(0) //
    Choose the first available video input device
    3. Initialize XVideoOCX
    XInit() // Initialize
    XVideoOCX
    4. Start internal video capture
    XStart()
    now XVideoOCX should display the live video
    5. Stop internal video capture
    XStop()
    6. Close XVideoOCX
    XClose()
    Kabir mamun
    PhD Student,DCU
    [email protected]
    www.iward2010.blogspot.com
    Attachments:
    ax2.vi ‏23 KB

  • Problems with event source using event structure

    Hello!
    I'm using an event structure block. It works correctly when the event source is a control and the event is change value. But i want to use an indicator like event structure or a variable (like a matrix or a vector). I want that when the value changes, an event occurs, but it doen't work, I dont' know why?. What i have to do to work with indicators or variables in a event structure block?
    Thank you in advance
    Larson

    of course!
    regards timo
    Attachments:
    change_detection.vi ‏20 KB

  • Hands free kit with music control + use my own headphones?!

    Hello all, hope you guys are doing well! This is my first post here
    I am looking for a product and I have searched high and low to no avail. I have an iphone 3GS with iOS4. I use my own earphones but it annoys me how I can't change tracks whilst playing music on the move (eg running). I am looking for an adaptor that will allow me to use my own earphones but also that has a microphone and a button to allow me to pause/play and change tracks as well as answering a phonecall or sending it to voicemail.
    I understand that Apple does not make a product like this (if they do, please let me know!) and I have stumbled across the "Griffin SmartTalk" but I have read mixed reviews about it on Amazon.
    I would really appreciate it if someone could suggest a solution! Thanks very much in advance!

    What you are describing is not possible. How do you get your 30 second clip onto the iPhone? If you place it in a playlist it gets transferred as part of your iPod library and is not accessible from the ringtone selection screen.
    You can pair the iPhone with the Macbook Pro so they see each other but the iPhone reports tot he Macbook that it has no services available. Yet another great feature crippled by Apple.
    As for returning the phone, I think it's important that Apple be made aware that customers wanting these features are angry about it and want resolution. The "if you don't like it, return it and buy something else" notion will never resolve the problem, and just result in customers losing the other features that make the iPhone such a great device. It's like voting for someone you agree with on most issues, and writing to their offices to encourage them to re-think their position on the ones you disagree with. Disabling these features is about one thing - money. Apple has a right to seek all the money they can get. What really stands out about these recent practices is that they are contrary to Apple's past positions on customer creativity and freedom to use Apple products to do highly creative things, without a required additional fee.
    iTunes, iPhoto, imovie and iDVD are all included with OSX. Why? Because they make the experience complete and require no additional costs to achieve incredible results that competitors can't offer in the out-of-box experience. On the iPhone, Nokia's kicking Apple's tail when it comes to Blurtooth file transfers, movie recording, and applying MP3s as ringtones. As a 20+ year Mac customer, I'm not used to being forced to give up useful features just to have new, different ones.

Maybe you are looking for