I don't understand the question you are asking. You attached someone else's code from another Message on this Forum, but didn't provide a link to the Message so that we could understand the task that the Original Poster was trying to solve. The "controls" and some of the information are in French (which I studied in high school, but that was a few years ago) and I still can't figure out the code's meaning.
Since I don't understand the code that you are using instead of posting the code you are trying to fix (because it is "confidential"), how do you expect me, or anyone else reading this Post of yours, to understand what you are asking? At least point us to the original Forum Message ...
Forgive me, Lena, but (a) you are working with "confidential code" (probably on a "confidential project"), and (b) you seem to be something of a beginner in LabVIEW Programming (and perhaps in programming, in general), so my advice would be to forget about this problem for a few weeks (its "bad logic" and "lack of design and thought" will only delay your learning how to logically approach a programming problem and start to solve it). I suggest you begin with the LabVIEW Learning Center on the first page of this Forum.