When I m going to move the front panel or a window for 3d scene instant hang the program.

When I m going to move the front panel or a window for 3d scene instant hang the program.
Υou can easily try to "generate sound" in the examples.
Can I overcome this? (without lock movement).
tnx
Giannis

Yes, I was right -- you have a single loop where you generate data points and display them.  Consider the operation of your program if you do not display the data as a Chart, but instead simply display (as an indicator) the most recent value.  The loop will go into your sub-VI, wait the appropriate time to generate a point, return, display, and immediately call the sub-VI again.  Fine, it should run at the speed of the sub-VI.
Now add the Chart.  Same thing happens, but now you move the Chart.  The top-level routine, tasked with displaying the Chart, needs to use additional time to repaint the Front Panel, so it take it.  Now when you call the sub-VI again, time has elapsed.
What you need to do is to run two loops in parallel, so-called Producer-Consumer Design Pattern.  Have your sub-VI return a Waveform (not a Chart).  This loop becomes the Producer -- all it does is "produce" a Waveform at whatever rate the sub-VI specifies.  Create a Queue of Waveforms outside this loop, and enqueue the Waveform onto it.  In a parallel loop (usually written below the Producer Loop), write the Consumer loop, into which you pass the same Queue.  Here you Dequeue the (latest) Waveform and display it on the Chart.
Now, while this runs, move the Chart.  The Consumer loop will be delayed (because you are refreshing its Front Panel), but the Producer loop, running in parallel, just keeps going, putting more points on the Queue.  When the Consumer finishes its Front Panel update, it blithely plots whatever is on the Queue.  If you look carefully at the traces being plotted, you should notice that when you move the Chart, the plotting temporarily stops, then the "missing" points are speedily plotted and plotting resumes at whatever rate it was before you moved things.  This is the power of parallel processing and LabVIEW.
Bob Schor
P.S. -- there are examples of Producer Consumer patterns -- if you open LabVIEW and go to File, New, you should see some examples under From Template.

