01-08-2008 01:01 AM
01-08-2008 01:34 AM
01-08-2008 01:32 PM
01-08-2008 02:39 PM
You might wish to check out the VI I posted here. It gets around some of the issues with the palettes.
The most recent version is in reply 31, but you can read the rest of the thread as well. I'm getting closer to completing a proper version.Additionally, you can change the palette view to dynamic and then edit the palettes using one of the options in the Tools>>Advanced menu. Note that if you want to edit the built-in palettes, you need to rename the readonly.txt file found in LabVIEW\Menus\Dynamic (or whatever your view is called).
I'm not sure what you mean by this. LabVIEW complies with the IEEE 754 standard and should round 2.5 to 2, not 3. Can you post an example for what you mean?
@EWR wrote:
May be you also are so kind to comment the following. The integer arithmetic is implemented in a different way as in all programming
languages I know. As an example we have 5/2 is rounded to 3. In order to get the usual result one has to use floor(5/2). In my opinion,
this is a source of errors when porting programs written in other programming languages.
01-09-2008 02:34 AM
@EWR wrote:
1.- How can I generate an "icon menu" for the Block Diagram with my favorite components,
say, one that includes "numeric indicators", "string indicators" and some "constants" of different types?
2.- When I put an indicator in the Block Diagram I always get it in his "icon form".
How can I change this preset option so when I change a constant to an indicator I get it in its "not icon form"?
3.- I get trouble with saving different Vi's that use the same subVI's. How should I save different versions
so that the changes of the subVI's don't affect them all simultaneously?
01-09-2008 03:13 AM
I don't currently have access to 7.1, so I can't look at the code. If you use File>>Save With Options>>Save For Previous and save it to 7.0, I can look at it.
Generally, the standard says that by default, you should round a number ending in 5 to the nearest even integer, so 17.5 should be rounded to 18. I'm not sure how you got the 20.
LabVIEW has a Round to -INF primitive which will always round down. I assume that the formula node has a similar function.
As for the attachment, the forum has a bug where if you preview your post, the attachment is lost.
01-09-2008 05:53 PM
01-09-2008 11:25 PM
01-10-2008 02:32 AM
This seems fine to me.
The first problem is that your indicator labels are different from the variables they display, which is a bit confusion.
The second thing is the point about rounding integers. I'm not aware of any algorithms for rounding integers, but I have no real experience with other languages. I take that other languages automatically truncate the fractional part?
Even so, you wouldn't get 17, because when you do this (int E=7/2;) you would get 3, which multiplied by 5 is 15. I would only agree with Ton's assesment that this is a bug if we accept that LV must truncate.
In any case, the formula node doesn't appear to have an official explanation. It says that it has a syntax similar to C, but it doesn't say it's ANSI C compliant. If you postulate that the formula node converts fractional integers to floats, the behavior here is completely consistent, and the only thing which might be considered buggy is that it works differently from other languages.
I didn't really understand what you described. You might wish to start a thread here with some more details about it.
To the strange behaviour, about blocking the insertion of text, have you some hint?---
01-10-2008 01:38 PM
A bit confusing?
@tst wrote:
This seems fine to me.
The first problem is that your indicator labels are different from the variables they display, which is a bit confusion.