03-31-2010 02:37 PM
I'm unsure, but I think that this might be a BUG that was reported. When I first read the original question, it hit me, but I can't recall any other details. Most likely it was a post here in the forum that I read which reported the bug.
So try a search here as well as at the bug-fix page.
Felix
03-31-2010 02:56 PM
That looks like a bug.
If you probe the wire, is it passing the correct value?
Some time the execution hightlight gets it wrong.
Ben
03-31-2010 02:59 PM - edited 03-31-2010 03:02 PM
One thing for sure, it is not a race condition. A constant should never change. You can't write to a constant. I would do what Ben suggested, probe the wire to see if the value changes while debugging. It could be that the string on the constant icon is being incorrectly changed, but the wire has the correct value. Any way, this seems like a bug and should be reported to NI.
Another suggestion is to wire an indicator to the enum constant that is changing. Look at the indicator on the front panel while debugging. Also look at the indicator while not debugging, running normal. Is it the debugging mode (step into, highlite execution, etc) that is causing a problem? Does it work correctly when running in normal mode?
03-31-2010 03:49 PM
Apart from informing NI about the bug, we should still try to make the code working..
One thing we could do is to test it in newer versions, so youwould at least know if an upgrade would help you. So it would be nice if you could post the code (We only need code that reproduces the bug).
I actually also have one suspect that might cause the bug, that is the search and replace patter function.
Good luck with it.
Felix
03-31-2010 04:08 PM
04-01-2010 11:22 AM
Good Morning,
I have been looking over what is happening to the front panel with the tabs and have found something I want to pass on to you. When I'm in edit mode on the front panel I only see 5 of the 7 panels and the two that are missing can be brought to the front by right click on the tab outline and click on 'Goto Page' "Main" which is the first and it is dark gray along with the second tab "CH1". Also when you view them they are one top of each other and not side by side. I have attached screen shots of this so you can review. Let me know if this is also part of the bug you have read about.
The second thing I have noticed is this. If I put a probe on the enum line that input the to the property node I get the correct tab being sent to the property but the "Main" panel is dark gray. I can then select the view all register and I get the register tab in light gray once I try to return to the front panel I can only get the light gray panels and the enum changes to "CH2".
Not sure if there is a fix for this.
Thanks for all your help,
Gary
04-01-2010 03:36 PM
Hello,
I have taken a look at the "this bug" and have tried to fix they discuss in it but that doesn't work for me. If I recreate the ENUM constant as soon as I generate the constant it flips over to the CH2 selection as it does in the program. Once I create it I have to change it back to Main.
Is the only fix for this problem is to update the version of LV from my current 8.0?
Gary
04-05-2010 03:29 PM
Hello Felix,
Just to let you know I have the problem fixed. Looking over the information in the "this bug" and here is what I did. I first removed all tab constants I had in the program. Then I removed all item on the tab pages (one at a time) that where giving me problems "Main, CH1, Misc, & Settings" then I deleted that page from the tab list and then regenerated the page and moved everything back. Rename the page back to the correct name I had used earlier.
Once I did that and regenerated the constant it would create the constant with the first page name showing which is what it wasn't doing before. Before the regeneration of the constant would cause the constant to change to the third page CH2 tab instead of the "Main" first page. I'm not sure if this is the fix you were trying to get me to do but it is what worked for me.
Thanks again for all you help.
Gary Tyrna