Similar Messages

  • It is possible to open the front panel of a subVI more then one time at the same moment?

    I want to open a subvi´s front panel several times with each one operating independently. The subvi has a ring with several variables to choose to show in a graphic. The subvi is called from a button on the Main Front Panel. It is possible to, for instance, open the subvi and set it to show a temperature graphic and click again on the button to call another instance of the same subvi and select pressure for the graphic, keeping both new windows side by side? Will I still be able to access the Main Front Panel?

    Yes you can. You have to use a .vit (VI template file). There's an example here. There's also been lot's of discussion on the subject. I think if you do a search for vit, you'll be able to find additional information and examples.

  • Hi. I want to build a GUI based on several windows appearing following a certain sequence. How can i create different windows in the same VI? Also, i want the front panel of a subvi to appear when i run, how can i enable this.Thanks

    Having several windows appear ...

    Hi,
    You can't create several windows for one VI. But you can use the "Tab Control" and change tab's in the program. Or you can use sub VI's and show ther front panels.
    To show the front panel of a sub VI you have to open the VI you want to show and select "File->VI Properties". In the VI Properties window select Category "Window Appearance" and click Customize...
    In the Customize Window Appearence window, here you can set a number of attributes for how the window will appear, select "Show front panel when called" and "Close afterwards if originally closed" click OK and OK and save the VI, done.
    Now the VI front panel will appear then you use it as a sub VI.
    /Thomas

  • When I call an external program from Labview, how can I embed the interface into the front panel?

    I'm running Labiew 6i for Linux. I'm using a system exec.vi to call an external program to do image manipulation (since there is no IMAQ for linux). How can I embed the user interface of the external program into the front panel of Labview?

    As far as I know, the only way to embed other GUIs in LabView is an ActiveX in a container.
    As long as you are using Linux, try to place (moving them on the desktop ) the two windows linked (like those 3 of WinAmp).

  • How do I center and/or maximize the front panel on every event?

    Hi,
    So basically I have a little issue with trying to maximize and then scale back a VI's front panel every time a user selects a different option from a ring control.
    So far i've been using the LVWINUTIL.LLB and the provided window size vi to set the size I want on ring selection change which works fine, but as far as centering the VI goes, the method I'm calling only works the first time. After it maximizes and I select a different option on my ring control which is linked to a case within a while loop it simply resizes to the size i set which is correct but when I got back to the ring case which is supposed to maximize the front panel again, it doesn't do it. Centralizing the FP also only works once.
    I'm  using FP.Run-Time Position.Centered to try and center the VI....only works once. I do understand that this might be the desired behavior since the name is run-time position meaning it'll only do this when the VI is first run, however I need this to happen more then once, how can i do this? Thanks...

    How did you center the FP?
    Their a method that should work time after time.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • How to/Is it possible to get the front panel's VI icon?

    Hi
    I want a sub-vi to get the front panel's VI icon image of other VI,
    example, the subVI can have the image return based on VI refnum, is
    there any function to do this?  I try to search the "Application
    Control ->  Property Node" and could not find any of it.
    Thank for any suggestion.

    This method also exists in 7.0
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How to see the full program on the front panel when it is running?

    Hi, my program is really big, and when I run it and obverserve the program on the front panel, I cannot drag the window to see the other parts. Also, I tried the method like hold control, then press + to zoom in or press - to zoom out. However, labview seems doesnt have this function. Does anyone know how I can see the full program then it is running, maybe zoom out or drag the windows? thanks! 
    Attachments:
    not running.png ‏85 KB
    running.png ‏72 KB

    You should use a Tab control.  Group your front panel objects together and put the grouped items in tabs.  Then you can select the Tab you want to display while the program is running.
    It is never a good idea to make your screen too big to fit on one display.  This goes for the block diagram also.  If you have to scroll to see it all, use more subvi's.  Make it modular.  A state machine is a good way to put a lot of code on one display screen.
    - tbob
    Inventor of the WORM Global

  • Analog output to the DAQ that changes when controls on the front panel change

    I'm using the PCI-6024E, and trying to output an analog waveform that can change when one of the two controls on the front panel change. It outputs fine setting it to continuous output and using a simple while loop around the "Is Task Done" VI, but if I put the "Write" VI in the while loop, it doesn't output steadily. I then tried to use an event structure, so that I'd only have to write every time something on the front panel changes, but for some reason it was writing finite samples, even though I set the Timing VI to continuous. I looked around the NI site, and found an article about this with an example. I tried to change it around to use my waveform, but whenever I run it, I get a memory underflow error. Has anyone needed to do this before? Thanks in advance.
    -- Josh Matloff

    Hi Josh-
    It looks like you forgot to post the code still, but I'll take a stab at the problem anyway. It sounds like you're looking for a way to update a continuous waveform at runtime.
    You will need to stop the task in order to replace the write buffer information, but this will only be a small gap in operation. I have attached a modified LabVIEW shipping example that shows how to use value change events for any of the pertinent waveform parameters to either programmatically stop the task, replace the buffer, set timing and restart or to just pass the task information straight through. This will lead to continuous operation with no breaks at the output.
    Please let us know if this clears up your questions.
    Thanks-
    Tom W
    National Instruments
    Attachments:
    Cont Gen Voltage Wfm-Int Clk with Runtime Update.vi ‏134 KB

  • Looking for a way to programmatically set the visible portion of the front panel when a subVI opens

    I am looking for a way to programmatically set the visible portion of the front panel when a subVI opens.  Haven't found any posts that relate, but I'm not sure how to ask the right question.  To be clear, I want to write a helper VI to go through a list of subVIs to make sure the background images are all in the same place when their respective subVIs open.  I hate manually playing with scroll bars before I save each of the VIs...  I'm figuring I need to find the top/left location of the background image (know how to do this already) and then set a VI FP property to  these values or some offset, but I can't find the relevant property. FP:run-timeposition:custom looked promissing, but only affects the location of the window, not the area of the front panel the window is displaying.
    Solved!
    Go to Solution.

    Cool.  Getting closer.  The way I implemented your suggestion affects the subVI only if it is open.  I can use this to do what I'm after, perhaps putting the code into each subVI.  Maybe open all subs, run the helper, and save.    Seems like I'm missing the elegant version...
    My proof of concept code:

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • How to find VI's connected terminals when controls are hidden on the front panel?

    When working with a sub-VI which has terminals connected to hidden controls is there a straight-forward way to find the terminals on the block diagram?
    I click on the terminal and an outline appears on the front panel but when I try to click on that outline I can not unhide the control. 
    The only way I have discovered to find the terminal of the connected control is just check each terminal on the block diagram which looks like it might be connected.
    I'm using LV7.1 but also use 8.5.
    Thanks,
    Davey

    Ben wrote:
    smercurio_fc wrote:
    If I understood the premise of the question it sounds like you have controls/indicators wired to the VI connector pane, but for some reason these controls/indicators are hidden. If this is a VI you wrote slap yourself. If this is a VI someone else wrote, go slap them.
    One way that you can find the terminals on the block diagram by performing a search by text. The context help will show you the names of the controls/indicators. The only problem with this approach is that if the control/indicator has the caption visible rather than the label, then the context help will show the caption, not the label.
    Another method is to use scripting. Not sure if it's worth the effort for just one VI, though.
    Before we get all slap-happy I have to ask...
    If I have a sub-VI which is set for Print on completion and the controls in/out for the icon connector are NOT supposed to show up on the final report, isn't setting those objects as hidden a viable option?
    Ben
    Well, of course, Ben. My comment was not meant to be taken seriously... hence the smiley happy icon. To respond to your question in a more serious matter, though, there's always exceptions to rules. That's why they're rules - they're meant to be broken. Otherwise they wouldn't be rules. It's a strange state of the universe, isn't it? Although, one could probably just place the control behind another object. That sort of hides it, doesn't it?

  • Is there a way to place a button on the front panel that when clicked gives a pop up dialog box with more info in it?

    Hi Everyone,
     The simulations that I am creating are very simple themselves but are intended for use in a classroom setting to help students learn more about the theory being demonstrated.  I am hoping to be able to place a "Help" or "more info" button on the front panel so that if a student wants more info about the theory they can click on it and a pop up appears with background info on it.  It should also have a second button to close it and return to the main front panel again.  Can anyone lead me in the right direction?
    Thank you!
    Solved!
    Go to Solution.

    Use an event structure on the main vi that when the button is clicked, launches a "Help" sub vi. Inside the sub vi (with the properties set to load front panel when called of course), use another event structure to wait for the button of the subVI to be clicked so you can return to the main VI. Do you need help with using event structures?
    Charles
    Charles Chickering
    Architecture is art with rules.
    ...and the rules are more like guidelines

  • How to show the front panel when launching VI with Call by reference node??

    Hello!
    I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
    Se example.
    Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
    Thank you!
    Attachments:
    test.vi ‏18 KB

    In VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
    You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I have a powermac dual g5 2.0 that wont start up.When I plug it in I get the click from the power supply. When I hit the start button, the white led on the front panel lights up and stays lit. No whir sound from the hard drive or the fan. No lights on the

    I have a powermac dual g5 2.0 that wont start up.When I plug it in I get the click from the power supply. When I hit the start button, the white led on the front panel lights up and stays lit. No whir sound from the hard drive or the fan. No lights on the motherboard

    The click usually indicates a big problem, but...
    How to reset the SMU/PMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005) ...
    http://support.apple.com/kb/HT1436
    Earlier G3, G4, G5 models...
    http://support.apple.com/kb/HT1939
    Might be time to replace the PRAM Battery, 4 years is close to their lifespan, far less if ever without AC power, & can cause strange startup problems...
    See which one your G5 has...
    http://eshop.macsales.com/item/Newer%20Technology/CR2032/ 
    http://eshop.macsales.com/item/Newer%20Technology/BAA36VPRAM/ 

  • VM-605 auto redials when pressing the front panel.

    I just got this VM-605 for my Bold 9700 and when I follow the instructions to Press and hold the front panel until you heaer a beep... to make a call, the VM-605 automatically redials the last called number rather than listening for my command.
    Anyone come across this? 
    From reading this forum, this product seems like a real hit and miss.

    Hey curtistimmer,
    You may find some useful information in the following post.
    http://supportforums.blackberry.com/t5/BlackBerry-Accessories/VM-605-FAILURES/m-p/434678
    Have a look at the post by dannytobin
    <snip>
    07-07-2010 02:05 PM
    I have just encountered a problem with my vm-605 whilst toying around with it. The thing froze up and all the lights come on.
    If you look at the back of the device just to the left above the label is a hole. Gently poke with a paperclip until you here a faint click. 
    This has fixed my problem!!
    <snip>
    Let us know if this works for you.
    -SR
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for

  • How can I save downloaded iOS system updates when using multiple iPhones

    I have multiple iPhones, and every time I want to update them, I have to wait forever for these downloads to transfer. The update downloads, but is not saved so that I can use it for another iPhone, requiring me to download the same file yet again, a

  • Syncing to a Windows and a Mac computer

    I posted this on the Connecting to Mac forum and no one answered so I'm going to try to see if someone might answer it over here. I am debating buying an iPod Touch and the question I have is - I have a MacBook Pro laptop that I use at home and I use

  • Push out Adober Reader changes to Macs

    I have a network with both Windows and Mac clients that use Adobe Reader.  I already know how to use Active Directory Group Policy to push the necessary registry changes so that my Windows based clients can have their Adobe Reader settings updated. H

  • IPHOTO launches when i switch computer on

    i Photo launches everytime I switch computer on. Please can someone advise me how to stop this happening.

  • Incorrect currency for amount - Error in EXPRT function

    Hi Gurus, I am getting this error while running AU payroll in the last step which is EXPRT function. Line 260 of Schema -> EXPRT      RQ             Export payroll acc. (DB: PCL2 / CL: RQ) Error -> Incorrect currency for amount A wage type does not h