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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Problems with Data_sum function in Origin 8.1

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
malkovich Posted - 01/26/2010 : 08:27:48 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
Echo_Chu Posted - 01/27/2010 : 06:02:11 AM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000