LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you disable "Run with Multiple Threads" in a standalone EXE

I have a program written in Labview 6.1.  After moving to a different hardware platform, my program has started crashing at the same point every time it is run.  I eventually found out that the cause of the crash is the fact that the new hardware has a dual core processor.  I confirmed this by disabling "Run with multiple threads" and now the program works fine.  What I need to know now is how to disable the same setting in a built EXE file, since as far as I know the "Run with multple threads" setting only affects execution in the Labview Dev environment.

Thanks for any help,
Dave
0 Kudos
Message 1 of 4
(2,898 Views)
try putting
 
ESys.StdNParallel=0
 
in the ini of your app's ini file.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,889 Views)
Thanks for the reply.  I was able to fix my problem by identifying the offending DLL calls that were being called concurrently and rearranging them to run in sequence.

To anyone else who has this problem, Ben's solution would probably work as well.  I found some small NI documentation for it here:
http://digital.ni.com/public.nsf/websearch/2F606AD236C606008625718E00561A62?OpenDocument
0 Kudos
Message 3 of 4
(2,883 Views)

Greg McKaskle once posted that using a non-reentrant (VI is NOT re-entrant) wrapper VI to make the calls to the dll will prevent simultaneous execution of the dll.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,880 Views)