Why do very few programmers use LabVIEW unit labels

I've been developing code for 8 years and once I discovered unit labels I fell in love with them and have used them consistently ever since.  And I have to say, I have never smashed a spaceship into Mars!  However, other coders at my company avoid them and I've never seen example code or instrument drivers that use them.  For instance, if a company has a laser power measurement instrument and provide instrument drivers to return the measured power, why don't they add power units to the output?  It seems so obvious and simple.  Does anyone know why these are not used?

Wise Owl wrote:
I've been developing code for 8 years and once I discovered unit labels I fell in love with them and have used them consistently ever since.  And I have to say, I have never smashed a spaceship into Mars!  However, other coders at my company avoid them and I've never seen example code or instrument drivers that use them.  For instance, if a company has a laser power measurement instrument and provide instrument drivers to return the measured power, why don't they add power units to the output?  It seems so obvious and simple.  Does anyone know why these are not used?
Some people may think you need an extra label, caption, or free text - and avoid it due to the fuss involved (alignment, font, forgetting to display it, moving it accidentally, etc).
If more people knew how to format unit labels into indicators, I think more people would use it. You can do it pragmatically with a property node (this is great when the unit may change, such as going from seconds to minutes), or you can just edit the Properties of an indicator in Advanced Editing Mode and put it there. Easy!
Message Edited by Broken Arrow on 04-27-2010 02:05 PM
Richard
Attachments:
lbl.jpg ‏52 KB

