comparison README.txt @ 0:cce6989ed423

new NIST wrapper demo tools
author pieter.lukasse@wur.nl
date Thu, 22 Jan 2015 16:14:57 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cce6989ed423
1 This wrapper does the following:
2
3 1- take as input the
4 nistms.INI
5 spectrum_file.msp
6 outputfileName
7
8 2- the wrapper script the generates the uid and executes the following steps:
9 - copy ~/.wine/drive_c/NIST folder to ~/.wine/drive_c/NIST_uid
10 - copy spectrum_file.msp to ~/.wine/drive_c/NIST_uid
11 - creates ~/.wine/drive_c/NIST_uid/MSSEARCH/AUTOIMP.MSD -> pointing to C:\NIST_uid\MSSEARCH\temp.msd
12 - creates ~/.wine/drive_c/NIST_uid/MSSEARCH/temp.msd -> pointing to C:\NIST_uid\spectrum_file.msp
13 and the text "10 724" in the second row
14 - copy nistms.INI to ~/.wine/drive_c/NIST_uid/MSSEARCH , overwriting the existing one
15 - replace all occurrences of C:\NIST with C:\NIST_uid in this new nistms.INI
16 - run : wine ~/.wine/drive_c/NIST_uid/MSSEARCH/nistms$.exe /INSTRUMENT /PAR=2
17 - monitor : ~/.wine/drive_c/NIST_uid/MSSEARCH/SRCREADY.TXT for content = "1"
18 - when ready:
19 > copy SRCRESLT.TXT to outputfileName
20 > kill nist process
21 > remove ~/.wine/drive_c/NIST_uid/
22 > finish
23
24
25 Pre-requisites (Linux):
26 - wine is installed
27 - Xvfb is installed
28 - NIST mssearch is available under ~/.wine/drive_c/NIST/MSSEARCH/ folder
29
30
31 References:
32 docs/NIST_MSSEARCH_manual.pdf (section "Use with Instrument Data Systems", pages 44-46)
33
34
35 Example for running in Linux:
36
37 Xvfb
38 export DISPLAY=:0
39 python nist_wrapper.py ~/.wine/drive_c/NIST/ ../../../test/nist/wrappertests/data/nistms.INI ../../../test/nist/wrappertests/data/spectrum_file_small.MSP out.txt
40
41
42 >>post this as reply to https://forum.winehq.org/viewtopic.php?t=9000 (seems to work for ole)