Page 1 of 1

Is there a way to set default data channel in Chemstation?

Posted: Fri Jan 10, 2014 8:32 am
by vadzim
Hello,
I'm using Chemstation B.04.03-SP1 for LC analysis.
I have a method with 4 wavelengths. When I load a chromatogram for data analysis all 4 signals are displayed, so for my purposes I need to manually choose required data channel every time. Which is annoying.
Deleting other channels in 'signal details' is not an option, since it also wipes out existing calibrations. Creating different methods for data analysis for different wavelengths is also inconvenient.
So, is it possible to quickly set and change default signal, which would be displayed after loading a chromatogram (instead of 'all signals')?
Thank you in advance.

Re: Is there a way to set default data channel in Chemstatio

Posted: Fri Jan 10, 2014 9:55 am
by asm
When you load a chromatogram use "Full" then you should have an extra-section at the bottom right where you can choose your Signal you want to load. (This is the case at Chemstation Versions up to B.01.03, I hope in newer versions too.)

Re: Is there a way to set default data channel in Chemstatio

Posted: Fri Jan 10, 2014 10:36 am
by vadzim
I'm using full menu.
And you probably meant a drop-down list, which lets users to choose a signal. However, I need to choose from that list every time I load new chromatogram. What I want is ability to quickly set up which data channel to use by default without losing calibrations. For example: I have 254 nm in channel A, and 280 nm in channel B. I want to load, view and maybe integrate a bunch of chromatograms on 254 nm, than quickly change to 280 nm and do the same without excessive clicks.

Re: Is there a way to set default data channel in Chemstatio

Posted: Fri Jan 10, 2014 10:46 am
by asm
I made a snapshot:

Image

In the "Load Signal" Window you have when using "Full" at the bottom right side several Signals avaiable (measured).

If you find another way to automatically load a single signal please let me know how it works. I want it too. :P

Re: Is there a way to set default data channel in Chemstatio

Posted: Fri Jan 10, 2014 12:49 pm
by vadzim
Alas, what you described involves deleting of calibration and integrated peaks, which is counterproductive, to say the least.

Re: Is there a way to set default data channel in Chemstatio

Posted: Fri Jan 10, 2014 4:48 pm
by Consumer Products Guy
Under View (I think, it's in another room), there are Options or Preferences. Here one can choose whether to load all or load using Signal Details, so one can just select which signal there, and just one will load. The signal Details will be saved as part of the method if desired, but that Option/Preference will stay until it's changed.

Re: Is there a way to set default data channel in Chemstatio

Posted: Tue Jan 21, 2014 6:46 pm
by nimbi63
You can use a macro, then call the macro in a pre integration hook.
Lines below starting with an exclamation mark are comments, without the !! are commands.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Macro to load the specified signal !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Example macro to show use of the preinteg HOOK register !!
!! load the specified signal. Method dependencies are user's !!
!! responsibility. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Name Load_Sig_Hook

!method dependencies need to be added here
!change the line below to match your actual method name
IF _METHFILE$ = "DEMOCAL1.M"
! Load the signal
! NOTE: Use LOADCHRO.MAC from the user contributed library to determine the
! parameters to be used below. RT=retention time, WL=wavelength, BW=bandwidth
! LoadChrom ,RTFrom:RTTo, (WL - BW/2) : (WL + BW/2), \
! (RefWL - RefBW/2) : (RefWL + RefBW/2), ChromReg

! The active line that follows loads sig 268 [BW=10] ref 360 [BW=80]
! over the RT range 0.00 to 29.97 from the previously loaded DAD signal
! in chromreg just prior to integration.

! NOTE: Automatic integration should be turned on in the load signal
! dialog box.

LoadChrom ,0:29.97, 263:273, 220:400, ChromReg

!add more signals here if desired
!LoadChrom ,0:29.97, 223:233, 220:400, ChromReg

! Update display

Drawsignals

EndIf
!add more methods below
!IF _METHFILE$ = "DEMOCAL2.M"
!LoadChrom ,0:29.97, 263:273, 220:400, ChromReg
!Drawsignals

!EndIf

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Return control to system !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Return

EndMacro


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! INSTALLATION macro to create and/or append commands to load !!
!! macro LOAD_SIG.MAC to USER.MAC file. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

name Install_Load_Sig
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Append Macro commands to file USER.MAC to !!
!! add automatic loading of macro LOAD_SIG.MAC!!
!! during Chemstation initialization !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Local file_path$, file_name$
local ret_var, export_status, export_type


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Update USER.MAC with selections !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Open _EXEPATH$ + "USER.MAC" for append as #101
Print #101, ""
Print #101, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Print #101, "!! Section Added By LOAD_SIG.MAC !!"
Print #101, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Print #101, "Macro "+Chr$(34)+"LOAD_SIG.MAC"+Chr$(34)
Print #101, "SETHOOK "+Chr$(34)+"PreInteg"+Chr$(34)+","\
+Chr$(34)+"Load_Sig_Hook"+Chr$(34)
Print #101, "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Close #101
ret_var = Alert("Load_Sig.MAC installed for automatic loading - Restart Your ChemStation Sessions Now",3,"INSTALLATION COMPLETED")

Return

EndMacro