Converting vi's to lines of code

All,
In order to review and grade our code we would like to use 'lines of code'
as a basis of measurement (ex. 2 defects per 1000 lines of code). Since
labview is graphical this provides an obstacle. Is there a standard for
converting labview vi's into lines of code for measuring quality?
Dan Troutt
Note : Remove 'nospam' from email address to email. Thanks.

The URL for the Manual is: http://www.ni.com/pdf/manuals/321393b.pdf and
the VI Metrics Tool section of the manual is chapter 8.
Most manuals for NI products are available on the web at : https://digital.natinst.com/manuals.nsf/web/byproductcurrent
I hope that this helps,
Bob Young
National Instruments
"Kevin B. Kent" wrote:
>Dan Troutt wrote>> All,>> In order to review and grade our code we would
like to use 'lines of code'>> as a basis of measurement (ex. 2 defects per
1000 lines of code). Since>> labview is graphical this provides an obstacle.
Is there a standard for>> converting labview vi's into lines of code for
measuring quality?>>>> Dan Troutt>> Note : Remove 'nospam' from email address
to email. Thanks.>>There is a
VI package (I believe it is the Pro G Developers
Toolkit)>that has VI Metrics. This shows number of nodes, wires, etc etc.>I
believe that this is similar to current SW metrics (maybe not Lines of>code).>I
cant find the manual right now, but this may be what you are looking for.>
Kevin Kent>
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]