Similar Messages

  • Why is VI not executable using Labview 7.1 Run-Time Engine?

    Hi,
    In our Teststand sequence, we have a Labview Action step which is returning an error: "The VI is not executable", along with the error code: -18002.
    This error occurs on a Production PC using the L.V. 7.1 Run-Time Engine.
    I'm aware of Mass Compiling to ensure all the VI's are the correct version, but this has not resolved the problem.
    The software was installed on the production PC using a Teststand created installer, with the Labview Adapter set
    correctly to the Run-Time Engine, i.e. not trying to open the Labview Developer Server to execute the step at run time.
    Because it's the 1st Labview module to be executed, I added another similar step to run beforehand, i.e. the new simple
    Labview code ran first. This executed correctly, but then the next step caused the error above.
    The small number of associated sub-vi's are on the target PC, and have been mass compiled.
    I've had -18002 errors before, but this is one I cannot cure.
    All suggestions gratefully received.
    Gary.

    Hi Guys,
    Regarding this -18002 error when using the Run Time Engine instead of the Development Environment, what is the VI within the step that is failing (in any of the cases you've mentioned) trying to do? Are they built around any toolkits?
    In my experiments with a simple VI (with just a user dialogue) using the LabVIEW 7.1 RTE in both TestStand 3.1 and 3.5 this morning, I haven't found any issues
    There is a possibility if any of the sub-VIs or toolkits you use contain a Merge Errors.vi, that the Run Time Engine picks up a copy of the VI built for previous versions of the RunTime Engine (due to the order in which the sub-VI directories are scanned), and it cannot convert it.
    There are a few solutions for this, the easiest one looks to be to copy the error.llb\Merge Errors.vi for LabVIEW 7.1 into the same directory as the VI you're calling (so TestStand can pick it up easily).
    Can you let me know if this solution helps at all? If not, would it be possible to post up any of the code or sequence you're having problems with?
    Best wishes,
    Mark
    Applications Engineer
    National Instruments

  • Unable to define a control unit label to the engineerin​g unit of a tag

    Hi all,
    I use the "read tag" to get the value of a tag, and I connect this value to a control.
    I would like to see the tag engineering unit affected to the unit label of the control. Is there any way to do that?
    It seems that the "read tag" returns a value with no units, and I can't link it to a control with a different physical data type (such as K or degC...).
    The reason I want to use the unit label of a control, is to have the possibility to change this unit to compatible units ( on the front panel), and have the value automatically converted.
    Thanks for your help.
    Hélène.

    Hello,
    I would recommend you to get the raw value to you DSC Application, and once the value gets there.
    You can modify the Tag Attributes (like the Scale, etc) but I think it is a lot easier to use the math functions in LabVIEW to modify the values coming from your tags.
    VG

  • HT4059 Why does iBooks offer very few books in Nigeria?

    Hello all,
    I recently got iPad (Third Generation) because I was excited about the possibilities of reading so many books through the iBooks app. However, I have recently discovered that there are very few books on offer in the Nigeria Store - and they are mostly books available in the public domain.
    For a couple of days, I thought it was a general iBooks problem (i.e. iBooks did not have so many books as I had originally thought) - but then I visited the US Store through a friend's account (who also lives in Nigeria) - and realized that a greaaat deal of books are available in the US Store (and other stores).
    Why does iBooks offer very few books in Nigeria? Is there any way to work around this restriction? How can this complaint be forwarded to those who make decisions at iTunes?
    Thanks,
    Koye.

    Congratulatons on the new iPad! 
    Music, movies, books, apps, etc. are availble on a country by country basis, as made available by the publisher. If you have books you would like to see added to the iTunes Store/iBookstore, you should submit feedback to Apple here: http://www.apple.com/feedback/itunes.html

  • Why the acquisition with DAQmx is different by using Labview 8.2 from Labview signal express?

    Hello,
    I am using a PCi-6281 to acquire a voltage. When I am using Labview signal express with only the step to acquire I read the good signal with the exact voltage. But when I am using my VI, the y axis and the values recorded are wrong. Why this difference appears?
    I insert a picture with both signal: at the top is the signal from my vi (wrong measurement) and at the bottom is the signal from labview signal express (correct).
    The vi I am using is the example Cont Acqu&Graph Voltage-To file (binary).vi.
    Thank you for your answer!
    Sophie
    Sophie

    I am using the binary file because it requires the minimum change in another VI. I have tried to change in scaled data but now my second VI has not enough memory to display all data.... What's wrong? Here is my second VI. Totest with data you need to insert a number in the "scaling factor" if not the dat are multiplied by zero...
    thanks for your help!
    Message Edité par stage84 le 07-24-2009 10:11 AM
    Attachments:
    Display 3.vi ‏1867 KB

  • Why was there over ten thousand file in my "All My Files" on my new MBP. I'm very new at using ICloud. I don't understand syncing vs time vs time vs syncing! I simply have not idea how to manage my file now.

    Why is there over ten thousand file in my "All My Files" on my new MBP. I'm very new at using ICloud. I don't understand syncing vs time vs time vs syncing! I simply have not idea how to manage my files now. I read short comments & how to's in the support sections, but nothing I've read so far explains"best practices" or turning iCloud off to get a grip on managing files. I have 250gb fast storage on the MBP itself, and 200gb in the ICloud, one would thing that's enough. The files seem too be multiplying like rabbits. IPhoto's Faces has created hundereds of "somethings" not sure what. I am sure I am very frustrated! Please comment with kindness.

    gf raines wrote:
    Yes,I am confused. To say its just another drive is a "buzz statement".
    OK, for example. If I download a document, song, or photo from ICloud, as I understand, it goes to Download in Finder. If I want to move it to a local folder of my choice on the solid state drive in my new MBP, does a copy always stay in ICloud? How do you housekeep? I have always  used to a physical drive. What is different about the mind set.  I used ICloud to store the contents of my old MBP. Once I download all the files I need, should I turn off ICloud and manage the file locally? I don't like the automatic movement of files when I don't understand the locations.
    Nope, you don't understand it.
    If you download a song from the iTunes cloud storage (which is not iCloud) it goes into the iTunes music folder (generally to a subfolder therein)
    If you download a document from the iCloud drive it will go wherever you chose to put it.
    If you download a photo from the iCloud Photo library it will also go wherever you choose to put it.*
    If you move something you have not copied it, if you want to keep a copy on the iCloud drive and in a local folder, you would copy, not move it.
    There is no 'automatic' movement, you decide what to store on the iCloud drive (exactly like any other drive) and what to remove.
    The iCloud drive appears as a folder in Finder, you use it just like any other, copy/paste, save, delete etc.
    You can turn the iCloud drive off whenever you like, download the content to a local drive first.
    * Because the iCloud drive appears as a folder in Finder there is in fact no need to ever download anything to your Mac, everything on the drive is already on your Mac.

  • HT4847 None of my iOS devises show no or very little storage used. Why am i getting this message. Ron

    I received the iCloud email saying my storage is full.  None of my devises show any or very little storage used.  Why am I getting this type of email?

    your home page to get into your Web site should be index.html (for Mac) or index.htm  (on PC)
    You can name it something other than index, but will be harder to find.  when you create the subjects and link to them, they can can be named anything with the html extension  Or if your using PHP end in .php. There is a Microsoft type asp or aspx but your hosting service has to set up using windows server system.
    My hosting service use a Linux server normally but can convert Windows for a Fee.  UNIX Linux has no concept of asp or aspx.
    See this : https://skitch.com/pjonescet/8mnnx/dreamweaver

  • I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    Is it getting hot only when charging?
    Not normal. Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • Why the time and date is not correct when I save a waveform in txt format, using Labview 6.1?

    I am using Labview 6.1 and my operation system is Windows 98. The date/time properties is configured in the Windows (time and date in the control panel is correct). I generated a waveform using Basic Function Generator.vi and saved this using the Export Waveforms to Spreadsheet File.vi. When I opened this file the date and time was wrong. Only the delta t was correct and it did not show the date neither the time, only a float number. How can I adjust the correct time?

    Actually, the date/time is correct, it is expressed as seconds since January 01, 1904.
    In order to print the string version of the date/time from your file, you will need to write a utility that converts the date/time to a string or series of strings in whatever format you wish. This can be done by reading the first line (I assume that is the line with the time on it), formatting the date/time into a string, and writing over this information in the file.
    The waveform VIs were meant to be used internally to read and write waveform data. Any use beyond that should require you to add formatting and other information/data as necessary.

  • Why does ENET-232 driver use 98% CPU?

    I have an ENET-232/4 device running under Windows XP Professional and am talking to it using LabVIEW 6.1. I am taking readings from an instrument every 5 seconds, with a small data exchange (6 byte command, response is about 50 bytes). Everything seemed to work just fine, but when left overnight the computer was very sluggish. The nisdsusr process was using 98% of the CPU time, and it continued to do so until I quit LabVIEW. Stopping the vi, which closed the serial port, was not good enough. I re-started LabVIEW and my vi, and I can see the CPU usage jump up to 12%-14% every time I take a reading, and go to basically 0 in between. This is perfectly fine. Why did this process go to 100% CPU usage and how can I prevent it from happen
    ing again? I am using the 1.01 serial device server driver, which is the latest version and is XP compatible (aside from the driver signing issue).

    I know this thread is old, but should anyone happen upon it...
    This problem (I've had it too) happens when network communication is lost and the serial device server goes into some kind of loop waiting for a tcp ack that never comes back. Something like that. To fix it the port has to be closed that was being used then re-opened. I'm guessing this was your problem when leaving it to run... at some point network communications were lost and the driver went haywire and didn't recover.

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • My iPad 2 is shutting down when I try to email a PDF created in pages. Why? Very frustrating...., My iPad 2 is shutting down when I try to email a PDF created in pages. Why? Very frustrating....

    My iPad 2 is shutting down when I try to email a PDF I have created in pages. Why? Very frustrating....

    That is very interesting in that my iPhone was exhibiting similar behavior with the "blue screen of death" with Pages a few months ago. An update for Pages came out and when I installed the update, the problem disappeared.
    Is Pages completely updated on your iPad? Do you use iCloud with Pages? If you use iCloud, try turning it off. settings>Pages>Use iCloud>Off. You will not lose your documents since they will still be in iCloud even if you turn that off on your iPad.

  • Is it possible to overwirte data in a *.pdf file using LabVIEW??

    hi,
    i have a requirement to overwrite a pdf file using LabVIEW, i have to use coloring text also.
    i have downloaded Exaprom PDF 1.0 toolkit. but it is to generate a new pdf file.
    please suggest ideas
    regards
    phani srikanthSpell Check
    phani srikanth

    Modifying an existing PDF file is several magnitues more complicated than creating one from scratch. The PDF standard is VERY complicated and contains a myriad of features with their specific syntax elements. In order to modify an existing PDF you have to be able to understand every syntax element that occures in the PDF, or you may end up corrupting the file.
    When you create a new PDF you can pick out the syntax elements that your tool supports and forget about the 95 other procent.
    There are many PDF Toolkits than can create PDF files, a few that can open PDF files and present them, and almost none that can edit them. The Adobe PDF Editor being one of the few that can do that, but nobody is going to give away such a Toolkit for free.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add info), it overwrites part of the record following it. I am using labview 6.0

    I need to update specific records(of variable lengths) in a file. I can get the correct record but when I update it(add or change info), it overwrites part of the record following it. I am using labview 6.0. I need to be able to insert information into the middle of a file without disturbing the data before and after

    It's hard to give more specifics without more detail, but in general you're going to need to read in the entire file, split it into three pieces (everything before the record of interest, the record itself, and everything after the record of interest), modify the record, reassemble the three pieces in proper order, and write the whole thing back to the file.Of course if the file is very large you might not want to actually implement it this way, but conceptually at least, this is what you are looking at.If this file some sort of proprietary format?Mike...PS: this type of issue is why I really like databases...
    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

  • Need help writing host program using LabView.

    Need help writing host program using LabView.
    Hello,
    I'm designing a HID device, and I want to write a host program using National Instrument's LabView. NI doesn't have any software support for USB, so I'm trying to write a few C dll files and link them to Call Library Functions. NI has some documentation on how to do this, but it's not exactly easy reading.
    I've written a few C console programs (running Win 2K) using the PC host software example for a HID device from John Hyde's book "USB by design", and they run ok. From Hyde's example program, I've written a few functions that use a few API functions each. This makes the main program more streamlined. The functions are; GetHIDPath, OpenHID, GetHIDInfo, Writ
    eHID, ReadHIC, and CloseHID. As I mentioned, my main program runs well with these functions.
    My strategy is to make dll files from these functions and load them into LabView Call Library Functions. However, I'm having a number of subtle problems in trying to do this. The big problem I'm having now are build errors when I try to build to a dll.
    I'm writing this post for a few reasons. First, I'm wondering if there are any LabView programmers who have already written USB HID host programs, and if they could give me some advice. Or, I would be grateful if a LabView or Visual C programmer could help me work out the programming problems that I'm having with my current program. If I get this LabView program working I would be happy to share it. I'm also wondering if there might already be any USB IHD LabView that I could download.
    Any help would be appreciated.
    Regards, George
    George Dorian
    Sutter Instruments
    51 Digital DR.
    Novato, CA 94949
    USA
    [email protected]
    m
    (415) 883-0128
    FAX (415) 883-0572

    George may not answer you.  He hasn't been online here for almost eight years.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

Maybe you are looking for