Comments on the Code

Hi guys,.

I'm a 2 weeks of simple DAQ + forums 1 month free self-taught labview user and I'm working on a fairly large control application.

Before we continue, I think I have produced a fairly large part of one of the components of my application - it is responsible to control the engines.

I want to make sure it is sturdy and uses a good style.

Can someone out there can quickly point out some stylistic mistakes? Don't waste your time on this if you are busy - do it just for fun.

Notes:

--> References are from 1 file main VI that uses SET CTR.

--> I used a VI model because I want to call this function 4 times - for 4 different engines with a different axis (or address).

--> I am still quite confused on the events node - because I can't seem to find a way to get an event fires when an exchange value of reference. Signs of triggers on each entry - that is not my goal.

--> Also, I have yet to test queues, nor have I ever used before cue, labview help me come through it.

--> Is 1 VI which calls a few SUB Vi, some of them extremely simple, others who are a few deep layers. All screws SUB don't use references, events or something of the sort, they are the flow of data simple and loops to step through the code in a structured maner (creating data in a readable format, read, write, etc. etc.)

I am worried, I just have bad style or do some things that can cause fatal errors.

Thank you!

PS: I remember Altenbach give me a bunch of stuff earlier on my code - it really helped push me forward.


Tags: NI Software

Similar Questions

  • comment in the code mode function does not

    I have a document saved php and for some reason, I can't comment on a line or group of lines in the code section? Anyone else having the same problem?  What could be the reason of such a thing?  This is not the first time that this has happened.  I once had the same problem and had to stop dreamweaver and start it back and the functino comment was working.  Now I've been home for 2 hours trying to figure what's not switching on and stop and still does not work.

    Thank you.  After getting up this morning with my first cup of coffee, I opened my document and for some unexplained reason, I was now able to insert comments on the side of the code.  This problem has happened already about 2 weeks ago. It has come and gone on its own after restarting a few times.  I'll keep your link in a safe place and more closely if it never happen again. Thank you very much

  • multiply a MovieClip using the code

    Hello

    I've been tring different strategies to add an animated video Clip of a fly to the scene.

    I have a TimerEvent and an Enter_Stage event in the code. Both seem to do their part without conflicts.

    Part of the increase in size over time.

    I want one of them to increase the number of clips totalFly over a period of perhaps twenty seconds or less.

    Do I have to write a class that contains all variables using mathematics as a multiplier or I can do that directly in my code curent?

    I left comments on the code but can set in if that would be clear.

    Thanks for help.

    Stop();
    insertion: var = new Timer timer (5000);
    insert.addEventListener (TimerEvent.TIMER, newFly);
    Insert.Start ();

    var inc:int = 0;

    var container: Sprite = new Sprite();
    addChild (container);

    var totalFly:Fly = new Fly();
    totalFly.x is totalFly.y = 250;.
    totalFly.scaleX = 0.5;
    totalFly.scaleY = 0.5;

    var newOne:Timer = new Timer (3000);
    newOne.addEventListener (TimerEvent.TIMER, anotherFly);
    newOne.start ();
    function anotherFly(event:TimerEvent):void {}
    container.addChild (totalFly);
    totalFly.x += 20;
    totalFly.y += 20;
    }

    container.addEventListener (Event.ENTER_FRAME, oneMore);

    function oneMore(event:Event):void {}

    addChild (totalFly);

    totalFly.rotation += 20;

    }

    function newFly(event:TimerEvent):void {}
    totalFly.x += 50;
    totalFly.scaleX = 2;
    totalFly.scaleY = 2;

    }

    Here are some reports with randomizing the properties of each...

    totalFly.rotation = Math.random () * 360;
    totalFly.x = Math.random () * stage.stageWidth;
    totalFly.y = Math.random () * stage.stageHeight;
    totalFly.scaleX = totalFly.scaleY = Math.Random ();

    If you want more control of the randomness, for example you want to scale not less than 50%, then you make them as a constant and add the random part...

    for a little less max 1.0

    totalFly.scaleX = totalFly.scaleY is 0.5 + Math.random () * 0.5;.

  • Impact of writing more comments in the pl/sql code

    What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

    Hello

    2981581 wrote:

    What is the impact of writing more comments in the pl/sql code. If it has an impact on the compile time, it is fine but it has no effect on the runtime? even in nano seconds?

    Outside advice, comments have no effect on the runtime.

    They can have a big impact on maintenance time.

  • I want to replace the code between 2 comments on a lot of files that just may not know to do.

    There is code between 2 comments I want to replace. For example <!-#header-CODE > <!-#/ header->

    The problem is that there are some differences in the code in each file. Its a header I wanted to change a html Web site, I thought that the best way would be to use the feature replace
    But each file is slightly different in the code. If it's just does not. All of the code between these two points must be changed for the same block of code.
    I tried to use regular expressions, I can't understand.
    I tried you/w/w, but it won't work.

    Why is there not an easier option. As <!-#header-> * <!--> #/ header and replace everything between the help file should have at least give an example of the various possibilities.

    Try

    ((\s|.) *?)

    Make sure the "Use regular expression" checkbox is checked.

  • How can I change the color of the comments in the html code to be more readable?

    The comments in my code pages (html, css, etc.) are a light gray that is almost invisible.  How can I change this to a different color?

    Thank you

    Go in Edition > Preferences > coloring Code > change the color palette > HTML comment > display the color of text at the top to right field. > Click OK

  • HP Stream: Disable the Code 59010962

    I am at a loss with this Code to disable the HP flow. For normal BIOS, no problem. I would normally reboot USB or disk, but not with the flow. I have a Disable Code 59010962. If anyone can help with this?

    In addition, I noticed a lot of comments on this with Solutions solved. Fantastic. My question is "how to make a copy of the Codes reference so I can do the same thing?  The reason I ask this is that I have clean the computers to a local Pawn Shop. Normally, I would use a USB key or recovery for Windows 10 methods, but this confusing me.

    Thanks in advance for any help.

    Respectfully,.

    John

    Analyst.

    This can help for the future.

    http://dogber1.blogspot.com/2009/05/table-of-reverse-engineered-BIOS.html

    "HP ProBooks and EliteBook." It is for those who do not need to be shotgunned.

    Download these files.

    https://www.dropbox.com/sh/zu4kdgxm052l87d/AAAMi-kfX4AVH8oTCbsOM4X9a?DL=0

    Insert a clean USB flash drive.

    Then run USB Image tool.

    Choose the flash drive, and then click RESTORE.

    Remove the flash drive after the restore.

    Insert a locked in a portable flash drive and boot. "If the HARD drive is installed remove before start".

    At C:\OUTPUT, type CD...   "And then press ENTER.

    HPBR of type "and then press ENTER.

    First thing is to save your settings.

    Select 3 # re-program.

    Press "S" to save the system information.

    Type HPBR and press ENTER.

    Select 'of FIRST BROADCAST.

    Then select the model.

    After the restart to repeat, same as above but this time SELECT 'SECOND RUN.

    Some instructions here. "If you can't boot from USB there are instructions for making a bootable HARD drive."

    http://mazzifsoftware.blogspot.com/2014/01/HP-BIOS-d ebloquer-for - dos.html

    More details here.

    http://forums.mydigitallife.info/threads/49497-HP-Probook-Elitebook-BIOS-password-reset-utility

    It is for those who must be shotgunned.

    Download these files.

    https://www.dropbox.com/sh/zu4kdgxm052l87d/AAAMi-kfX4AVH8oTCbsOM4X9a?DL=0

    Insert a clean USB flash drive.

    Then run USB Image tool.

    Choose the flash drive, and then click RESTORE.

    Remove the flash drive after the restore.

    Insert a locked portable flash drive and boot. "" If the HARD drive is installed, remove before starting.

    At C:\OUTPUT, type CD...   "And then press ENTER.

    HPBR of type "and then press ENTER.

    First thing is to save your settings.

    Select 3 # re-program.

    Press "S" to save the system information.

    Type HPBR and press ENTER.

    Given that your model is not listed, select "SHOTGUN".

    After the reboot, repeat 'SHOTGUN' a second time.

    I would like to know the result, so I can update my list.

    Some instructions here. "If you can't boot from USB there are instructions for making a bootable HARD drive."

    http://mazzifsoftware.blogspot.com/2014/01/HP-BIOS-d ebloquer-for - dos.html

    Additional help here.

    http://forums.mydigitallife.info/threads/49497-HP-ProBook-EliteBook-BIOS-password-reset-utility?s=ad18a86dbbaf34999e22b1225a42a395

    REO

  • Signature of the .cod with custom key file files

    Brand new on-site development of BlackBerry (2 weeks in)-so please forgive me if this is in the wrong place.

    I am currently using the CodeSigningKey and the DatabaseFactory.encrypt for an application that I developed that will use a database.

    I'm a ControlledAccessException during an attempt of the DatabaseFactory.encrypt with the key that I provided. I think it's because I didn't sign my files with the file ___.key *.cod correctly.

    I use sqlitedemo as a guide files, and in the comments he mentioned that I need to create my own pair of public/private key using the administration of BlackBerry signing authority tool - I did. The question I have is when packing my request in the BlackBerry Java plug-in for Eclipse, sign tool is running and said that this particular key file is not saved with a server.

    I found documentation on signing here:

    http://docs.BlackBerry.com/en/developers/deliverables/1077/BlackBerry_Signing_Authority_Tool_1.0_-_p...

    And this guide mentions that I can use a tool of file signature to sign the *.cod file manually so that I don't have to worry about set up a server, as long as I know the private - key password what I do. Is it still possible to use such a tool? And if so - where could I find one for a Mac environment (I can run on Windows, if necessary (I did to generate the key file), but I prefer to keep everything on a single machine).

    If this is not the case - there - it an easy way to configure the server and a better guide illustrating how to put in place the signature tool so that the keys are registered with my server?

    Thank you very much for your help

    Hi Mark,

    Thanks for the reply!

    While it's an excellent resource it unfortunately not answered my question. Like all other documents that I linked earlier, this resource talks in Task 4, step 2 of:
    'Start the application file signatory in the administration of BlackBerry signature tool '.

    I had downloaded and installed the BlackBerry Signing Authority tool a few times (it installs really as "BlackBerry password based code signing), but never found dittos application sign. On a whim, I went into the folder, it was installed and just started running all *.exe that I could find. Finally, it is of the 'SigningAuthorityAdmin.exe' and 'SigningAuthority.exe '. The first will create the key, the second is the tool of "file signatory."

    Hope that will help everyone in the future that awaits the names is compatible...

    Edit: I have not found the Mac environment anywhere... so I assume that there is not.

  • Would like to see the code for a static page generated by Muse

    I'm very comfortable with HTML and CSS and some Javascript and PHP, but I'm curious to see what the code on a page built Muse looks like.

    Thank you very much.

    http://Muse.Adobe.com/ or sites "Site of the Day' linked from there.

    Note that the Muse allows you to insert HTML codes in the head or the body of a page and also supports third-party embedded via widget custom code. Validate sites of Muse. If find you one that doesn't, you are most likely looking at a custom code that has been added to that generated by the Muse. In most cases, you will see comments shouting the custom code or widget.

    If you are a developer, you are looking for something that will generate the code for you to move forward in a text editor, Muse is probably not the right tool for you. But if you are ready to embrace the change of paradigm of work leave within brackets Muse offer (for example MuCOW widgets), rather than take the exit code of Muse and pulling in a text editor, some of the amazing productivity gains and collaborations are possible. This article provides an overview of how a team to Al Jazeera has exploited the skills of journalists, designers and coders to create the site of Beyond the Beach using Muse Prize winner.

  • Comment after the statement commit.

    Hello world

    Please take a look at this.

    Commenting on the VALIDATION: example, the following statement commits the current transaction and associates a comment:

    COMMIT COMMENT 'In-doubt transaction Code 36, Call (415) 555-2637';
    

    Now where I see this comment? What is the data dictionary, which will have this detail?

    Kind regards

    BS2012.

    If you look in the paper for the statement COMMIT , you will see this.

    COMMENT clause

    Specify a comment to associate with the current transaction. The ' text ' is a literal quotation of up to 255 bytes that stores Oracle database in the data dictionary view DBA_2PC_PENDING with transaction if ID a distributed transaction is in doubt. This comment can help you diagnose the failure of a distributed transaction.

  • Adding an event does not add the JavaScript code to the code automatically window

    I'm learning to animate Adobe classroom in a book (among others).  The lesson says to add an event to the timeline.  I click the icon "open stock" ({}) to the beginning of the row on the timeline for the item that I want to add an action.  The edit window appears.  I click on "mouseover", and only a comment is added to the window instead of the Javascript code.  I have to enter the code manually.  Animate is no longer does this in the code window actions?

    Note that the second stage ("choose a target") is required to automatically add the code.

    You must select an object, and then click Enter.

  • FireFox automatically manages "this.print ()" regardless of the position in the code?

    FireFox seems to automatically print a PDF file if the line "this.print ()" appears anywhere in the code, even if it's in a function not called, and even if it is commented out. Example, if you create a document with only the following code:

    function UncalledFunction() {}

    /*

    If {(false)

    This.Print)

    }

    */

    }

    When you open it in FireFox, the print dialog box are displayed automatically, despite the fact that the function is not called anywhere, the code within the function is enclosed in a block, a false condition comment, and is also commented line.

    Is it possible to include the printing functionality in a script without having run automatically?

    It's very strange. What happens if you remove this line of code completely? I think that something else could be trigger feel.

    If this is not it, you could always do something like:

    var doc = this;

    sMethod var = "pr" + "int";

    If (typeof doc [sMethod] = 'function') {}

    doc [sMethod] ();

    }

    or something in that sense.

  • Adobe Muse and "frames" and "IFRAME" in the code

    Hello

    I wonder by a SEO specialist that I had to remove all of the code in 'frame' of my Muse sites because it's something that Google does not like. My question is: is - this really bad for google to have a web site with frames? I can't fix in Muse, if so how? If the images generated by Muse when exporting in html are OK to search the engine like Google, please give me some explanation in order to understand how it works and meet the SEO specialist.

    I asked myself, why Adobe would generate a bad code SEO? It's not logical, that I don't know can someone help me understand this.

    Here is an example: (single chassis), a few times I have "clip frames.

    " < div class="clearfix" id="page"> " " <! - column - >

    "< div class="position_content" id="page_position_content">" "

    " < div class="colelem clearfix" id="ppu2528"> " " <!--Group-->

    " < div class="grpelem" id="pu2528"> " " <! - registration - >

    "< div id="u2528"> <! - simple framework - > < / div > .

    " < div class="clearfix" id="pu2529-4"> " <!--Group-->

    " < div class="grpelem clearfix" id="u2529-4"> " <! - content - >

    < p > Project< /p >

    < / div >

    < / div >

    < / div >

    " < div class="browser_width grpelem" id="u113"> " " <!--Group-->

    "< div class="clearfix" id="u113_align_to_page">" "

    "< div class="grpelem" id="u2354"> <! - simple framework - > < / div > " "

    < / div >

    < / div >

    " < div class="clearfix grpelem PamphletWidget" id="pamphletu2305"> " " <!--Group-->

    " < div class="clearfix grpelem ThumbGroup" id="u2331"> " " <!--no box-->

    "< div class="popup_anchor">."

    "< div class="inch popup_element - rounded corners" id="u2333"> <! - simple framework - > < / div > " "

    Thank you

    Mélanie Benoit

    There is no real reference to HTML frames in the code snippet you provided. Those you see is just the HTML comments.

    Muse would use iFrames in cases like the insertion of a YouTube/Vimeo video (that's what Google/Vimeo provide for coating purposes) or animation of Board for example.

    As for the impact on SEO, take a look at these articles.

    https://support.Google.com/webmasters/answer/34445?hl=en

    http://webmasters.StackExchange.com/questions/54169/does-IFRAME-affect-SEO-of-its-parent-p age

    Also note that HTML Frame and iFrame are different http://stackoverflow.com/questions/1079128/whats-the-difference-between-iframe-and-frame> and that the latter is well supported in HTML5 - http://www.w3schools.com/tags/tag_iframe.asp.

    Thank you

    Vinayak

  • output hsl colors in the code?

    is it possible to output hsl colors in the code rather than RGB colors? I noticed that you can select colors STL, but no matter how many times I've selected hsl code always uses the RGB color values? any ideas?

    Hey, thanks for this note. In fact, we have this problem with most types of color of switching when will say RGB HEXADECIMAL. We have this in our backlog, and I made a point that we are sure to add the TSL values as well. Thanks for the comments!

  • Replace the code in the timeline of a symbol

    My question is:

    I built a symbol and name it videoholder. Inside the symbol, I draw a Rectangel and

    name: Rectangel.

    Iput the following code on the first image/MS:

    var video_path = sym.$("Rectangel");

    video_path.html ("< video width ="750"height ="421 "src ="example.mp4"type =" video/mp4 "controls =" orders"< / video > ');

    So I remove the symbol of the scene.

    Now, I have placed different images as symbols on the stage.

    When I click on these images, I get the videoholder_image on the stage via the library createChildSymbol.

    What I want is to put a code on each image_symbol which allows me to change the code

    inside the Rectangel videoholder:

    var video_path = sym.$("Rectangel");

    video_path.html (' < video width = "750" height = "421" src ="example_new.mp4" type = "video/mp4" controls = "orders" < / video > ');

    I appreciate all the help

    (1) your project is difficult to decipher with named Rectangle or TextCopy items. Give descriptive names, or you will get lost when you open your project in a few months

    It is more readable when the instance names for the name of the symbol. For example videoHolder_1 videoHolder instance (and if there is a second instance, you name videoHolder_2).

    (2) do not use a sym.stop () of trigger to Mrs. 0 Instead uncheck autoplay of the symbol property (can be the symbol of the scene).

    (3) in your symbol videoholder, you used a trigger at 0 m A good place for initialization is the event creationComplete of the symbol Manager.

    But for now this code must be placed in the comments, because it will be replaced by executing the chooseVideo function.

    (4) why you use Tweenmax? The first interest dashboard animate should easily tween in the timeline panel.

    (5) work-all > work01: looks like useless, a second work-all.

    (6) the first error. In your videoholder > 0 ms shutter: sym.$("Rectangel")

    But in the function chooseVideo: sym.$("Holder"); should be "Rectangel.

    (7) second mistake. you define the overall function, but nowhere it is called!

    *

    Yes, tabula rasa. A symbol of work nests two symbols w_01 and w_02, the keys of access to each of the two videos.

    Contains a symbol videoHolder

    -a title element, text that will receive the title;

    -a videoFrame, the rectangle element that will contain the tag

    -a symbol of back_btn.

    The scene has its property autoplay set to false. By clicking on one of the buttons plays on the video of the label where videoHolder_1 slides up (and works has its display property set to none). A trigger of sym.stop () in the final position.

    document.compositionready event handler:

    sym.chooseVideo = function (numChoice)

    {

    radical var = "";

    Var title = "";

    Switch (numChoice)

    {

    case 1:

    radical = "video1";

    title = "this is video 1;

    break;

    case 2:

    radical = "video2";

    title = "and this one is 2 video."

    break;

    }

    build the

    var video_tag = '

    video_tag += '.mp4" poster="video/';

    video_tag += radical;

    video_tag += '.png" type="video/mp4" controls="controls">';

    var video_H = sym.getSymbol ("videoHolder_1");

    video_H.$('videoFrame').html (video_tag);

    video_H.$('headline').html (title);

    SYM. Play ('video');

    }

    works > w_01.click event handler:

    sym.getComposition () .getStage () .chooseVideo (1);

    works > w_02.click event handler:

    sym.getComposition () .getStage () .chooseVideo (2);

    Download an example here: https://app.box.com/s/ykrvwvy3fclrdbwbwxff

    Gil

Maybe you are looking for