From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Error while combining VIs

I have three separate VIs (attached along with).The functionality of each vi is as follows:-


DOTNET Desktop Movie.llb:-This vi is used for screen capture at a specified frame rate.On execution,a .avi file is created 


data will aquire some physiological signals and store it in a .lvm file


Mouse-click:-This will record each mouse click along with the time of click on the screen.


All the VIs are working fine individually but when I combine all three into one VI(all 3 put inside one while loop),the Mouse-click VI randomly misses out on some mouse clicks.


Can anyone tell me what is the error?

Download All
0 Kudos
Message 1 of 5

The integrated VI which is showing the error is attached along with.

0 Kudos
Message 2 of 5

Since you are polling the mouse, any delays in the loop will open up the possibility of missing clicks.  And the screen capture has delays in it.  I assume the data acquisition is also introducing some delays.


The simple solution is to just have each VI be in their own loop.  This way they run independently from everybody else.


You should also look into using an Event Structure to capture the mouse clicks.  It will be a lot more efficient and does not poll the mouse, using up lots of CPU.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5

If each VI is put in separate loop,then I will have to stop the execution of each separately.I want the execution of all VI to stop simultaneously once I press a STOP button.

0 Kudos
Message 4 of 5


    If your are goin to run parallel loops then you can stop it with the help of following method


go throgh the link to stop parallel while loops with single click...


hope this helps 


Kudos Are Welcome 😄


Certified-LabVIEW-Associate-Dev_rgb (1).jpg

Certified LabVIEW Developer
Best LabVIEW Programmer @NIDAYS 2015
0 Kudos
Message 5 of 5