What is the best way to keep the block diagram / cleaning of façade?

Hello

I'm relatively new to Labview so I'm not able to say if I'm overloading my programs or make my too crowded block diagram. I was wondering if there was some ways to tell if I can simplify my programming just by looking (perhaps only experience contributes to these things)?

I enclose my VI here. Currently, she is able to monitor the voltage and current of two engines. On the screen, you can see an indicator with the voltage and current values and there are cards that can display signals of different engines with a menu drop-down.

The façade is pretty clean, in my opinion of novice, but the block schema seems messy to me, just at the first glance. I foresee a problem occurring in the future however. In the future, I will have the VI to monitor 50 engines globally. All of the programming will be the same as the one I have now, but it will have 50 indicators and unfortunately 50 times just about everything. I would like to avoid this, but I don't know how I did.

I use a USB-6009. I use its four differential inputs to monitor the voltage and current of the two engines. In the future, I will get more units DAQ (25 in total because 2 motors can be monitored for each data acquisition). The new Renault will help will help with more resource space, but I think things complicate with the added option of 24 more Assistants of data acquisition (as used in my code).

Thanks for any help you might be able to provide!

Usually, it is above all the experience that will teach you the best methods for making your code to do pretty. I don't know anyone who is proud of his first application of claws. There are some resources out there to help with best practices, as that group on ni.com, but you will learn most of your own development.

Your façade is superb. FPs in general really are to you. You can do it as ugly or pretty as you want. When you have a few controls in duplicate and the Group of indicators, you should use clusters and berries to simplify. You can use a bit of cleanup in this regard, but not much. In addition, I personally hate read red text unless it is a warning any.

Your block diagram could use a little cleaning in a sense of modularity. You have a lot of repeated code, which you might consolidate in to a Subvi, which is used in multiple locations, or in a loop For. A general rule is to keep your block diagram within a single monitor. You should not scroll. Your application is quite simple, so it is difficult to BUMBLE

Here are a few details on your block diagram:

  • Click with the right button on your devices on the block diagram and uncheck the "display as icon". You are welcome.
  • Operations on each waveform "(x*2-4)" / 16 in double ": create a Subvi and/or run the waveforms through a loop."
  • You do a lot of 2-element arrays and then indexing. Just replace the ones that have a Select node based on digital.
  • All your code runs every time, including the knots of your property at the bottom, which is not necessary. As you learn LabVIEW architectures, you will learn how to get around this with the initialization and the output of code, but for now, you should put a case around those structure for only when the engine numbers change.
  • I don't know how you're timing your main loop, but you should put a delay in there because you don't need the DAQmx node shoot as fast as your CPU will allow.

There are videos of intro free that you can watch to learn what OR think in terms of coding and teach you some of the basic features and such. Here's a three-hour course, and here's a six-hour course.

Tags: NI Software

