Data AcQuisition And Real-Time AnalysisScope - Spectrum - Spectrogram - Signal Generator
Software for Windows
Science with your Sound Card!
Contact us about
Save Spectrogram Palette
After you have created a palette you like, you can save it to a .PAL (or .PLT) file by clicking on this button. You may also want to save several intermediate steps if you are creating a complex palette, so you can return to a known point if subsequent steps don't turn out just right.
Note: If you installed Daqarta to a folder other than the default, palette files will have a .PLT extension instead of .PAL. Otherwise, the files and all operations are identical.
You may want to use different palettes for different Spectrogram applications. You may find that certain palettes look better on certain digital projectors or laptops, or with certain color printers. (Note that a GrayScale palette comes with Daqarta which you can load for use with black and white printers.)
Or you may want your results to be easily compared to others that used a certain palette. For example, many older spectrograms were made with special equipment that used thermal paper; spectrograms were black on a white background, with higher levels (more heat) corresponding to darker blacks. That's the inverse of the GrayScale palette, which is white at higher levels and fades down to black.
If you have made changes to a palette during a session but haven't saved it, you will be prompted to do so when you exit Daqarta.
The SavePAL= macro has no effect if any File Open or Save As dialog is already active.
SavePAL= without a name will open the Save As dialog showing all .PAL (or .PLT) files, with the default set to Sgram.
SavePAL="MyFile" will open the Save As dialog with the default name set to MyFile. (Note that quotes are needed around all filenames in macros.) If you accept this by hitting Enter or the Save button in that dialog, Daqarta will assume you want to save a file named MyFile.PAL. If that file already exists, you will be prompted to replace it.
After either of the above commands, you may use IF.Posn?f=0 to see if the user has hit Cancel to exit the Save As dialog instead of choosing a file name. This allows your macro to exit gracefully or take other action.
A.SavePAL="MyFile" will save MyFile.PAL directly, without any Save As dialog. Note that if the file already exists, it will be overwritten without any confirmation prompt.
Similarly, if the Macro Variable Var0 holds a value of 12, then SavePAL="Test"+Var0 will set a default file name of Test12. If you expect to use a large series of files, you can use SavePAL="Test"+Var0(3) (for example) to set the decimal format to 3 integer places to get Test012. This will allow proper sorting by file name.
You can also copy the current palette to a macro array (Buf0 to Buf7) using the Buf0#P=n command, where n is a palette block number 0-3. See Copy Spectrogram Palette To/From Buffer Block under Macro Array Copy/Swap Operations.
Questions? Comments? Contact us!We respond to ALL inquiries, typically within 24 hrs.
Over 35 Years of Innovative Instrumentation
© Copyright 2007 - 2021 by Interstellar Research
All rights reserved