Multiple Plots In Seperate Windows

Attached I have created a VI that launches as selected waveforms to multiple plots all on seperate windows. The way I have wrote it causes the windows to lose and gain focus as expected. Does anyone know how to stop the focus from constantly changing? Maybe even a smarter way todo this, or example of it? I was thinking maybe having LabVIEW access some windows APIs that would allow me to control focus. If that is even possible.
Attachments:
LaunchPlotProtoType.zip ‏297 KB

I don't have time to figure out xeactly what you're doing, but here's some ideas from a previous project I did - maybe they'll fit:
The project had one main window, and six sub-windows.
The main window had a button for each sub-window, to call it up.
Each sub window ran on its own, offering a different view on live data being taken by the main.
Each window operated as expected - it stays in front if you click it - you move them around like any other windows.
You couldn't click the CLOSE box, but each window had its own DONE button which closed it.
Here's how it worked:
1... A "Window Manager" vi was initialized (from the main) to generate six OCCURRENCEs and store them in a shift reg.
2... A "Window Launcher" vi is started. It first calls the WINDOW MANAGER to obtain the OCCURRENCE refnums, then launches six parallel WHILE loops.
3... Each WHILE loop has a WAIT ON OCCURRENCE function. It waits a specific time (500 mSec in my case).
4... If the WAIT ON OCCURRENCE timed out, we simply check the state of a global PROGRAM RUNNING variable, and loop if it's true.
5... If the WAIT ON OCCURRENCE did NOT time out, then it was triggered, and we call our particular sub-window (there's one WHILE loop for each window). The sub-windows are set to show front panel when opened, and close when done.
6... Each sub-window monitors the PROGRAM RUNNING global and stops if that is false.
7... Periodically, the six main buttons are fed to the "window manager"'s CHECK function. This checks each button, and if TRUE, calls "OPEN or MOVE to FRONT" VI with the path to the associated sub-window, and the occurrence for the associated window.
8... The OPEN or MOVE to FRONT vi opens a reference to the associated VI, and checks the FP Open property to see if it's already open. If it's already open, the FP.IsFrontmost property is set TRUE to bring it to the front (one might click on the main button while this window is hidden - this will bring it forward).
9... If the window is NOT already open, the associated occurrence is fired. The Window Launcher vi will then start it up.
The windows do whatever work they need within themselves - it's not like the main is doing the plotting and sending data to the windows. It's more like the main is putting data into a common pot and whichever sub-windows are open (running) go and get it.
Hope that helps.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • Ability to view multiple files in ONE window

    I can see here that this is not a new topic really but the thing with Acrobat 9 is so frustrating that it is just unbelievable.
    This is another pearl:
    Acrobat 9 "lost" its predecessors ability to view multiple files in ONE window. After opening four only documents I cannot see anything on the screen because the toolbars on each individual window cover all necessary view and nothing is left for the actual document. And sometimes I need to open 20 documents!
    This is ABSOLUTE DISASTER!!!
    I found some explanations from Adobe on the Web that are more than a year old.
    I was sure that by now this unfortunate mishandling of that feature (apparently it was dropped out from A9 deliberately - WHO'S IDEA WAS THAT?) would be somehow restorable.
    Would anyone happen to know if this feature can get restored to how it was working in A7 or 8 (without the need to uninstall A9 and install A8)?

    No, it can't be restored, unless Adobe decides to change the way Acrobat works (which is possible, but not likely).
    By the way, it was Microsoft's idea... Adobe were just following their example on this.
    You can make a feature request here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • How do I view multiple images in one window?

    How do I view multiple images in one window?  I want to compare images side by side, not in tabs.

    Thank you, Barbara.  I found that I had to close the program after I turned on "allow floating documents" and restart, before I was able to go to "float all in windows". 

  • How do I update a waveform chart with multiple plots one point at a time?

    Hi,
    I am updating multiple plots one point at a time.  That is, every time I update the chart I have a value for one of the plots.  If I put in a cluster with NaN for each of the charts except the one with the data I can only get individual points on the chart.  I would rather have them connected.
    Any clues?  The only thing I can think of is to delay the update and do interpolation between samples - too complicated for me.
    Thanks

    Are the points within a given plot equally spaced in time?  If so, perhaps you need to maintain your own history of the data and used a waveform graph rewriting the history data to the graph each time.  If the points are unequally spaced, then you will need to do it as an XY graph.

  • How can I call the Class and have a PDF appear in seperate window?.

    I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window.
    Where I have an issue is in opening another window to display the PDF.
    I know the Standard PDF Facsheet does exactly this, but that is triggered via the Web browser and calls a Java script, avoiding and events and round-server trip processing. I would have changed the button values so that when pressed it does process the various events and eventually ends up at EH_ONPREVIEW for the BP_HEAD/Overview. I know just need to open a new window and call the process to create the PDF via Smartform.
    Any suggestions would be more than welcome. I have spent so much time on this, and have gained no real ground, so far.
    Jason

    Hi,
    in the method
    data: zcontrol TYPE SSFCTRLOP.
    zcontrol-device = 'PRINTER'.
    zcontrol-langu = sy-langu.
    zcontrol-no_dialog = 'X'.
    zcontrol-getotf = 'X'.
    data: job type SSFCRESCL.
    data: devtype type RSPOPTYPE.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    i_language = sy-langu
    IMPORTING
    e_devtype = devtype
    EXCEPTIONS
    no_language = 1
    language_not_installed = 2
    no_devtype_found = 3
    system_error = 4
    OTHERS = 5.
    data: output_options type SSFCOMPOP.
    output_options-tdprinter = devtype.
    call function FM_NAME
    EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         = zcontrol
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
       OUTPUT_OPTIONS             = output_options
    *   USER_SETTINGS              = 'X'
    IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = job
    *   JOB_OUTPUT_OPTIONS         =
      TABLES
        t_texto                    = t_texto
      EXCEPTIONS
        FORMATTING_ERROR           = 1
        INTERNAL_ERROR             = 2
        SEND_ERROR                 = 3
        USER_CANCELED              = 4
        OTHERS                     = 5.
    if sy-subrc <> 0.
    endif.
    data: DOCTAB_ARCHIVE type TABLE OF DOCS,
    LINES type TABLE OF TLINE.
    *CALL FUNCTION 'CONVERT_OTF_2_PDF'
    ** EXPORTING
    **   USE_OTF_MC_CMD               = 'X'
    **   ARCHIVE_INDEX                =
    ** IMPORTING
    **   BIN_FILESIZE                 =
    *  TABLES
    *    otf                          = job-otfdata
    *    doctab_archive               = doctab_archive
    *    lines                        = lines
    * EXCEPTIONS
    *   ERR_CONV_NOT_POSSIBLE        = 1
    *   ERR_OTF_MC_NOENDMARKER       = 2
    *   OTHERS                       = 3
    data:  l_pdf_len type i,
    l_pdf_xstring type XSTRING.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    IMPORTING
    bin_filesize = l_pdf_len
    bin_file = l_pdf_xstring
    TABLES
    otf = job-otfdata
    lines = lines
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    err_bad_otf = 4
    OTHERS = 5.
    IF sy-subrc is initial.
    DATA: cached_response TYPE REF TO cl_http_response.
    CREATE OBJECT cached_response
    EXPORTING add_c_msg = 1.
    l_pdf_len = XSTRLEN( l_pdf_xstring ).
    cached_response->set_data( data = l_pdf_xstring
    length = l_pdf_len ).
    cached_response->set_header_field(
    name = if_http_header_fields=>content_type
    value = 'application/pdf' ).
    cached_response->if_http_response~set_status( code = 200
    reason = 'OK' ).
    cached_response->if_http_response~server_cache_expire_rel(
    expires_rel = 180 ).
    data guid type GUID_32.
    CALL FUNCTION 'GUID_CREATE'
    IMPORTING
    ev_guid_32 = guid.
    data display_url type string.
    CONCATENATE url '/' guid '.pdf' INTO
    display_url.
    cl_http_server=>server_cache_upload( url = display_url
    response = cached_response ).
    *GV_DISPLAY_URL & GV_PRINTON are class attributes
    CLEAR: gv_display_url, gv_printon.
    MOVE display_url TO gv_display_url.
    gv_printon = 'X'.
    ENDIF.
    Send me you e-mail i cannot post the code that is used in the view.htm.
    Best Regards,
    Caíque Escaler
    Edited by: Caíque Escaler on Nov 26, 2010 5:00 PM

  • 2 simple questions about opening and closing seperate windows via iWeb...

    I'm a web newbie, so please excuse me for my lack of terminology. My questions are... 1. How do i have iWeb open a separate browser window "simultaneously" from my main page to display a quicktime movie or piece of artwork? 2. Is it possible with iWeb to create a "close" window button within that same seperate window so that the veiwer does not have to click the red button in the upper left hand corner. Thanks guys and girls!
    G5 Dual 2.3   Mac OS X (10.4.5)  

    Sorry! i meant I tried all of the links that are on your web page. There are quite a few of them and I watched most of the movies but there aren't any that open on a new window with a link to close it. I thought that happened because I had a pop-up blocker but even after dissabling the blocker and trying opening some of them again they still opened in the same window. I did come accross a couple of links that changed the window and made it do wacky thinks like moving fast left and right and forcing the window to get smaller. Kinda fun but this is not what I had in mind.. lol The rollover javascript is nice but I couldn't find it on the page's source. Is it the part that says "<script language="JavaScript1.2" src=..."? I'm just curious to know which software you used to make the flash movies and how difficult it was. Maya rocks by the way!

  • Open multiple websites in one window

    I would like to open multiple websites in one window with multiple tabs using VBA in Excel.  My present code opens each website in a separate window.
    Sub Weather()
    ' Look at weather websites
        Dim URL As String
        Dim ie As Object
        URL = "http://cleardarksky.com/c/AnaheimCAkey.html?1"
        Set ie = CreateObject("InternetExplorer.Application")
        ie.Visible = True
        ie.navigate URL
        Set ie = Nothing
        URL = "http://www.goes.noaa.gov/GSSLOOPS/wcir.html"
        Set ie = CreateObject("InternetExplorer.Application")
        ie.Visible = True
        ie.navigate URL
        Set ie = Nothing
        URL = "http://www.weather.com/weather/hourbyhour/l/92886:4:US"
        Set ie = CreateObject("InternetExplorer.Application")
        ie.Visible = True
        ie.navigate URL
        Set ie = Nothing
        URL = "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=92886"
        Set ie = CreateObject("InternetExplorer.Application")
        ie.Visible = True
        ie.navigate URL
        Set ie = Nothing
    End Sub

    Hi,
    It depends on your popup blocker (built-in or Addon toolbar), tabbed browser settings and IE security settings.
    See general tab of Internet Options, Tabs button.
    you can specify a target parameter in the navigate method to reuse the one IE window and open each site in a new tab (depending on your settings above).
    window.navigate method
    Regards.
    Rob^_^

  • PDF's open in seperate windows!

    Please help............ my machine is running windows 2000 with version 8.1.2 of Adober Reader. Whenever I open a PDF file then Adobe opens but goes through all the other PDF's that I have ever opened and puts them all in seperate windows. As you can imagine, this is both annoying and disruptive..........please help! :-)

    PDF files are supposed to open in separate windows in Reader 8 (by
    default, you can turn this off). But it doesn't reopen anything, at
    least not when it is working properly.
    I'm guess that what is happening here is that you never closed the
    other PDF files, so they are still open. You can check this by looking
    in the Window menu - open PDFs are listed at the end.
    Aandi Inston

  • How to display the drill through report in a new browser seperate window

    Hello All,
    I am working on a drill through report which should run when I select the column value from the main report. The drill through report I am working on is Centerline Validate Angles for a specific line. It has 2 parameters, Pods ID and Angle. Main report supplies
    these 2 values. Right now, I am having an issue in displaying the drill through report in a seperate window. I have selected Go To URL option from the text box properties in main report and gave the expression as
    ="javascript:void(window.open('http://vmaidbdev1/Reportserver?%2fADN2%2fPipeline%2fCenterline+Validate+Angles+For+Specifi+Line&rs%3aCommand=Render&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
    This is not working. The field in the main report is clickable but when I click it is throwing me error as Reporting services error. Could any one let me know if there is any error in the above expression or anything I need to add or correct.
    Please help. Thanks so much.

    Hi srisql,
    Sorry for the delay in getting back to you.
    After double-check the URL which I posted, I find that I have made some error in it. As you can see, there are some spaces in the URL. So please try the following expressions to check the issue again.
    Angle parameter is a multi-value parameter:
    ="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="& Fields!LINE_ID.Value &"&Angle="
    &Join(Parameters!Angle.Value,"& Angle =") &"','_blank'))"
    Angle parameter is a single-value parameter:
    ="javascript:void(window.open('http://vmaidbdev1/reportserver?/Adn2/Pipeline/Centerline Validate Angles for a specific line&PODS_ID="&Fields!LINE_ID.Value &"&Angle="&Parameters!Angle.Value
    &"','_blank'))"
    The following general URL is for your reference:
    ="javascript:void(window.open('http://server_name/reportserver?/folder/ folder/report_name&parameter_name="&Fields!field_name.Value &"&parameter_name="&Parameters!parameter_name.Value
    &"','_blank'))"
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to make a link page come up in seperate window

    Am not sure how to make a link page to anther site for
    insatance come up in seperate window so that they do not navigate
    away from my site.Thanks Tony

    Select the item you want to use as a link. In the property
    inspector, type
    in the full path to the website you want to link to and set
    the Target to
    _blank.
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html
    "chesterarebest" <[email protected]> wrote
    in message
    news:e88357$ifp$[email protected]..
    > Am not sure how to make a link page to anther site for
    insatance come up
    > in seperate window so that they do not navigate away
    from my site.Thanks
    > Tony

  • URL iView only works in seperate Window

    Hi Everybody,
    i have store a html file under KM-Content. The problem is that i can not open the file with an URL-iview in the portal content area but in a seperate window. So when i choose the property: Launch in a new window = Display in portal content area i get the error access denied ( this message appears in the left bottom of my browser window, i have to click on a small icon to get the protocol with this message) and by choosing = Display in a seperate window it works fine.
    The permission for the KM-Content folder is Everyone.
    regards,
    Seed
    Edited by: seed_mopo on May 8, 2008 1:03 PM

    Try this,
    Remove html, head and body tags from the html file.
    Hope this may work for u.
    Mr.Chowdary

  • (bug?)Movie clip contains an object with a z value will not edit the object in place, it goes into a seperate window.

    When a movie clip contains an object with a z value, I can not edit the object in place, it goes into a seperate window.
    This changes the vanishing point relative to the movieclip instead of the stage (allong with everything else).
    This makes it very hard to keep track of where the movieclips will end up when actualy playing the animation.

    I should have explained my situation a little better. I have a machine that's made up of a number of parts, some of them are fairly large and some are quite small. When a user clicks on a part, I want to center that part on the screen and then move whole machine toward the screen until the selected part either fills the screen (for the larger parts) or the part bumps up against the front clip plane (for the smaller parts).
    I didn't think of checking for a collision with the ViewPlatform's TG, thanks for mentioning that. I wasn't sure how the ViewPlatform's location relates to the clipping plane, but I'll dig into it. I'm still learning how the ViewingPlatform, the image plate, and the clipping planes all relate to each other.

  • Constraining the algorithm for assignment of multiple plot colors

    I would like to know if there is some way to modify the algorithm that
    LabVIEW uses to automatically assign different colors when a graph
    displays multiple plots. In particular, given the default background
    color (black), it appears that black is never used for a plot color.
    However, if I programmatically change the background color to white,
    for example, I would like the plot color assignment to not use white. I
    would also like to know if it is possible to constrain the plot color
    assignment to a single color a priori, without having to go back and
    explicitly assign the colors of each plot via the property node in a
    loop.
    Thanks.
    Lyle

    I think you will have to create your own plot color assignment function to do this.
    You can set the color of each plot by using the active plot property (index of the plot you want to change) and then set the plot color property (just expand one and the same property ndoe to set both at the same time).
    You can then make that function check the background color and choose a color table that fits. If this is in a built application you would run this function when a color change is detected, if it's in the development environment you need this feature make the function ask for a VI and plot name (so that it can get a reference to the plot) and put it in your projects folder. That way whenever you need to set the plot colors differently you just select this function from the Tools menu of LabVIEW. An easier alternative though would be to just create the different graphs you need (with the colors for all plots already defined correctly for that background etc.) and save them as custom indicators...
    MTO

  • Multiple Plots & Scales On 1 Graph

    Hi
    In one waveform graph how we can plot two data with different y-axis i.e.. Multiple plots in one graph
    thanks

    Hi Husssey,
    "right-click" is your friend!
    - Right-click the Y axis and select "duplicate axis" to create an additional Y axis. Now right-click that new axis and select "swap side" for your convenience...
    - Show the plot properties. Right-click the plot and select your "Y axis" to attach the plot to...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Multiple plots on Y-axis

    I have multiple plots and how can I plot them with different depth on the Y-axis, Thks

    I followed the example and I could get the plots on different Y scales. However I always get the same plot stacked on the Y scale. See my source
    ReadMultiSampleAsync(samplesPerChannel, m_data);
    m_graphBeat.Plots.Item(
    "Plot-1").PlotY(CNiReal64Vector (m_data));
    m_data.Scale(1,1.0);
    m_graphBeat.Plots.Item(
    "Plot-2").PlotY(CNiReal64Vector (m_data));
    m_data.Scale(1,1.0);
    m_graphBeat.Plots.Item(
    "Plot-3").PlotY(CNiReal64Vector (m_data));
    Please help..

Maybe you are looking for

  • Printing a report from forms

    I would like to print a report from forms without opening reports first. Is this possible and if so how?

  • Copying Text From Sales order to Billing Document

    Hi all, I have searched all posts for my issue but found nothing so that i am posting this issue. I want to copy the Some text form sales order to billing document is there any cnfig to do this order is there any exit for billing in which i can write

  • Mass upload of VC object dependencies

    Hi Gurus, My client is implementing VC, which is now in legacy system.  There are around 25K object dependencies to be uploaded. These include all types of selection conditions, preconditions & procedures. Is there any way to mass upload all these ob

  • Size of select-list

    Hi, I was told that a select list cannot be bigger than 32K - is this still true or has this bug been fixed for version 3? If this is still true, then how do I avoid getting problems if the select-list becomes bigger than 32K? Thanks.

  • Why is this program so hard to navigate! I find it very un-intuitive.

    So far very disappointed in the method of navigating this whole program. I can't even easily find a help chat or number to contact. I have been waiting over 24 hrs for an answer to a simple question on the forum.