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
Hey, i am using an iMac G5 and just installed leopard. i also bought an external hard drive so i can use time machine. I also hoped to put my music files on my external HD so it would take up less HD space on the iMac. My question is, is it possible [More]
I put a Tesco sim (02 carrier) in 2 unlocked phones, Both phones are now locked to 02, 02 blame apple, I connect the iphone to itunes and it states that the new carrier (orange) is not supported, Isk this of both 02 and apple, who's phone is this and [More]
I have an old HP Laserjet4 Plus that has been a workhorse. I've had it for years and it still works great. Previously I was using it as my network printer, plugged into a WRTP54G Linksys Vonage router. That setup worked fine, but over time the router [More]
I work for a magazine and have been having trouble with InCopy and InDesign. When the editor changes any text in InCopy, it sometimes does not appear on my end in the InDesign file. When I open the document and the message: "This document contains li [More]
Hi what is the importnace of message id in soap adapter ?? Are there any situations where we send it through query string or message payload ?? I know.......by default IE creates Message ID for any messages that passes through it. But still are there [More]
Iphoto shut down in the middle of downloadApply the two fixes below in order as needed: Fix #1 1 - launch iPhoto with the Command+Option keys held down and rebuild the library. 2 - run Option #4 to rebuild the database. Fix #2 Using iPhoto Library Ma [More]
My Ifone 4 was not behaving properly. I pressed "Reset all settings" now it has been more than 1 hour my ifone is still working in background and white circle is moving in the center of the screen. None of the button including Power works may yo [More]
I have a birthday calendar set up in iCal, which pulls birthdays from Address Book. I'm syncing a Samsung Propel to my computer via iSync. However, the second I get a contact on my phone, the phone seems to automatically assign a birthday of 1/1/1900 [More]
Hi All, We have assigned inspection point 300 in task list. And inspection type 14 is assigned to the order type. When I create the order manually by IW31 then I am getting the inspection lot but when creating the Maintenance Plan with the same order [More]
My E7 is connecting to the internet in regular intervals, although there should be no appearent reason. I am trying to keep all outgoing data connections to a necessary minimum, mainly to maximize the device's standby time. However, I cannot get rid [More]