Similar Questions

  • Why the block diagram is disabled?

    What do I do now?  Please, look at the attached picture.  A VI that I use as a Subvi in various different programs suddenly started looking like I had used the application builder to create an exe out of it (but I don't have!).  The only options are Start and run continuously, and the block diagram is disabled.  What I did to get into this mess?  How to cancel everything that I did, so I can edit the schema-block again?  For any help or suggestion would be greatly appreciated.

    Thank you!

    You have somehow managed to record without a block.

    Go back to the last working back up and start from there.  You have backups, right?

    Lynn

  • Impossible to select and place the Instrument Driver VI icons on the block diagram

    I am trying to automate some of the RF measurements using a Rohde and Schwarz Spectrum Analyzer. I downloaded the Rohde and Schwarz spectrum analyzer pilot named 'rsspecan' version 2.6.1 for Labview on Rohde and Schwarz site to use in my version of the software labview 7.1.

    I copied the files in the appropriate folders in the Labview software on the C drive files. I am able to access those files through the functions---> Instrument I / O---> range of Driver of instruments in the Labview diagram, but when I select the VI icon that I want to put, I am unable to place it on the block diagram. Instead of hovering under the cursor by clicking on the VI icon, by clicking on the icon of the VI has no answer whatsoever.

    Any help would be greatly appreciated.

    Thank you

    Thank you very much for the help.

    So, is there a way to get the above mentioned pilot online Spectrum Analyzer, which will be also compatible with LabVIEW 7.1, so that I don't have to go through the conversion of version Board?

    Thanks again,

    Vivek

  • Third-party tool to draw the rectangle on the block diagram

    I know he was once a third party tool that allowed me to draw a rectangle of Nice double border on the block diagram.  Yes, it's the not the front panel block diagram.  It was very useful to make annotations and designating functional groups.  Does anyone know what this could be?  I installed Package VI Manager and went through everything I can think of without finding her.

    Unfortunately, the documentation for those modules potentially very useful is poor.  The 'Get info' is terse point of unnecessary and by clicking on "Product Home Page" rarely gets you more than a logo, not informative.  Surely there should be more details somewhere.

    I don't know what you're referring to the tool. What is this logo? Maybe someone can recognize.

    What is the problem with the flat frame?

  • How to set a menu of VI function to generate a copy of it self when it is move and dropped on the block diagram

    Is any way to put a VI that I placed on a palette in the menu functions to create a copy of it self when I place it on the block diagram?

    My example is as follows. I create a palette for a messaging configuration. The 'send message', 'message' and so forth will work normally with just called when necessary. But 'Create queues messge' must be specific for each instance, because I'm going to create a different number of queues each time I use it. (See system messages in queue OR for the "Continous Measument and Logging" model).

    So every time I drag and drop that VI (Create message Queues) in the palette, I want that it ask me where I want to save the VI.

    Is this possible?

    See you soon

    Henrik

    There is always the file-> new... that opens a new window.  You can have your models in this window by putting them somewhere (I can't remember where at the moment).

  • Outline of the block diagram flashing red

    Hello. I don't have access to the Vi in question at the moment so I'll make it as General as possible. My Vi worked properly for a week or two, but today it started to flash red around the edge of the block diagram. Once the Vi makes the block diagram whole black for a while, followed by the red square around him. What is this red box? They are still able to run the Vi, it's why I can't stop their however, it is not a display of alarm or anything like that. I tried to watch as they run, but am getting no where fast. I just want to know what means the flashing red box does not pinpoint the problem. Thank you

    This means that your chart has been set to a big "breakpoint." Go to View > breakpoint Manager and delete the offending breakpoint.

    If you hold down the CTRL key while running a VI, LabVIEW adds a breakpoint at what you click on, so just be careful with that. I accidentally added breakpoints to my code more than once.

  • How can I change the scrolling on the block diagram?

    I'm trying to find a way to scroll from left to right with the mouse when you program in the block diagram.  I found that if I hold down the Ctrl key and scroll with the wheel of the mouse while on a case statement, it will travel cases.  With no pressure on the buttons from scrolling with the mouse wheel will allow me to scroll vertically, but how to scroll horizontally?  Thanks for the help.

    If there is then I do not know it.  I have a mouse with a scroll wheel that clicks on the left and right, but it does not work in LabVIEW.

    I just found out that if you hold down the ctrl and shift keys and click and drag on an empty spot you can drag the diagram block autour.  Which is somewhat scrollin

  • How to find the position of the VI icon currently run on the block diagram of the appellant

    Dear forum,

    I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.

    My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )

    My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...

    It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...

    Kind regards

    cpschnuffel


  • place an image on the block diagram

    Is there an easy way to place an image on the block diagram?

    To clarify, I would like one simple to paste a bmp or jpeg or png or other means on my block diagram to document the block diagram for future programmers.

    The way I currently accompish this is to create a constant of the photo on the diagram and running a vi separate to load an image in a window of the image, then using copy / paste to get the image in the photo correspondent in my block diagram.

    There's a way more simple, right?


  • How can I activate on labels in the block diagram, but not on the front panel?

    This question may have been asked before, but searching the Forum did not.

    In LabVIEW 2010, I have 16 indicators of chain on the front panel. I can't have the label for each Visible on the front panel, so I turned it off. But in the block diagram, I need distinguqish one of the other, so I need to make the label (name) visible.

    In the block diagram, if I select indicators Sting all together and go to properties and make the label visible, it makes visible labels on the front but not visible in the block diagram. What good is that?

    How the help of labels (name) of the indicators String visible in the block diagram, but not visible on the front?

    dbaechtel wrote:

    This question may have been asked before, but searching the Forum did not.

    Don't remember already asked this question and get help in this thread?

    Have you tried the things I said in that thread?  How did they not work?

    Right-click on the terminal of BD and make visible > labels.

    It probably will be the FP control show its label as well.  Then go to the FP control, right-click and go to Visible > labels and uncheck the box.

    The terminal of the comics will have a label, and control of the FP will not.

  • I don't see on the block diagram, click Express - Signal analysis, statistics.

    On the block diagram, I clicked EXPRESS - ANALYSIS of the SIGNAL, then all I get are FAKE and HISTOGRAM. What happened to the rest as SPECTRAL, TONE, STATISTICS, etc. ?

    Thanks ab.

    found my answer here.

    https://www.YouTube.com/watch?v=ujelTtObCm4

  • LabVIEW: Null window... stopped to stranger on the block diagram

    Hello

    I have a pretty important program that has been written in Labview 6.0. Recently, we have upgraded to Labview 9.0 and this program has been exported to an executable file with the new version.

    When you run the executable file, I sometimes have the following error as seemingly random places. I was not able to crash when not to use the executable file. LabVIEW: Window zero. The first level VI ".vi" stopped to stranger on the block diagram of ".vi".

    I apologize for having empty on the names of vi, but I can't give names of vi, say what is the software or code. I can tell it uses NI USB-6212 IO cards, interfaces with the instruments of Rhode and Swartz and uses a lot of file i/o.

    I was hoping someone could give me a hint on how to debug such a mistake. I noticed that when this error occurs, the memory usage almost doubles.

    Thank you

    James


  • Deleting the definition of Type casuses control a lot of misreferences and program in the block diagram errors

    In LabVIEW 2010, I have a Def Type control i.e. a Cluster with several other controls within the Cluster. Apparently, the references to the controls in the block diagram are based on the order that the controls have been added to the Type definition command. The side effect of this is that if a control is removed from the command of Type definition, many of the done Variable reference in the block diagram or now either broken, or worse still, refer to wrong control in the Type definition. These problems are quite difficult to find and fix.

    Comment: If you create a control of Type definition and make a Cluster. Now add any controls to the Cluster in an order, let's say A, B, C, D. Their types does not matter. Now use the Type definition in one or more controls on the front panel. In the block mark references to controls inside the Type Def would control on FP. Now return to the Type definition and remove the command B of the definition of Type. Now, lots of errors appear. Broken links. But worse still, you see old references to B that now refer to C and old references to C are now referring to the old references to D and D are removed altogether, etc..  This side effect is much more errors, broken links and misreferences than expected otherwise.

    How add and remove controls anywhere in a Cluster in a Type definition, at will, without creating a whole bunch of errors in program, broken links and misreferences for controls in the Type definition that have not changed?


  • Remote debugging active but no access to the block diagram

    I have an executable running on a target that I want to debug. I enabled debugging in the build properties, I enabled debugging in vi properties. I can connect from the development computer to the exe.

    But the option to switch to the block diagram is simply not there (see photo). I know I am a first not who has this problem but I couldn't find an answer.

    Without being able to see the block diagram, a 'debug function' is totally useless!

    If anyone has an idea it would be greatly appreciated. Thank you

    Hi peter,.

    It is a known problem and a request for Corrective Action (130070 CARS) was created and reported to the Department R & D. looking at through the notes in the CAR, he must fix it in LabVIEW 2012.

    Workaround solution:

    Debugging applications with menus on bar

  • 2 orders of façade with a control on the block diagram

    Hi all

    Is it possible to use 2 controls on the Panel before which order the same control on the block diagram?

    In order to have a sort of parallel control.

    Thank you in advance.

    Here is a recent example.

Maybe you are looking for