 GReaper
		
			GReaper
		
		
		
		
		
		
		
		
	
			04-23-2007 10:49 AM
04-23-2007 10:53 AM
 PaulG.
		
			PaulG.
		
		
		
		
		
		
		
		
	
			04-23-2007 11:08 AM
 The only problem with your solution is that the use of globals ALWAYS (the way I understand it) involves going through the GUI thread, effecting performance. Could you not create a typedef control/constant with the wanted values set to default? This way you would use the constant and never have to use a global - ever.
 The only problem with your solution is that the use of globals ALWAYS (the way I understand it) involves going through the GUI thread, effecting performance. Could you not create a typedef control/constant with the wanted values set to default? This way you would use the constant and never have to use a global - ever. Ben
		
			Ben
		
		
		 
		
		
		
		
		
	
			04-23-2007 11:14 AM
 
  Tomi_Maila
		
			Tomi_Maila
		
		
		
		
		
		
		
		
	
			04-23-2007 11:47 AM
 crelf
		
			crelf
		
		
		 
		
		
		
		
		
	
			04-23-2007 12:31 PM
This has been discussed several times before (for example, here and here), and whilst the quasi-official word is that they don't execute in the UI thread, I still don't beleive it - no one has been able to tell me when this behaviour chaged (I know that they were in the UI as late as LabVIEW 6.1.1). Call me a skeptic, but I need a link to an official release note to beleive it. As far as I understand it, this snippet from NI's website (from an article called "VI Execution Speed") still suggests that thread swapping occurs:
PaulG wrote; "The only problem with your solution is that the use of globals ALWAYS (the way I understand it) involves going through the GUI thread, effecting performance."Ben wrote: "False."
 Ben
		
			Ben
		
		
		 
		
		
		
		
		
	
			04-23-2007 12:48 PM
Hi Chris,
I have to keep reminding myslef what executes where and under which version.
Reply # 35 of the NI link brings it all together in the context of history.
So I still think the answer is "False".
Ben
 shoneill
		
			shoneill
		
		
		
		
		
		
		
		
	
			04-23-2007 12:51 PM
 Albert.Geven
		
			Albert.Geven
		
		
		 
		
		
		
		
		
	
			04-23-2007 12:53 PM
 johnsold
		
			johnsold
		
		
		
		
		
		
		
		
	
			04-23-2007 01:14 PM