The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problems with Data_sum function in Origin 8.1
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

malkovich

Germany
14 Posts

Posted - 01/26/2010 :  08:27:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1G and Service Release SR1 (Select Help-->About Origin):
Operating System: Windows XP SR3

In the last days I changed to Origin 8.1G SR1 and was supprised that one of my OriginC scripts is not working anymore. The problem seems to be the function "Data_sum". I use it in the following way:


[...]
			// STATISTICS --------------------------
			BasicStats stat_V, stat_J, stat_FF, stat_Eta;
			int iBest;
			int numRows;
		
			// UPSWEEP ------------------------------
						
						// Perform column statistics on worksheet
		
						if( !Data_sum(&dsJscUp, &stat_J) )
						{
							log_file_text.Format("Error: While performing current statistics on upsweep worksheet\n");
							WriteUserLogFile(log_file_text, TRUE);
							return;
						}
						if( !Data_sum(&dsVocUp, &stat_V) )
						{
							log_file_text.Format("Error: While performing voltage statistics on upsweep worksheet\n");
							WriteUserLogFile(log_file_text, TRUE);
							return;
						}
						if( !Data_sum(&dsFFUp, &stat_FF) )
						{
							log_file_text.Format("Error: While performing FF statistics on upsweep worksheet\n");
							WriteUserLogFile(log_file_text, TRUE);
							return;
						}
						if( !Data_sum(&dsEtaUp, &stat_Eta) )
						{
							log_file_text.Format("Error: While performing efficiency statistics on upsweep worksheet\n");
							WriteUserLogFile(log_file_text, TRUE);
							return;
						}
[...]


When it is executed Data_sum returns FALSE and I get the first error message "Error: While performing current statistics on upsweep worksheet".

When I switch back to Origin 8G SR6 the function works properly.
Is it a bug in Origin 8.1 or do I have to change something of the code?

Thanks in advance.

Echo_Chu

China
Posts

Posted - 01/27/2010 :  06:02:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi, Hans,

Thanks for reporting the problem. This is a bug in Origin 8.1. We also found it and fixed it in our in-house build. The fix will be available in Origin 8.1 SR2 for user.

Echo
OriginLab Corp.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000