Similar Messages

  • Converting a line of code into something recognized by Animate

    I'm trying to embed a LinkedIn profile on my Stage. However, due to the Same Origin policy for browsers, this has been difficult to achieve. However, after researching it, I've found what I believe to be the code that works. The only thing is that I'm having trouble formatting it correctly so that it works in Animate. The line of code is
    <script type="IN/FullMemberProfile" data-id="Hv3V1lv4SQ" data-firstName="Eugene" data-lastName="O'Neill"></script>
    I got it from this page, and it works there, so I figured it would be my best shot
    JavaScript API Developer Console
    (Note that it's the example for "Full Profile" in the "Member" section.)
    I'm trying to get it to load into a Symbol called LIProfileContainer, so I tried
    var liprofile = $("<iframe/>");
    sym.$("LIProfileContainer").append(liprofile);
    liprofile.attr('type','IN/FullMemberProfile');
    liprofile.attr('width','640');
    liprofile.attr('height','360');
    liprofile.attr('data-firstName','Eugene');
    liprofile.attr('data-lastName','ONeill');
    liprofile.attr('data-id','Hv3V1lv4SQ');
    liprofile.attr('frameborder','1'); 
    liprofile.attr('allowfullscreen','0');
    However, that doesn't work. (Since I'm primarily a designer, I apologize for my poor coding skills.) Any help getting this formatted would be appreciated.
    Thanks!

    Looking at your link API, there is a button: "give me the Code". It returns:
    It means you have to load a js file ("in.js") and give your api_key.

  • Convert scanned signature into line drawing

    I have a need to convert scanned signatures into line-drawings. I could buy MIcrosoft Illustrator (or something) to do it, but I was wondering if anyone knew of a free-ware Java tool that could do this.
    It would work somehting like the following:
    1. Sign your name on a white piece of paper.
    2. Scan the image and store it as an jpeg file.
    3. A program (hopefully free in Java) would read in the image and output one of the following:
    a) output to another jpeg file where the signature had been converted to line-drawings (so the lines are thiner and more crisp than the scanned image)
    b) output the vector coordinates that could be read into another custom program that could dynamically create the jpeg (I know how to write this jpeg-creatio program from coordinates...).
    thanks,
    Jeff

    For starters, using JPEGs in this situation is a poor choice because it is a lossy format.
    Second, it seems like what you're after is something like OCR. I think I asked a question once about OCR for java... I think I remember someone telling me that it's out there. But anyway search the web for that.
    Even if all you're interested in is code that will smartly 'correct' an image I don't think that there is freely available code (might not be any Java code at all) to do this.

  • Converting PR to Schedule Line

    Dear all:
            How can I converting PRs which assigned source with Outline Agreement to Schedule Lines?
    I can convert just one PR to Schedule Line in MD04, but I hav no ideal about a lot PRs converting in
    the same time like converting PRs to POs with T-code ME59N.

    Also Below Factors must be checked
    Generated through MRP.
    Scheduling agreement must be clearly designated as a source of supply for MRP in source list (MRP indicator 2).
    Procurement indicator F (external procurement) must have been set in MRP data of material master record (exception: you are working with quota arrangement).
    Automatic scheduling agreement delivery schedules must be permitted in planning run. Automatic schedule lines (scheduling agreements) indicator determines whether or not system generates SA delivery schedule lines in opening horizon only or in planning horizon during planning run.
    Raghavan

  • Error synchroniz​ing with Windows 7 Contacts: "CRADSData​base ERROR (5211): There is an error converting Unicode string to or from code page string"

    CRADSDatabase ERROR (5211): There is an error converting Unicode string to or from code page string
    Device          Blackberry Z10
    Sw release  10.2.1.2977
    OS Version  10.2.1.3247
    The problem is known by Blackberry but they didn't make a little effort to solve this problem and they wonder why nobody buy Blackberry. I come from Android platform and I regret buying Blackberry: call problems(I sent it to service because the people that I was talking with couldn't hear me), jack problems (the headphones does not work; I will send it again to service). This synchronisation problem is "the drop that fills the glass". Please don't buy Blackberry any more.
    http://btsc.webapps.blackberry.com/btsc/viewdocume​nt.do?noCount=true&externalId=KB33098&sliceId=2&di​...

    This is a Windows registry issue, if you search the Web using these keywords:
    "how to fix craddatabase error 5211"       you will find a registry editor that syas it can fix this issue.

  • How to output sample and convert clocks to PFI lines of E-Series DAQ (DAQPad-60​15)

    Hi,
    Can someone tell me how to output sample and convert clocks to PFI lines of E-Series DAQ (DAQPad-6015)?
    Thank you very much.
    Jack

    John --
    Windows is not an option for me. I like your idea of using a counter output -- it may be helpful as I am getting ramped up, but my application will eventually require both timer outputs.
    I have a legacy C application written for Macintosh, and I am in the process of moving it onto OS X. So my options are to use DAQmx Base, or write an in-kernel driver. I actually have already done the latter for 6024/6025 E-series boards (for another company); for this client I was hoping to use the DAQmx Base to allow an easy transition to M-series boards, without the cost of writing and supporting a low-level driver.
    The specific task I am doing is relatively straightforward. I record 2 channels of AI for a short period (usually about 250 ms.) and during this time I drive 2 external digital signals. Right now, I use the 2 timer outputs, which allows precise synchronization with the output and AI sampling.
    I appreciate your comments, and thanks in advance for any additional suggestions you can lob my way.
    --spg
    Scott Gillespie
    Applied Brain, Inc.
    scott gillespie
    applied brain, inc.

  • Typelag happens in big projects. AKA 38,325 lines of code.

    My machine runs very fast in all other applications, it is a gaming computer that runs Starcraft 2 smoothly on the highest settings.
    I'm writing a very big application in Flash.  It is well on its way to being a MMORPG.  I have hundreds of classes, but my biggest class has really off the charts type lag.  My biggest class is 38,325 lines of code.
    Now every time I type, it tries to highlight words in grey for some reason.  I think every letter I type, it searches the entire 38,325 lines of code for that word in order to highlight all cases of it.
    take a look at this picture and how "hud" is highlighted
    LINK: http://www.goodnewsjim.com/images/slowdown_FB4.png
    As I move the cursor around and edit, I often times get 1-5 seconds of slowdown, sometimes I even get 20 seconds of type lag where the Flash Builder temporarily says "Not Responding in the window bar".  This happens all of the results of me typing letters, moving arrow keys or pressing delete or backspace.
    For small edits, I can wait 20 seconds to edit one word, but when I work a lot on my code, I have to open an external editor like Scite, but the alt-tabbing consumes time, and there is a mouseclick to reload the .as file.  I would like to use Flash Builder 4 for editing my code, after all that is what an IDE should be able to do if anything.  An IDE should at the very least be no worse than a generic text editor.
    Please tell me how I can disable Flash Builder 4 from trying to highlight words in grey. I think this is what is causing my typelag.  I've turned off code hints.

    Anirudh,
    Thank you again for your quick response.
    1) I already disabled Code assist completely in Window -> Preferences -> Flash Builder -> Editors.
    2) Ok, I did toggle mark occurances off.
    The problem still persists.  I still have type lag. 
    ,Jim

  • Total number of lines of code in a  project

    Hi All,
    We had developed a project in oracle adf using jdeveloper Version 11.1.1.4.0.Is there any way to find how many lines of code we had wriiten in the entire project.
    Regards,
    Smaran

    Hi,
    NOS stands from Number Of Statements and is a bit different than nloc (line of codes) that is count the statements rather than lines, thus independent from coding styles. As for V(G), it's the cyclomatic complexity, also known as McCabe.
    Regards,
    ~ Simon

  • Total number of lines of code in a class.

    Dear Experts,
    Given a class, I want to find out the total number of lines of code in all of its methods.  Following sub-parts are derived.
    1.  Find out all the methods of the class
    2.  Find out the number of lines for each of these methods and finally add the total number.
    Can you kindly let me know how I can do this?  Thanks a lot !
    Best Regards, Vikram

    Be aware that a 2D array is an array of arrays, which don't necessarily have to be the same length. e.g.int[][] a = new int[2][];
    a[0] = new int[10];
    a[1] = new int[20];
    /* a.length == 2
       a[0].length == 10
       a[1].length == 20*/

  • White lines of code on black background upon starting up

    I recently sent my Macbook in due to problems with the screen going dark for no reason. Upon recieving the laptop back, I noticed problems upon starting. When I restart my laptop, there are white lines of code on a black background. I called in to support, but my support expired and here I am searching for help. They told me that I needed to try and reset my drivers, or my HDD is bad. To reset my drivers they gave me a combination of keys to press upon restarting, but I don't remember the combination of keys. I have repaired my disk using the install CD, but still am having problems.
    It's crazy that I send my laptop in and get it back with other problems... Any help is appreciated becuase Apple surely isn't helping.
    Macbook   Mac OS X (10.4.8)   Core Duo w/ Bootcamp

    Turn the computer off. Wait one minute. Restart. If you are still booting into single-user mode (black screen with white print) then at the prompt enter:
    reboot
    Then press return. If this does not start you up into OS X then there's a system problem. You will need to reinstall OS X. You can do this using the Archive and Install option that does not require you to erase the hard drive. Your old system will be archived in a Previous System Folder at the root of the hard drive.
    Before performing the Archive and Install you should do the following:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. Then select Disk Utility from the Installer menu (Utilities menu for Tiger.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then quit DU and return to the installer. Now proceed with the OS X installation.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger) and/or TechTool Pro (4.5.2 for Tiger) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • What is the error in this one line of code!

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    I am using this line of code in my programe but i am getting the following error.
    C:\shahzad\Easter.java:28: illegal start of expression
    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    Please help me solvingg this problem
    thanks.

    s=s-(s/28)*[1-(s/28)*(29/s+1)*(21-q/11)];
    [] brakets ae used to index arrays, are you using an array somewhere????
    arr=5; for example....
    in either event youl need to make changes.
    assuming no array is involved simply change [] to ()
    if still causing problems try adding extara()
    s= (s-(s/28))*( (1-(s/28)) * ( (29/s)+1) * (21-(q/11)) );

  • Thousands of blank lines in code view? Where did they come from?

    I have an older DW site, that for some reason when I open certain pages in code view show literally thousands of blank lines.  So line 1, code, line 2-15 are blank, then what used to be line 2 of the code, is now line 16. All the way down the line.  This one page literally has THOUSANDS of blank lines in it:
    Aurora Prom Corsages, Boutonnieres, Flowers, School Dance Flowers-Yorkville, Osego Illinois
    page renders, edits and looks fine in DW, browsers, etc. 
    My client edits it with Contribute. I use DW.
    There are certain pages he opens regularly, never saw the lines, other pages, just opens once a year, lines all over again.
    We can't find any rhyme or reason to it.
    Has anyone ever seen this?

    Try opening one of those pages in DW and then go to Commands > Apply Source Formatting and see if that cleans them out.
    I've heard of a bug where adding html comments can cause added blank lines in certain versions, I've never seen it myself though.

  • ABAP Methods _ 50 lines of code or less recommendation

    Hi,
    I'm looking for a document that I recall seeing that recommends that an ABAP method should have only around 50 lines of code. Can anyone recall this document and where to get it? Not sure if it was a blog or pdf paper by someone.
    Thanks,
    Ken Murray

    Hi,
    Please refer link and page number 8.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4fbafc9e-0e01-0010-dea9-9d23d1b269fb
    Generally, limited lines are useful for effective modularisation and easier maintanance.
    Thanks,
    Chetan Shah

  • Is it too much lines of code inside a class file?

    Hi,
    I was wondering about how many lines can be considered too much in a java class file. I saw some class files with more the two thousand lines of code and even more than three thousand lines. When we have so many lines in the code I've realized that the file becomes slow for edition and it's not readable as it should be. So, as a best practice, or even due to technical issues, in average how many lines of code we'd write in order to keep the readability and avoid compile and build issues? How many lines a class should have without putting our code and performance at risk ?
    thanks a lot

    My general rule of thumb--in a class everything shold be very consistent, that is to say: you should be focusing on 1 idea in your class. IMO: If you have a class for users, you need to consistent in just what that class does. When the class becomes large, then look for related themes that run through methods of that class, and if here are many, you should make a "related class" that does satelite functions of the "core" offered in the main user class.
    Thousands of lines do not a good class make, I break in to related categories of classes long before then, and as a rule I keep under 500 lines in a class--usually under 300. In any case, no more lines of code need go into a class than that to implement the core features in the main idea for that class--and no less lines of code than is needed too, don't religate a method to another class just becasue you feel it would make the class it belongs too big.
    Along the idea of the user class:
    Storage for the user data
    Home information
    Work information
    physical information
    tastes and preferences
    family
    and etc
    all of these could be a class in and of themselves, but definetely are closely related to the user class.

  • Integration conflicts comparision beyond 20 thousand lines of code

    Hi
    SAP Netweaver ,  webdynpro for Java
    I have a file which has 20 thousand lines of code in Project track and 16 thousand lines of code in maintanance track.
    I have added 2 lines of code in maintainance track and tried to resolve integration conflicts with project track.
    when i do Merge in integration conflict with project track.
    it took so much time to compute difference and finally ended up with message
    " Too many differences, Turn on the Ignore white space option or do a structure compare first"
    once i click ok it takes to the comparison but its not able integrate as there are no signs of merging the code.
    i am not able not find any solution for this to resolve this.
    Could you please help me in this
    regards
    pradeep

    Hi Satish and Anil,
    Thanks for your reply.
    Actually its only one activity that has to be integrated from Maintanance track( (4 new lines of code) out of 16 k lines) to project track which had 20 k lines of code.
    Once i have released the activity from transport view of mainatance track it reached to consolidation tab of maintanance track and in parallel it reached to development tab in Project track(i have imported the same to consildation of project track) in CMS
    After that i have gone to DTR and clicked on Integration conflicts the when i tried to right click and merge
    it took so much time and finally ended up with message saying
    " Too many differences, Turn on the Ignore white space option or do a structure compare first"
    could you please help me this is critical for us to integrate the changes
    Thanks and Regards
    Pradeep

Maybe you are looking for

  • Small input program (html) using sockets.

    I'm having problems with the following whenever a cd is inputted via cdinput.html it runs cdprocess.jsp to create an XML document with DOM in memory this is sent to the server and is later printed out to the users screen. The server must be started i

  • Faulty Wi-Fi Access

    I have a problem with my wifi, which is that once I turn on my macbook pro, the wifi connects to the wifi but says it doesn't have internet connection. After 10 mins though, that prob disappears and i got full wifi access. Another 30 or so mins later

  • Editing BSEG-VBUND on a posted document.

    Does anybody know if it is possible to edit the VBUND field on a posted document? Thanks for your help!

  • How to integrate JD Ewards EnterpriseOne with BPEL/SOA 11G

    Can anyone post steps or docs/link as how to integrate JD Edwards EnterpriseOne business services with BPEL/SOA 11G. I would highly appreciate if anyone could share their views on integrating business services with bpel-soa10g/11g Thanks

  • Time Machine- manually removing backups for different machine

    Hey all-   I'm running into a problem where Time Machine is suddenly not able to back up my laptop anymore, due to the TM disk being out of space.  As part of trying to figure out what was going on, I went to manually browse the TM disk, and noticed