Date: Mon, 22 May 95 13:04:50 CDT
Subject: SX50-Sun users: Task Writing-Help!
From:

Status: O



Friends:



I have been trying to write some tasks to 1) create some files to monitor

conditions that may be potential/actual problems (e.g. water temperature,

vacuum), with the hopes of 2) ultimately writing a task that may provide

a solution to the 35 setup file limit.



Equipment: SX50 (51) Sun Sparc IPX



I have first started with an example that Sam P. gave me which was actually



one from the Dec but converted somewhat for the Sun. I am having problems,

however, getting it to work (in this case, to write the chamber and gun

vacuum every 5 seconds for 100 seconds into a file called vacout.dat).



The file gets created and some numbers get enterred, but they don't make

sense. Maybe it is just the formatting statement.



Then I added lines 55 and 75, to get the time printed for each vac and

it doesn't like my variables at all!



If I can get this to work, one eventual idea would be to write the setups

to a file, with the initial date of creation -- which, as everyone knows,

is not in the SX file. Being a multi-user facility, I have periodic

(monthly?)

problems of the setup directory having more than the 35 limit and thus the

n+1 user ends up having their Quanti(view) Declaration abort because the

setup

can't be saved. I am hoping to find some way to mickey mouse the setup

files

to get around this -- but I am not even to first base yet re reading the

SX's

brain and writing to the Sun.



I would appreciate any assistance if _anyone_ out there has had _any_

experience re this situation, and in particular re the syntax and

variables.



Here is the task (vac.tas) that works if lines 55 and 75 are removed (works

in the sense that a file with numbers gets written).



10 spf0 lun file aci3

20 open 'vacout.dat'

30 for n,1,20,1

35 vac stat

40 define i (vac(4))

50 define j (vac(5))

55 define k (time)

60 wait 0 0 5

70 print " "

75 sprint file '!1_!7I' k

77 print " "

80 sprint file '!1_!7F!1_!7F' i,j

90 next n

100 print file

110 close

120 stop

st vac

cl





============================================



John Fournelle

Electron Microprobe Lab Internet:johnf@geology.wisc.edu

Dept of Geology & Geophysics Telephone: (608) 262-7964

University of Wisconsin Fax: (608) 262-0693

1215 West Dayton Street Amateur radio: WA3BTA/9

Madison, WI 53706