Sitemap

Amicuk Programming Answers

The unit string stays editable for numerics in a non strict typedef

-0001-11-30   Views:1

Advertisement

The change is not effective as the typedef instance keeps its defined units but may displays wrong unit string. This is not the expected behavior to change for example m to m/s as the units are part of the type definition. It is expected to be able t

The change is not effective as the typedef instance keeps its defined units but may displays wrong unit string.
This is not the expected behavior to change for example m to m/s as the units are part of the type definition.
It is expected to be able to change meters to feet since it affects only the displayed number and it is not a change in physical dimensions.
LabVIEW, C'est LabVIEW

The replay answer
Advertisement
It seems that if you change the base unit, everything goes awry.  The control has the new units, but the unit label is never updated.  This is definitely a bug.  I think the bug stems from the fact of the desired behavior when you don't change the base unit (i.e. change m/s to km/s).  The non-strict typedef keeps the unit label at m/s and everything works as it should.  Based on what NI does for other control components for type defs, I expect this is desired behavior.  The problem is that the user can change m/s to m in the typedef which is incompatible with the m/s unit label and therefore needs to be forced to update the unit string.
With a typedef, you cannot change the base unit using the unit label (take a good VI with both set to m/s, and try to change the type def instance of the control to m.  LabVIEW will allow the change, but the VI will not break because LabVIEW really didn't change the units. This may be constituted as a second bug or part of the same bug.
NOTE:  Non strict typedef units are m/s.  Instance Unit Label changed to m.  VI did not break and runs as if the units are m/s.
Perhaps the desired behavior is to break the VI when the instance of the typedef doesn't have compatible units with the typedef.  That would cause the VIs to break when a typedef is updated.  So, maybe in addition, the typedef needs to force a unit label update if the old and new units are not compatible.
Message Edited by Matthew Kelton on 03-24-2009 12:02 PM
Attachments:
typedef unit mismatch.png ‏14 KB

Go to See the other 6 answers

The unit string stays editable for numerics in a non strict typedef

Category:DefaultRelease time:-0001-11-30Views:130

The change is not effective as the typedef instance keeps its defined units but may displays wrong unit string. This is not the expected behavior to change for example m to m/s as the units are part of the type definition. It is expected to be able t[More]

How to create a screen with scaling units to open & edit EPS files

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I need some help in designing a screen where I can open EPS(Encapsulated PostScript) files and AI files(Adobe Illustrator) and edit them. I need the screen with scaling units along X and Y axes. Can any body please help me creating such a scr[More]

How to add string in editable datagrid

Category:DefaultRelease time:-0001-11-30Views:130

Hai        I have attached the mxml below.    I need to add ' ' before and after the value.    1. here i have the mxml, run the mxml , enter some vlaue in textbox and click add button, now the values will be added    2. u can see the value in single[More]

Edited Photos don't stay edited when put in Facebook

Category:DefaultRelease time:-0001-11-30Views:130

ok I am using Iphoto version 6. I am having problems with exporting files from IPhoto to Facebook. The editing touches on the fotos do not show up on my facebook album. 2 attempts: 1st i tried to go to and upload the Modified Folder, where my edited[More]

Keyword Sets do not stayed edited, and a suggestion for Adobe

Category:DefaultRelease time:-0001-11-30Views:130

Hello, and thanks for any assistance. I have repeatedly tried to customize and edit Keywords Sets, only to have them revert to their previous state as soon as I swapped to a different set. Either some of the Adobe default words, e.g., "Landscape,&quo[More]

Text Field String to Object problem

Category:DefaultRelease time:-0001-11-30Views:130

Hi, i am trying to search a vector called mainStaffDataBase for a staff members name, found by getName(); Now thats all good an well, but here is the tricky part (for me) i have another vector called mainUnitDataBase, in which unit names are stored.[More]

Cipher - encrypt large String variable

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have a jUnit test for a simple Cipher encryption/decryption. I want to write a test to encrypt large data. Do I have to change the encryption variable type from String to a Stream class? Anyone have suggestion? package no.ssb.cipher; import[More]

How to get the viewrow value by string

Category:DefaultRelease time:2015-10-11Views:130

Using Jdev11.1.1.5.0-adfbc-ireport3.0.0 here i'll describe: what i did. am using jsff(dynamic region) while hitting the af:tree nodes it will opens. ok fine i had somevo with manually wroten query. and query is fine no problem with that here i give s[More]

Configuration issue in IE as Document mode: 10 and User agent String: Internet Explorer 8

Category:DefaultRelease time:2015-10-11Views:130

Hi, I have a telerik rad popup window performing some input operation. The problem is when I use the configuration in IE as Document mode: 10 and User agent String: Internet Explorer 8, scroll bars appear in the window from nowhere. It is working fin[More]

Convert string (in a Julian Date format) to a date in CR XI Release 2

Category:DefaultRelease time:2015-10-11Views:130

How do you convert a string field  entered in a database as a Julian date " 10109 , 09008. ,,," to print on a report as  date? 09008 would be 01/08/09 10109                 04/19/10A small correction to Brian's formula: NumberVar myYear; NumberV[More]

Designing a Field Editable Header for Merging with Exsisting PDF doc

Category:DefaultRelease time:2015-10-11Views:130

I'm trying to accomplish designing a Field Editable Header so I may merge (import) into an exsisting PDF file to create 1 file. I have already designed my header in Live Cyle with editable fields. The only issue is when I save it as a PDF file I can'[More]

Hot
I have a column group of dollar amounts.  The row is a year/month.  I would like to add a moving average column to the right of the last 6 months.  My SQL Server data source is already complex enough and I'd really prefer not to add a column there.   [More]
i am building a video installation and i would like to run the video off my iphone, but the projector that was donated only has an s-video, vga, dvi-d and single video output. the budget it blown, so i cant afford a new projector, does anyone of a ca [More]
Hi All, Could any one help me how to install JDBC ADAPTERS in PI 7.3 . Please provide the related links. MY SERVER DETAILS. Database system      MSSQL  Release                     10.00.253      DB client lib.               SQL_Server_9.00 Operating [More]
Hello, I need to retrieve the Line item Text in the PO (Material PO text). Can anyone provide me a sample code? i need to display this in a smartform. I could not retrive it from the Function Module READ_TEXT. Can any one help me regarding this? Rega [More]
I asked my current web hosting service about switching over to have Apple host my domain 2pi.ca so that I could use iWeb at its full power on my website. I was told that I'd loose my two email accounts which currently work @2pi.ca. Does that have to [More]
Hi everybody ! I'm working on an application that uses plugins and that is able to compile them from inside it. I need to update the classpath so that thae update is applied without restarting the application. For the moment I'm working like this: I [More]
i application URLRequest to post a new html page,which have some question for IE program: var url:URLRequest=new URLRequest("vodplay.html?name=22222"); navigateToURL(url,"_self"); when i apply ie to run this page,this param is null. wh [More]
When I'm logged into an ECC WAS as <sid>adm and I run the command "startsap" how do the java services get started? Specifically, I'd like to know how the jlaunch process for the dispatcher and server are started. I don't see anything in th [More]
I'm trying to do a basic Android app using Dreamweaver. I went to Site-->Mobile Applications-->Build and Emulate-->Android. When I do this a window pops up that says Cloning seed app for Android. Unfortunately, I can't get past this. The window c [More]
Dear Sir, When trying to save voltage waveform(by clicking record button, to save into ASCII file), the waveform is distorted and soon it comes "error 200279" with the following message: ========================================================== [More]