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 new imac and I'm trying to share files with my older emac. I can access my imac files from my old emac through File Sharing, but I can't seem to access the old emac files from my imac. On my imac I can get to the Drop Box folder through File [More]
Running CF10-Enterprise, 10,0,9,284568 with Update 9.  This is running under JDK 1.7.0_21, and is fronted by Apache 2.2.x and all runs under RHEL6.x.  It seems to work fine In short - is it possible to create a new instance, and have that new instanc [More]
I have a Core Duo Macbook. I'm able to connect it to an external monitor (VGA or DVI) without any problem. I want to be able to use it in closed display / clam shell mode but can't. With the computer on, I close the lid. I then tap on the external Bl [More]
I just bought a new Macbook Pro and I am having trouble finding an Audio Interface for recording vocals/guitars that will actually work!!  Most of these companies have not worked out the driver for them yet....ThanksIn addition to Stedman's spot-on r [More]
We deployed a CRM type system into Production over the last few weeks. We are having the usual environmental issues, but nothing we can't handle. We are however experiencing one very unusual type of behaviour. Every so often, even if the system isn't [More]
The airplay Icon on my PC goes on and off... I have an airport express. Is there something to do ? When I try to make an update on my PC, it says that the windows version is to old... but it uses to work... and it works great with my Ipod. I have an [More]
Hi, Any help to add an element to a node. I have a node in a view context and I would like to add its content to a component controller context node which has the same structure ( subnodes and attributes) . Thanks in advance.Hi, Sorry , i think i mis [More]
Am I the only one finding this annoying? I want to know how to switch "open link in new tab" and "open link in new Windows" like it was in Firefox 3. If you mousehover on a link and press the right mousebutton.Sara, I started having th [More]
Hi All,  When I try to connect to wi-fi, it asks for a password.  Then I got this question.  If you don't know the password, check with the Wi-Fi network administrator, but how do I find the network administrator.Whomever provides the wi-fi. To what [More]
Need to get rid of flicker in between image displays--the PC on which LabVIEW 8.2 is installed is routing images via LabVIEW code & 'extended desktop' to a typical visual projector and between each image display is a flicker--that we need to remove A [More]