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.