01-18-2018 10:20 AM - edited 01-18-2018 10:22 AM
A colleague just came, and he told me he discovered a strange behavior when he played with OpenG config file VIs, and he does not understand what is going on. Me neither 🙂 I reproduced the problem in a small VI. Note that, if I create a new VI, with EXACTLY the same functions inside, I do not see this issue! VI file/typdef cluster corrupted in this VI instance???
I attached a zip file which contains 3 files:
How to reproduce the problem (VI corruption/bug??):
What is THIS? 😄
01-18-2018 10:29 AM
To get this straight:
You delete the typedef from the BD, then you insert it again and it works?
I see two possibilities here:
1. Bug in LabView = Black Magic, nobody knows
2. also bug in LabView, but the new inserting of the Typedef causes the compiler to rerun. Let's assume it has been compiled last under LV16 or and is now used in the BD. It isnt compatible with LV17 for some black magic reason, but the recompiling causes it to work.
That would be my guesses.
01-18-2018 10:41 AM - edited 01-18-2018 10:43 AM
@LabViewTinkerer wrote:
To get this straight:
You delete the typedef from the BD, then you insert it again and it works?
Correct!
I see two possibilities here:
1. Bug in LabView = Black Magic, nobody knows
2. also bug in LabView, but the new inserting of the Typedef causes the compiler to rerun. Let's assume it has been compiled last under LV16 or and is now used in the BD. It isnt compatible with LV17 for some black magic reason, but the recompiling causes it to work.
The VI and the ctrl was from a project, also coming from LV 2017.
That would be my guesses.
I attach the original project zipped up. Recently I am tutoring a colleague, and told him to play with config files. He sent me his work for review, and he also asked me why the ini file write works, but the read back step not, despite I showed him some time ago how easy this operation using OpenG is...
edit: in my OP, I attached that sandbox folder, because I wanted to minimize file numbers, but keep the behavior. I simply copied out the ctrl and the Read ini VI, then disconnected them from the library, and linked the ctrl to the VI. So that was all what I did, nevertheless, the behavior also present in the original zip!