04-15-2011 10:58 AM
In this thread Sunflower brings one of the "Bite you" scenarios regarding setting an AE as re-entrant and getting away with it... for now.
Ben
04-19-2011 08:52 AM
Casting an int to an Enum (strict).
Who thought it would be so tricky? Turns out that although I had expected each of the last 4 methods to be functionally equvellent I was wrong.
I guess you really do learn something new every day.
04-19-2011 09:13 AM
04-19-2011 10:01 AM
This NI document explains typecasting an integer into an enum.
04-19-2011 10:25 AM
Just when I thought I knew something about LabVIEW!
Thanks Jim! I wondered WHY- now I know.
04-19-2011 11:28 AM
04-19-2011 01:16 PM
Here is one that I also consider bad programming practice.
Setting a typedef enum as Use Default If Unwired always returns the FIRST (lowest number) in the enum. If you right click and create a constant, you will get whichever state was set to Make Current Value Default. This may be different from what the output is when left unwired. The default state is not shown and you have to look at the typedef to find out which will be the output.
Related - if someone rearranges the typedef enum (moves some other text to the first element) then the output of the unwired terminal changes. The state when you create a constant does not.
I think I would prefer a "Create Constant in Unwired Cases" option to use here.
Rob
05-06-2011 08:50 AM
You have a value changed event for a combo box with Allow Undefined Strings deselected. You try to enter an invalid string into the combo box the system beeps an error at you and the control is not updated. As soon as you click somewhere else on the FP but the value changed event fires anyway. If you press escape prior to clicking away from the control the event is not fired.
Bug or intended behavior?
See this thread for more info.
05-06-2011 09:05 AM
@SteveChandler wrote:
See this thread for more info.
Grr... It is early and I ran out of time to edit. The link points to the right thread but the wrong post. Just scroll up and see the first post. Anyway...
05-12-2011 03:08 PM
When working with the 3D Graph in the 3D Picture, I got bit.
A is not equal to B
Since I cut-n-pasted from an example I ASSumed that the wire was run behind the structure and worked with the value from "A" right up until I tested it.
Please note the tiny arrows indicating an Input AND an Output.
Can anyone else recall seeing another one these anywhere else?
Ben