08-28-2025 10:34 AM - edited 08-28-2025 10:51 AM
08-28-2025 10:38 AM - edited 08-28-2025 10:39 AM
Many here cannot open Vis saved in LabVIEW 2025. Please do a "save for previous", (2020 or below) and attach again. Thanks!
When discussing mainVi and subVI, it would help to attach simplified versions of both.
Make sure all controls have typical default values.
08-28-2025 10:54 AM
Thanks for the notes! I just uploaded the 2018 version. I hope is clear now:
08-28-2025 10:58 AM
Your Vis are still in 2025. "Save for previous" will NOT overwrite your VIs, but create a new folder next to your VIs Zip that folder and attach here.
08-28-2025 11:17 AM
Probably the easiest thing to do is get rid of the while loop. The code happening outside the subVI will provide the looping (if needed).
You just go into the subVI, execute the case based on what the inputs are, come out, and if you need to go back in, go back.
08-28-2025 02:01 PM - edited 08-28-2025 02:02 PM
I tried this before, because I had a similar issue with a photodetector. I used in that way because I need monitoring both. But, for some reason this don't work. I will try again, maybe is the input. 🫠
08-28-2025 02:04 PM
I will do that tomorrow that I have access to the computer in the lab again. Thanks for the notification
08-29-2025 03:28 AM
08-29-2025 03:49 PM
The only way I can think of implementing your idea, would be having a parallel loop with the sub-vi want to run.
This way the main vi does not stop waiting the sub-vi to finish execution to continue (as you already experience).
ONe idea is using the template Producer/Consumer, your current main vi is the producer. whenever you want to trigger the subvi, it sends a message to the queue messuge handler.
The consumer loop, keeps looking into the queue message. WHneever it sees and finds the appropriate message, it executes the subvi. Note that the subvi runs on the Consumer loop, while the Main loops keeps running with no dependence from the sub-vi to finish.
09-01-2025 04:27 AM
Thank you for your response!, I will try this new aproach and see if it works for my pourpuse,