Mercurial > repos > pieterlukasse > nist_wrapper
view README.txt @ 4:266b64154f57
fix
author | pieter.lukasse@wur.nl |
---|---|
date | Thu, 22 Jan 2015 17:03:19 +0100 |
parents | cce6989ed423 |
children |
line wrap: on
line source
This wrapper does the following: 1- take as input the nistms.INI spectrum_file.msp outputfileName 2- the wrapper script the generates the uid and executes the following steps: - copy ~/.wine/drive_c/NIST folder to ~/.wine/drive_c/NIST_uid - copy spectrum_file.msp to ~/.wine/drive_c/NIST_uid - creates ~/.wine/drive_c/NIST_uid/MSSEARCH/AUTOIMP.MSD -> pointing to C:\NIST_uid\MSSEARCH\temp.msd - creates ~/.wine/drive_c/NIST_uid/MSSEARCH/temp.msd -> pointing to C:\NIST_uid\spectrum_file.msp and the text "10 724" in the second row - copy nistms.INI to ~/.wine/drive_c/NIST_uid/MSSEARCH , overwriting the existing one - replace all occurrences of C:\NIST with C:\NIST_uid in this new nistms.INI - run : wine ~/.wine/drive_c/NIST_uid/MSSEARCH/nistms$.exe /INSTRUMENT /PAR=2 - monitor : ~/.wine/drive_c/NIST_uid/MSSEARCH/SRCREADY.TXT for content = "1" - when ready: > copy SRCRESLT.TXT to outputfileName > kill nist process > remove ~/.wine/drive_c/NIST_uid/ > finish Pre-requisites (Linux): - wine is installed - Xvfb is installed - NIST mssearch is available under ~/.wine/drive_c/NIST/MSSEARCH/ folder References: docs/NIST_MSSEARCH_manual.pdf (section "Use with Instrument Data Systems", pages 44-46) Example for running in Linux: Xvfb export DISPLAY=:0 python nist_wrapper.py ~/.wine/drive_c/NIST/ ../../../test/nist/wrappertests/data/nistms.INI ../../../test/nist/wrappertests/data/spectrum_file_small.MSP out.txt >>post this as reply to https://forum.winehq.org/viewtopic.php?t=9000 (seems to work for ole)