Graph stalls when front panel is adjusted

So I am trying to debug a code that someone previously wrote. I am a bit familiar with the code but as I mentioned did not write it myself. The deal is that when Im in running the front panel and the graph is graphing time vs any other parameter, if you press any button on the front panel or if a sub-vi gets called the graph will stall and one has to manually reset the graph. I am not too sure why this is going on. Attached are a few screen shots of where this section of the code lives. There is a stacked sequence with two subdiagrams and it is also being called in the event structure inside one of those subdiagrams. I could also upload the whole code if needed.
Thanks for the help guys
Attachments:
Graphing front panel.doc ‏456 KB

OK, I was able to get to the code by selective unzipping.
As a first step, you should eliminate all these value property nodes and replace them with plain local variables instead. The code os causing excessive thread switching and spends way too much time in the UI thread.
Overall, there is way too much code. For example you have in the "graphed parameter" event the same property node in every single case of the inner case structures. These property nodes belong after the case structure, only once instance each needed!
(Sorry, I have to do some other things now. Will look at it a little more later.....)
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Refresh graph properties (colors...) when front panel not opened

    I have a problem with setting the plot properties of a multiple xy-graph.
    I first pass the data (n plots, number variable) to the graph control, THEN I set the according properties like color, line style etc. by a property node beginning with "active plot" followed by the properties. So when I set them, the xy-graph is already initialized with n plots.
    Afterwards, I take the graph picture and save it to a bitmap-file.
    That works fine as long as the front panel is opened or the number of plots and their attributes stays constant. But if the panel is closed (which is the default of that VI) and the number of plots changes, I get only as many plots plotted correctly as there are shown in the plot legend
    - regardless of if the legend is shown or not.
    I don't like the idea of having a huge legend on the panel which still might be too small sometimes or having the legend scaled by it's height-property in pixels.
    What I need is something like a .refresh-method that forces the graph to update even if the front panel is closed. Any idea how to do this?
    Cheers & thanks, Daniel

    The issue you are seeing is because LabVIEW doesn't update the controls/indicator of a front panel that is not open. This is done to save computer resources. The simple way around this is to use VI server to open the front panel for it to update and then close it again. You can use the VI property FP.position to move the window offscreen where it can't be seen and perform the open/close. This will get you the results you are after while still allowing the illusion of a closed front panel.

  • VI locks up when front panel is displayed

    Hi
    Firstly, I apologise if I’ve sent this to the wrong forum – I’m not sure if this is a TestStand or Labview related issue or possibly both.
    I have a test procedure developed using Labview 7.1 and TestStand 3.1. It’s run from TestStand’s Operator Interface VI (full version), and executes about a dozen TestStand sequences in turn which call lower level VIs that perform the actual tests.
    The code was written on a Dell GX240 Pentium 4 PC, with Windows 2000 + SP4 installed and runs without a hitch. However, I also have a second PC, same model & spec, but running Windows XP + SP3 instead of Win2K. I’ve also installed the same versions of Labview & TestStand on it, and copied across all my TestStand sequences & VIs into the same working directory. However, when I run the program on this machine, again using the same Operator Interface, it executes until about half way through and then hangs up.
    In several tests, I call up a graphical user interface VI which displays a picture and prompts the operator to click on either a ‘Pass’ or ‘Fail’ button – the actual text being passed as a parameter. When the lock up occurs, the front panel is displayed, but there’s no picture and the buttons are blank. Up to that point, previous calls to the VI have executed ok.
    If I modify the step that causes the problem, to call another VI - for example, a sub VI that doesn’t display a front panel - the new VI executes and the program continues to run. If I then change this VI’s configuration so that it’s front panel is displayed at run time, the problem re-occurs - the front panel outline appears but everything then freezes.
    Attempting to close the front panel window, results in either error code –18001 and the message ‘an error occurred accessing the Labview ActiveX automation server’ being displayed or the Windows prompt to close Labview as it’s not responding. Usually, clicking ‘End Program’ causes the PC to crash out & re-boot.
    Skipping TestStand sequences, whether they execute the GUI VI or not, just moves the point where the lock up occurs further down the list of tests, to the next step where the GUI VI is called. It’s almost as if something isn’t being closed properly when the program runs, and eventually reaches some limit, but why this doesn’t appear to effect the Windows 2000 PC, I’m at a loss. 
    Very much appreciate anyone’s thoughts.
    Thanks
    Bruce

    Hi Bruce,
    I found a KnowledgeBase article relating to the error you are seeing.
    It describes error 18001 "Error occurred accessing LV activeX automation server". 
    Let me know if this helps you out.
    This problem may also be due to how you have configured the Distributed COM (DCOM) settings on your machine. You will need to ensure that your DCOM settings allows the LabVIEW ActiveX Server to be launched and accessed through ActiveX automation. Even Administrator accounts can be denied launch and access permissions. To modify these permissions follow the steps below for Windows XP:
    Login to Windows using a UserID that has administrator privileges.
    Select Start»Run and enter dcomcnfg.exe. This displays the Component Services dialog window.
    Navigate to Component Services»Computers»My Computer and select DCOM Config. Ignore the warnings that may appear.
    Right-click on LabVIEW Application, TestStandLVRTS or the name of your LabVIEW ActiveX Server and select Properties to open the LabVIEW Application Properties dialog window. Select the Security tab. 
    You must give permission to the appropriate users so that they can access the LabVIEW server. You should give everyone access permissions and appropriate users launch permission. Only users who have launch permission will be able to access the server. Add permissions by selecting Customize and Edit for each of the three permission settings and manually adding permissions for each user.
    I doubled checked that LabVIEW 7.1 and 3.1 are compatible with windows XP and they are.  Just to make sure, it is 32bit or 64bit you are using?
    Let me know how you get on.
    Kind Regards
    Lewis Gear CLD
    Check out my LabVIEW UAV

  • How to copy the XY graph on labview front panel and insert into Excel using labview

    Hi all,
    The XY graph display on LV front panel after test. How can I copy this XY graph and insert into excel file?
    Thank you very much for your help.
    Khanh

    KPRO wrote:
    Hi,
    I refer to insert it into excel since report is in excel format, but if it's too hard to do so I can save it in another format.
    Either way, will labview support this? Anyway, thank you very much for your quick reply.
    Khanh
    You are already using the Report Generation Toolkit?  There is the "Append Control Image to Report.vi" that would make this easy.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Indesign CC slows/stalls when Page panel drawing thumbnails

    Upgraded to InDesign CC on a 2012 MacPro workstation with 40GB of RAM running Mountain Lion. When I have a multipage file open, InDesign slows and essentially stalls while it slowly redraws Page panel thumbnails. I can turn the thumbnails off, once it finally finishes drawing them, but they're often very useful for navigation in a long document (only about 40 pages). I've tried restarting, changing the thumbnail sizes, etc. with no real effect on the stalling.

    We would need some additional information and if possible the file in which you are facing this issue.
    OS, machine configuration. You can email the file @ [email protected]
    Thanks in advance,
    Rohit

  • Firewire drives won't mount when front panel is in use

    Does anyone else have this problem? My firewire drives (some, not all) will not mount when the firewire cable from my deck is plugged into the fron panel on my G5. Weird. When I unplug it, they instantly mount. I'm running 10.3.9, and I'm wondering if this is something that has been fixed in Tiger? Any other solutions?

    stay away from belkin cards though, nothing but reported problems.
    www.macsales.com
    www.macgurus.com
    both great places for products like these. i put a siig card in my g4 from macsales and i've never had a firewire related problem of any kind.
    also, i see you use a g4, the apple discussion site for your computer is a great place to have expansion and other questions answered. be sure and do a search before posting.

  • Front panel graph with selectable points

    I don't if this can be done, but I was wondering if I can have a graph in the front panel that would graph only the points I select. This is the situation: I'm taking measurements in the program and I want to make a graph with them. The thing is that a don't want a graph with lots of points, I just want to select a point and graph it. When I want to, I select to take a point and graph it, then I'll change the independent variable and then select again one point and graph it, showing a curve of what I have, and so on. I know that for this maybe I'll need to store those single points with an array or something. If anyone can help me, please do so. Thank you.

    The data you acquire is received in array form and based on the sample size, you should be able to determine the number of points in the array.  Then simply decide which points you want and put them into a second array and plot that array.

  • Trouble getting a subvi to update a graph in real-time on the front panel

    Hi All,
    First post here, so play nice =). I am trying to update a graph on the front panel from within one of my subvis, however it does not update it in real-time. It will only show the completed graph after the subvi finishes running. I have tried to use references/property nodes and I have also tried using my chart as a global variable, but neither of those methods have worked (I am probably doing it wrong). Can anyone provide a detailed walk-through of how to do this using either one of those methods? Or perhaps even a different method?

    ModusPwnens wrote:
    This is how you do it, right?:
    Try this for a quick demo of the reference method:
    Create a VI as shown in the image.
    Select only the while loop and do "edit...create subVI" (as shown). (you will get a subVI that contains the needed connectors and is alread wired to the reference)
    Run the main VI, and the chart will update every 200ms.
    Note that this is only a draft and many things are missing. (For example, the subVI cannot be stopped at the moment. Also, you want a graph, and not a chart.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    updateViaSub.PNG ‏32 KB

  • Waveform graph displayed vertically on front panel

    Hello everybody
    I would like to know if it is possible to display waveform graphs vertically on front panel and if enventually could someone tell me how to do it.
    Thanks vey much for help.

    You'll have to use an XY graph, and do some programming. You could use the attached vi that simulates a vertical chart as source of inspiration.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    YChart.vi ‏34 KB

  • Print front panel

    I have been going through messages for a while but just can't seem to find exactly what I'm looking for. I need to print a waveform chart that has two plots that update at about 10Hz. Simple enough, right? Problem is that the report vi's have no way I can see to easily enlarge the image. I tried putting a larger chart in a sub vi that prints after executing but the chart only get part of the data when I run it. Then I tried the invoke get image method but can't find an indicator for the image data. Is there a way to print an enlarged waveform chart image? It would be even better if I can just print a front panel of a subvi with the same data on the waveform chart that appears on my top-level VI.
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    What I have done in these situations is to have a graphs that is sized to printout the size that I want. I then update the graph from the program data, grab an image of the graph using the Get Image method, and save the image as a jpeg file. I can then either printhout this file or include it in a standard report.
    OR you can use Draw Flattened Pixmap.vi to turn it into a form that will go into a picture indicator
    OR you can create a VI with the graph on its front panel that is set to print itself when it finishes executing - or which you print programatically
    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

  • How to make some part of front panel transparent?

    There is a property node to make a front panel completly transparent...but is there anything that only makes some part of the vi transparent like if I define a decorative block in the vi which takes 1 quardant of front panel and I have a control to make it transparent during runtime...
    And moreover the frontpanel transparent property makes the whole window transparent, is there any way to retain toolbar of window like stop, run button when front panel is transparent??

    Hi,
    Have a look at this VI (attached). To make it work you need to create an image mask as a .png (open paint, colour in the areas that you want to become invisible and save it as a .png). The VI diffentiates between white areas and black areas of the mask you create, the black areas will become transparent and the white areas will remain the same- this will be implemented on your front panel. I've included an example of a possible paint image in "mask2.png".
    You may also want to play around with the resolution of the mask created in paint, this will effect how the program works (I advise you use a lower resolution than your display- I used 500x300)
    NT: If the front panel controls disappear, go into the block diagram window and attach a false constant instead of a control. Let me know if this works
    Cheers, Tom
    Attachments:
    custom window.zip ‏107 KB

  • Keep front panel icons same size on different monitors

    I was wondreing if there was anyway where you can make your front panel automatically adjust itself to fit the full size screen of other computers with different resolutions than the one that the front panel was developed on.
    thank you

    Try this thread.
    http://forums.ni.com/ni/board/message?board.id=170​&thread.id=291198&view=by_date_ascending&page=1
    I have concluded nothing works and if any of my programs will be used on different monitors I will develope the program in the lowest resolution needed.

  • Enabling / Disabling graphs and opening a new Front Panel Window

    Hi,
      I have a simple application of showing 12 analog signals on 12 different graphs placed vertically in aligned position. I have to develop a user interface so that if user wants to display signal no. 1, 4 and 6 out of total 12 signals, he should make selection using check boxes and click a re-draw button. It should result in opening a separate window with these three signals displayed as separate graphs aligned vertically and adjusted to fit window size. Similarly later user can change his selection of displaying signals (from same acquired data) say 1, 3, 5, 6, 8, 9, 11 & 12 and click Redraw button. It should result in opening a new Window showing all these signals as separate graphs which are aligned vertically and resized to fit the window. Now I have two major issues in this context.
    1) I have been searching LabView help to locate a way to open a new window for this purpose but I failed to locate any way for it. As per my limited knowledge, it seems that we cannot have multiple "Front Panel" windows in Labview.
    2) For the graph I could not locate a control to enable/disable a graph so that it appears or vanishes. Is there any way to achieve it?
    I shall appreciate your valuable advice. I shifted from "Lab View Signal Express"  to "Lab View" in order to achieve this user interface design but I am still not successful in finding a good solution for this application.
    Regards
    Mnuet

    Hi Mnuet,
    You can do what was said above. Here is a KB on dynamically loading VIs. It looks something like this.
    Dynamically loaded VIs are loaded at the point in code while running, as opposed to being loaded when the parent VI is loaded into memory like normal subVIs. You can make a reference to them and then control the front panel appearance, their run status, etc with property nodes and invoke nodes.
    Jeff | LabVIEW Software Engineer

  • How can I make sure the text size on front panel will be adjusted by itself from PC to PC?

    In my VIs under VI Properties -- Window Size, I checked the two boxes:
     --Maintain proportions of window for different monitor resolutions
    --Scale all objects on front panel as the window resizes
    It seems that it worked for everything on front panel except the pure text wording that I put there for instruction purpose.  The size of those text stuff didn't get changed proportionally after my application was built and run on different machines so some of them got cut off and looked messy.
    Does anyone know how to fix this problem?
    Thanks very much!

    Hi Andrew,
    Thank you for looking at my problem!
    Both my development system and test system are Window XP. The font size are all set to Normal. What other details do you need to know?
    The text on front panel shows well on my development machine. But when the .exe runs on my test machine, the text size was not adjusted by itself so the text body got cut off.
    I found a way to "fix" this problem: I had to drag the text box down and right so there is enough magin between the text body and the box on the right and at the bottom. I had to try it a few times until it finally shows well on my test machine. However, with those magins, it doesn't look nice on my development machine anymore. Also, I only tried on one test machine, if it looks good on one test machine, will it look good on all the other machines? Eventually my app is going to run on Window 7. I'll have to test that out and find out if it's still going to be a problem. Anyway, I don't feel this is the right way to do it. I hope someone knows what I'm talking about and have a soluction to it.
    Thanks very much!

  • How to data log graphs using front panel data logging?

    Hello I have a VI that collects data from DAQmx thermocouple readings and graphs the temperature vs time using a while loop to collect data and graph. I have 9 control operators that define the correction factor of the thermocouples.
    I want to create a datalogging using the option under Operations>Data Logging
    When I retrieve the data the only information that is present are the control operators correction factors that I defined. The graphed data that was created is not retrieved.
    Is there a solution to show the graphed data plots that were created on the front panel? They remain unchanged from the last run of the VI or blank if I open the VI without having ran the program.
    Thank you.

    This is expected for the Data Logging in LabVIEW. If you want to record the signla data, use the Write to Measurement File Express VI.  Here's a link with a walk-through:
    http://www.ni.com/academic/students/learn-daq/data-logging/
    The Data Logging from the Operate Menu is for recording front panel control(s), as you have observed.
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

Maybe you are looking for

  • How can I print a html Using javax.print

    Hi friends, I am in big trouble . I use following code to print a html file using javax.print api. import java.io.*; import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.*; import javax.print.event.*; public cla

  • Can u charger your nano with a usb port thru the headphone port?

    I am wondering if you can charge your Nano with a usb headphone cable like one that comes with a Ipod shuffle?

  • Is Adobe Media Encoder CS4 always installed on drive c:?

    Since my OS drive C: is fairly full, I installed CS4 Production Suite on drive D:. It's all there, except for Adobe Media Encoder, which is in C:\Program files (x86)\Adobe. Is this behavior unique to Vista x64 or just my PC? It hasn't caused any prob

  • EJB - JAR or EAR file reloading - how to get it to work consistently.

    We are using wl 6.0 sp2 rp2 - with 2 WL instances on the same box. We have always seemed to have had this headache with WL - getting EJB's to reload consistently. Does anyone have a sequence of steps they follow to get good consistent reloading resul

  • Purchase order for special process - BOM

    Hello good moorning. When I make a request of type UB-request to transfer stock in ME21N transaction for a special material or material with BOM, instead of blowing it gives me the following error: Unable to determine shipping data for material XXXXX