Why Would I Want to Turn Off Multithreading in LabVIEW?
Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Base Development System
Why would I want to turn off multithreading in LabVIEW?
There are two reasons why you would want to turn off multithreading:
Today multithreading is turned off largely for debugging VIs that crash for no reason. VIs that use ActiveX features or dlls that are incorrectly identified as threadsafe can crash because the ActiveX features or the dll corrupted the computer's memory. If turning off multithreading makes the VI stable, then your focus can be placed on these parts of the code. If you have access to the source code of the dll or ActiveX components, you can make the corrections yourself. If the dll or ActiveX components are from a third party, then the dlls can be set to run in the user interface thread, but the ActiveX components may require that LabVIEW not be restored to multithreading mode.
You can turn off multithreading by opening LabVIEW and going to Tools»Options»Performance and Disk»Run with Multiple Threads. You will have to restart LabVIEW in order for the changes to take effect.
In LabVIEW 8.2, the Performance and Disk tab in the Options dialog box no longer exists. To turn off multithreading you have to manually add an entry into the LabVIEW .ini file. Add ESys.StdNParallel=0 to the .ini file to disable multithreading in LabVIEW.
KnowledgeBase DIRECT-3S8R24: If I Use Multithreading, Will My Application Run Faster?
KnowledgeBase DIRECT-3S8R7R: What is the Difference Between Multithreading and Multiprocessing?
Report Date: 03/03/1998
Last Updated: 12/20/2011
Document ID: DIRECT-3S8R9F