LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Appear to lose connection with the Shared Variable Engine

The functions I was referring to earlier were the DMM and Oscilloscope VIs.  I have since removed these from immediate execution and only have them execute upon a user button press.  This has improved performance somewhat, but not eliminated the issue.  Other things that seem to improve performance: 

  • Inserting 1ms Waits on every iteration of every FOR or WHILE loop
  • Removing the portion of code that periodically reenables and then disables the screen refresh (my original intent was to prevent too much drawing as many indicators would update)
  • On the event case structure, changing each case to Lock Screen Until Case Has Completed Execution.

 

Dan

0 Kudos
Message 21 of 22
(532 Views)
thisisnotadream-

All of the things you posted will help the processor work function better.  Is it possible for you to post a smaller version of your code that recreates this?  The whole code will not be nearly as beneficial for troubleshooting as the smallest version that represents what you are seeing.
Regards,

Mike S
NI AE
0 Kudos
Message 22 of 22
(512 Views)