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 made a GIF for a website and it doesn't seem to be able to be turned into a JPEG. I tried turning it into a PSD file first and that didn't work. What am I missing about GIFs? Thank you, TracyWell, there seems to be certain editing capabilities that [More]
I just purchased the Airport Extreme and I couldn't have been happier. I have attached my western digital external hard drive, but I have run into a slight problem/dilemma which I'm hoping someone who is apple savvy can help me out. I live in a house [More]
Dear all, Explaining problem in detail,Client has made a scrap sale(ar invoice) to customer for Rs.74025.76, need to collect tax colleceted as source(TCS) for above amount which calculates to Rs.838, Rounding off is Rs.0.24. Customer paid for ar invo [More]
I'm in Final Draft (screenwriting prgram) and hit Save as PDF and a window opens stating that the printer name is invalid - what am I doing wrong?Final Draft, Inc. - Search: printer name invalidRead other 2 answers [More]
It seems that every time I reset Safari, I have to reestablish credentials with the App and iTunes Store. Are there cache or web site data files that are common to all three of those applications? Currently using Safari 7 with OS 10.9.Thanks, Bee. I [More]
I've been trying to move my entire library off of my 17" MBP to an external HD (including ratings, playlists, play counts, etc.) so that I can more easily move between that machine and my 15" MBP. I followed Apple's directions a few times and tr [More]
Hi folks, I am trying to update some rows in a table using rowid of the corresponding rows.Sometimes this updates wrong rows. This is because ORACLE by itself makes some statistics on the particular table using "Analyze table..." statement and i [More]
We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component i [More]
Hi all, I have a JTable and when the user goes to enter some text in a field I would like the value entered to persist to the underlying object as soon as the text is changed. This is without the user tabbing out of the JTable. Currently when a value [More]
I am currently using a Macbook Pro with Mac OSX 10.9.5. On the CD it says for 10.5 or 10. When I put the CD in it pops up saying "add to Applications" which I did then when trying to open it a pop up says "The program unexpectedly quit woul [More]