12-02-2015 03:30 AM
Hi,
I have a strange bug that really made me struggle during development. Normally indicators in a SubVI (non-reentrant execution) update when it is called/used.
I was able to reproduce a simple example showing what I mean. I guess the picture will explain it better, but also attached the example project.
What I expected to happen when I run main, is that all controllers and indicators should update wehn it was called by main.vi. But here both arrays of string do not show its content, just empty, and this is not what it was when it run.
Enyone know why it does not work or is there a setting somewhere to make labview not hide the values?
12-02-2015 09:02 AM
Remove the build array and transpose VIs. They are not necessary.
12-02-2015 09:04 AM
Oh and you don't need the row index on the Replace Array Subset.
12-02-2015 09:23 AM
Nevermind my comments. I see what you are saying now.
I think the issue you are seeing may have something to do with this thread.
https://forums.ni.com/t5/LabVIEW/Bug-in-Build-Array-function/td-p/71069
12-02-2015 10:25 AM
The controls/indicators work as expected if you just remove the Transpose 2D Array, but my suggestions make more sense than your code AND the FP reflects the data. This makes no sense to me, just like most of the rest of LabVIEW. 😄
12-02-2015 10:59 AM
Yes, I can reproduce it on my setup too.
I agree with the above posters that the method you are using to add a row of doubles to a column of strings isn't the best way to do it, but it should (and does) work. However I have no idea why the controls would not update on the SubVI with one method but they do with the other. Bizarre, I'd call it bug-worthy.
12-03-2015 08:34 AM - edited 12-03-2015 08:39 AM
@jcarmody wrote:
The controls/indicators work as expected if you just remove the Transpose 2D Array, but my suggestions make more sense than your code AND the FP reflects the data. This makes no sense to me, just like most of the rest of LabVIEW. 😄
Please understand that this example is in the posted example simplified with fixed indexes, which is not always the case. I may want replace a section not starting from (0,1).
I still do not see why LabVIEW should not update a clearly not empty control/indicator.
12-03-2015 08:36 AM - edited 12-03-2015 08:39 AM
@Kyle97330 wrote:
Yes, I can reproduce it on my setup too.
I agree with the above posters that the method you are using to add a row of doubles to a column of strings isn't the best way to do it, but it should (and does) work. However I have no idea why the controls would not update on the SubVI with one method but they do with the other. Bizarre, I'd call it bug-worthy.
Good, I have seen in on all computers I have tested on. It is mainly a loss/confusion during development/debugging, but still strange and it must be a bug yes..
12-03-2015 08:38 AM - edited 12-03-2015 08:39 AM
@aputman wrote:
Nevermind my comments. I see what you are saying now.
I think the issue you are seeing may have something to do with this thread.
https://forums.ni.com/t5/LabVIEW/Bug-in-Build-Array-function/td-p/71069
I don't think it is the same as this is not just a bug in the view, but how things is done. My bug is only directed to the controls/indicators taht seems to be empty, but really is not when it runs.
12-08-2015 09:07 AM
Hi jacob,
Thanks for bringing this to our attention. A corrective action has already been filed and the issue is being looked at by R&D. It seems this problem is related to how the connector pane intereacts with a 2D array of strings alongside the replace array subset VI. It's quite specific but most definitely is an issue and I can assure you that we're looking to fix it in the future.
Best regards,