Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
MylesKennedy
Posted - 01/19/2012 : 03:37:17 AM Dear Origin-Community,
I work with Origin 8.5.1 SR2 and have a strange problem. The LabTalk code, I wrote yesterday, worked perfectly. It still works on my collegues computer (same version, same SR) without any crash. At my computer, Origin crashes sometimes, but not every time and also not always at the same position from the code. I think the best way to attach the code. If I type AnzElem=1 or 2, everything is fine. For AnzElem=3, Origin crashes most of the time.
Can anyone help me fix this problem? I also tried to introduce different sections and combine them with an if-condition, but the problem still remains the same.
Thank you very much.
Here is my code:
[Main]
getn (Name der Probe) %%N (Name des exp. WS) %%V (Absorptionskante) %%O (Anzahl der Elemente) AnzElem (Informationen zur Probe); // Information Probe
itest=wks.maxrows; wks.nrows=itest; //Zählen der Spalten
col(1)[L]$="q"; col(1)[U]$="A"; col(2)[L]$="S(q)"; col(3)[L]$=strGew$+strT1$+strT1$; col(3)[C]$=strT1$+strT1$; //Benennung der Spalten
range rtest=[%(strExp$)]%(strExp$)!col(3)[1:itest]; rtest=1; //Gewichtungsfaktor=1
dlgPath path:=strLogPath$ title:="Pfad zur Ablage der Export-Datei" init:=strLogPath$; strLogLocation$ = strLogPath$ +"\" +strExp$ + ".dat"; type -gb strLogLocation$; type "$(itest)"; type %(strPr$); type -ge; expASC path:=strLogLocation$ overwrite:=1 longname:=0 units:=0 comment:=0; //Export Datei für RMC
}
// Abschnitt AnzElem=2
if (AnzElem==2) { getn (Elementsymbol der Komponente A) %%P (Elementsymbol der Komponente B) %%Q (f1 Komponente A) F1A (f2 Komponente A) F2A (f1 Komponente B) F1B (f2 Komponente B) F2B (Formfaktoren der Komponenten); //Abfrage Formfaktoren
getn (Molenbruch Komponete A) C1 (Molenbruch Komponente B) C2 (Molenbrueche der Komponenten); //Abfrage Molenbruch
dlgPath path:=strLogPath$ title:="Pfad zur Ablage der Export-Datei" init:=strLogPath$; strLogLocation$ = strLogPath$ +"\" +strExp$ + ".dat"; type -gb strLogLocation$; type "$(itest)"; type %(strPr$); type -ge; expASC path:=strLogLocation$ overwrite:=1 longname:=0 units:=0 comment:=0; //Export Datei für RMC
}
//Abschnitt AnzElem=3
if (AnzElem==3) { getn (Elementsymbol Komponente A) %%P (Elementsymbol Komponente B) %%Q (Elementsymbol Komponente C) %%S (Elementsymbole der Komponenten); //Abfrage Elementsymbole
getn (f1 Komponente A) F1A (f2 Komponente A) F2A (f1 Komponente B) F1B (f2 Komponente B) F2B (f1 Komponente C) F1C (f2 Komponente C) F2C (Formfaktoren der Komponenten); //Abfrage Formfaktoren
getn (Molenbruch Komponente A) C1 (Molenbruch Komponente B) C2 (Molenbruch Komponente C) C3 (Molenbrueche der Komponenten); //Abfrage Molenbrueche
dlgPath path:=strLogPath$ title:="Pfad zur Ablage der Export-Datei" init:=strLogPath$; strLogLocation$ = strLogPath$ +"\" +strExp$ + ".dat"; type -gb strLogLocation$; type "$(itest)"; type %(strPr$); type -ge; expASC path:=strLogLocation$ overwrite:=1 longname:=0 units:=0 comment:=0; //Export Datei für RMC
}
1 L A T E S T R E P L I E S (Newest First)
easwar
Posted - 01/23/2012 : 3:19:54 PM Hi,
It would be easier for us to check if you send relevant data files/OPJ etc associated with this code. Please send to tech support using the "Send File to Tech Support" link on top right of the forum page. You could zip up all your files into one file and upload. Then in your e-mail to tech, please refer to this post.