07-06-2025 02:16 PM
Hello everyone,
I'm currently integrating Vision Builder AI (VBAI) with LabVIEW using a network shared variable.
In VBAI, I update the variable just before the end of each inspection. Then, in LabVIEW, I read this variable to retrieve the inspection result.
However, I'm experiencing a delay:
LabVIEW consistently reads the value from the previous inspection, not the current one — as if the variable update hasn't propagated in time.
Has anyone encountered a similar issue?
Any advice on how to ensure LabVIEW reads the latest value right after the inspection ends?
Thanks in advance for your help!
Solved! Go to Solution.
07-07-2025 01:23 AM
Hi Salim,
@Salim28 wrote:
In VBAI, I update the variable just before the end of each inspection. Then, in LabVIEW, I read this variable to retrieve the inspection result.
LabVIEW consistently reads the value from the previous inspection, not the current one — as if the variable update hasn't propagated in time.
Any advice on how to ensure LabVIEW reads the latest value right after the inspection ends?
07-07-2025 02:15 AM
Good morning Sir,
Thank you for your response. Below is a diagram explaining how the variable is configured and created. I then use this variable in LabVIEW to read its value.
07-07-2025 02:43 AM
07-07-2025 03:14 AM
Hello again sir,
I just call the variable inside the while loop, that's it."
07-07-2025 04:58 AM
Hi Salim,
I repeat from my first message: WHEN do you read the NSV? Is there a race condition?
Race condition: two processes accessing the same resource (here: your NSV) in a non-syncronized way.
How does process2 (LabVIEW-VI) know that process1 (VBAI) already updated the NSV?
You can check for updated values of the NSV by reading their "last written" timestamp!
07-07-2025
05:22 AM
- last edited on
07-07-2025
07:44 PM
by
robertogni
Hello my friend,
Would it be possible for you to share your email or LinkedIn profile so I can send you a Meet link to show you the problem in real time? Unfortunately, the program is restricted and cannot be shared or displayed publicly online.
Thank you very much for your understanding.
07-07-2025 05:44 AM - edited 07-07-2025 05:44 AM
07-07-2025 07:14 AM
Hello everyone,
I am currently working on a Vision Builder AI project in which I have created a system variable named Result Inspection
. This variable is visible in NI Distributed System Manager under the path:
localhost → Vision Builder 2023 → Result Inspection
I would like to read this shared variable directly in LabVIEW in order to process the inspection results.
How to properly access or link this Vision Builder AI system variable in LabVIEW?
Any additional components or steps I might be missing?
Thank you in advance for your help!
Best regards,
Salim
07-07-2025 07:58 AM - edited 07-07-2025 07:59 AM
Hi Salim,
@Salim28 wrote:
I would like to read this shared variable directly in LabVIEW in order to process the inspection results.
How to properly access or link this Vision Builder AI system variable in LabVIEW?
Any additional components or steps I might be missing?
Please keep related discussion in one place!
Again you forgot to provide your LabVIEW code: how should we suggest "additional components/steps" when we don't know the current state?
You can also access NSVs programmatically:
Just provide the network path as shown in DSM…