06-11-2023 10:48 AM - edited 06-11-2023 11:42 AM
Hello all,
For those who attended my session and want to try the examples yourself, I have attached the VIs (LV 2019).
In case if you have any explanation for the behavior (why the wait function executes in sequence - not parallel in the loop, when the content is replaced with a sub VI), feel free to post your reply here & tag me.
Thanks,
Senthil
06-12-2023 01:56 AM
LabVIEW version 2016 & 2018 attached
06-12-2023 02:06 AM
Thank you Kumar for posting VIs in other LV versions. Let me know if you have noticed any difference in behavior in other versions.
06-15-2023 12:56 AM
Unfortunately i missed this session. When the recording of the session is available?
06-20-2023 02:25 AM
Hello All,
My example VIs on Web Application are available here -
Regards,
Shubhajit Bagchi
06-20-2023 06:03 PM - edited 06-20-2023 06:05 PM
Hi Senthil,
I recollect one similar code with wire branching. They have provided explanation about how compiler makes decision about which branch getting executed first based on memory management. It is available in LabVIEW Help document under memory management.
The example code contains
1) Numeric Array – an Incoming Array (of size 1000) of numbers (double data type = 8 bytes).
2) two nodes directly connected to the Numeric Array
a) Index node to pick a single element from the array.
b) Replace an element in the incoming array.
Ideally, the branching of wire will copy, so it should allocate an additional 8k of memory. But the LabVIEW compiler will optimize the memory allocation by fixing the order of execution among the branches of wire.
If both branch has nodes like delete array or replace array, LabVIEW will be forced to duplicate the incoming array as it cannot reuse memory by fixing the order of execution. In that case, the order of execution can be any order.
I think it is a similar way the complier decides the order of execution when there is a subVI that you showed during the event.
Please find the link about how LabVIEW performs bottom up (subvis to top level vis) for these optimizations.
அன்புடன்
அனிச்பிரபு தி.
முதல் இந்திய ஆய்வுமெகபொப சிற்பி
சோதனைநிறுத்தம் சிற்பி
மற்ற சான்றிதழ்கள்
யாதும் ஊரே! யாவரும் கேளிர்!!
08-04-2023 09:36 PM
Hi sir
please share meeting video on YouTube