07-20-2006 11:23 AM
07-20-2006 12:42 PM - edited 07-20-2006 12:42 PM
What your doing is legal but will block for the entire period in which the loop for (i=0; i<numberReadings; i++) is executing. It is simple but not very efficient. You would be better off if you set up your code to block only at the ibwrt and ibrd pair.
There are a number of links on cvi mulithreading at http://zone.ni.com/devzone/devzone.nsf/webcategories/FE30FBB1046AEFBE862567A900587DAC
in particular the link to Multithreading in LabWindows/CVI has a lot of good information on protecting variables and other issues you can run into when multithreading.
Good Luck
Message Edited by mvr on 07-20-2006 12:45 PM
07-20-2006 12:49 PM
07-20-2006 12:58 PM