So from your description that is fails when running offline/reprocessing I am wondering if the register it is trying to call is that which is currently active, and it does so before it closes out and moves to the next sample, and that is why it works online during a run. I have worked with the macros in chemstation but not quite that deeply into calling the registers. If ObjHdrType(chromreg,"SignalDesc")=99ĭAIN_AllSignals$ = DAIN_AllSignals$+"|"+val$(i)+": "+ObjHdrText$(chromreg,"Title")ĭAIN_AllSignals$ = DAIN_AllSignals$+"|"+val$(i)+": chromreg has no title"ĭAIN_AllSignals$ = DAIN_AllSignals$+"|"+val$(i)+": "+ObjHdrText$(chromreg,"SignalDesc")ĭAIN_AllSignals$ = DAIN_AllSignals$ĭAIN_SelSignal$ = DAIN_AllSignals$ If DAIN_YAxis = 1 DAIN_YAxis = 0 else DAIN_YAxis = 1 endif
![agilent chemstation user contributed library contents agilent chemstation user contributed library contents](https://docplayer.net/docs-images/43/17330680/images/page_3.jpg)
If DAIN_TimeAxis = 1 DAIN_TimeAxis = 0 else DAIN_TimeAxis = 1 endif Here is where it fails when trying to execute the next line(s) but only when running in an offline/reprocessing session.ĭAIN_TimeAxis = TabVal(_config,DaInChrom, 1,ColHidden)ĭAIN_YAxis = TabVal(_config,DaInChrom, 1,ColHidden) Generate error ,"Do a ""Load Signal."" before data interchange" Local Result,i,j,NOfSignals,NOfCol,TitleBar$,\ĭAIN_SelSignal$,DAIN_AllSignals$,DAIN_SelDest$,\ĭAIN_AllDests$, DAIN_TimeAxis, DAIN_YAxis, \ What is that parameter or system variable/ Also I'm confused by the, DaInChrom parameter in the TABVal command(s). I'm not well versed in using the _Config registers and especially the not well documented _config register that contains the control tables.
AGILENT CHEMSTATION USER CONTRIBUTED LIBRARY CONTENTS CODE
I have found other code online for creating a CSV file of the raw time/detector data and it does work in offline mode BUT it takes forever (minutes) for the CSV file to be created whereas this macro does it almost instantly. I’m only including the code from the start to shortly after where the error occurs (note I've added a comment where the error occurs). The error shown is “parameter 2, table doesn’t exist”. Unfortunately it has NEVER worked in an offline/reprocessing session but we would like it to. Our lab has used this code for many years and it works fine as long as it is used in an online session of Chemstation. Overall it is a fairly complex set of macros that create a CSV file of the raw data for a GC run (time and detector response).
![agilent chemstation user contributed library contents agilent chemstation user contributed library contents](https://www.mdpi.com/molecules/molecules-26-05425/article_deploy/html/images/molecules-26-05425-g001.png)
First off this is not my code and I don’t know who wrote it. I’m wondering if someone could comment/help on some macro code.