06-12-2018 11:48 PM
Hello,
I wonder if this is an expected thing or not. Scenario: open a VI, go to the front panel. Place a TAB control into it. Make it a type definition. This is a common scenario, because if later you change pages, then you do not need to remake your Tab constants in your BD.
Ok, now place an object into your TAB control. Like a numeric or boolean, etc. Right click, and select "Change to array". This is a no op! No warning, no msg, nothing. If you make an array outside, of course it works, you can pull the array into the Tab control page.
Is this expected behaviour? For example, when we deal with a type definition cluster, the deal is simple: you have to open the type definition, and edit elements there. But a TAB control is a different thing. I would expect that we can change between element/array types right in the Tab page...
Tested in LV2017 SP1, LV2018.
06-13-2018 01:32 AM
My experiences of using Tab controls have included all sorts of strange behaviours - so much so that I just avoid using them now. I do like the enum behaviour. I would not say that is expected behaviour at all, but perhaps you can expect the unexpected?
06-13-2018 01:34 AM - edited 06-13-2018 01:37 AM
Seems to work fine in LabVIEW 2018. (tried with modern and system tab).
Can you attach some example code.
06-13-2018 01:50 AM - edited 06-13-2018 01:51 AM
Odd.
You can add a control to the tab typedef itself and flip that between array and element, but of course that is an invalid control.
The first time I tried it I disconnected the tab from typedef with a boolean still on it, moved the boolean off and tried to convert to array. It momentarily blinked to an array but reverted to an element ??
On closing LV and restarting I got the error message dialog indicating an error had occurred.
Doesn't seem right ...
Tested with LV2017
06-13-2018 02:00 AM
@altenbach wrote:
Seems to work fine in LabVIEW 2018. (tried with modern and system tab).
Can you attach some example code.
Did you make the Tab control a typdef?
Simple test ctrl and VI attached.
06-13-2018 02:05 AM
Tried your code Blokk ... which was identical to mine and no, it doesn't work.
I wouldn't call this expected behaviour ...
06-13-2018 02:29 AM
@Blokk wrote:Did you make the Tab control a typdef?
Simple test ctrl and VI attached.
Yes, I made the tab a typedef. Converting a scalar to array worked both on the front panel and even in the control editor.
(Sorry, not near a computer, will look at your vi tomorrow).
06-13-2018 04:34 AM
@altenbach wrote:
@Blokk wrote:Did you make the Tab control a typdef?
Simple test ctrl and VI attached.
Yes, I made the tab a typedef. Converting a scalar to array worked both on the front panel and even in the control editor.
(Sorry, not near a computer, will look at your vi tomorrow).
Strange! I mean it is strange it works for you, and does not work for 2 of us. Please others: could you test this behavior? 🙂
06-13-2018 04:52 AM
LV 2017: Replace Array on the numeric causes the Control to briefly flicker and move, then return back to its position and being a numeric. It's like the operation is reverted during the process.
LV 2016: Same as LV2017, except that the flickering is slower and I can see that the Array is created and positioned Before reverting back to a numeric.
06-13-2018 09:37 AM
@Blokk wrote:
Strange! I mean it is strange it works for you, and does not work for 2 of us. Please others: could you test this behavior? 🙂
OK if I (LabVIEW 2018):
-----> making the scalar to an array still works fine.
If I now continue... :
-----> making a scalar to an array no longer works!.
Obviously, there is something going on that deserves an investigation.