This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
jvs:fscan:manual:chapter4 [2011/10/29 16:15] voyvodic |
jvs:fscan:manual:chapter4 [2023/02/23 18:43] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
fScan supports several different types of internal variables. Values of some variables are global -- they do not change when you move from one active window to another. | fScan supports several different types of internal variables. Values of some variables are global -- they do not change when you move from one active window to another. | ||
- | * [[jvs: | + | * [[jvs: |
- | * [[jvs: | + | * [[jvs: |
- | * [[jvs: | + | * [[jvs: |
- | * [[jvs: | + | * [[jvs: |
- | * [[jvs: | + | * [[jvs: |
- | * [[jvs: | + | |
==== Accessing data variables ==== | ==== Accessing data variables ==== | ||
- | In general, data variable values can be accessed by specifying the name of the variable, preceded by the' | + | In general, data variable values can be accessed by specifying the name of the variable, preceded by the ' |
- | -echo Window: | + | |
- | + | ||
- | |[[jvs:fscan: | + | Variable operators: |
- | |[[jvs: | + | * $varbname |
- | |[[jvs: | + | * ?varbname - the status |
- | |[[jvs:fscan: | + | For example:\\ |
- | |[[jvs:fscan: | + | * -echo Window: $thiswin |
- | |[[jvs:fscan:manual: | + | * -echo Varb: ?curdir ?thiswin ? |
- | |[[jvs: | + | |
- | |[[jvs: | + | The ' |
- | |[[jvs: | + | * $exists(filename) - does the named file exist (0=no, 1=regular file, 2=directory)? |
- | |[[jvs: | + | * $filepath(filename) - return |
+ | * $relpath(filename) - return | ||
+ | * $date(filename) - return a string containing the file modification date (yyyymmddhhmmss) | ||
+ | * $age(filename) - return the age of the named file in seconds | ||
+ | |||
+ | * tables | ||
+ | * listitem | ||
+ | * listflag | ||
- | |thiswin|prevwin|thispdigm|thisevents|listitem|listflag|wspace|wspacedir| | ||
- | |lastref|imageref|taskbarcolor|thismap|lastmap|sample|subjectname|subjectdir| | ||
- | |fscandir|curdir|port|querystatus|plotwin|imagewin|alignref|exists| | ||
- | |filepath|relpath|computer|hostname|user| | | | | ||
- | |acquiret|age|byteorder|centerx|centery|centerz|colormap|colortype| | ||
- | |comment|compression|datafile|dataname|dataorder|datastem|datatype|descr| | ||
- | |diffusiontype|diffweighting|dimgapt|dimgapx|dimgapy|dimgapz|discard|disdaqs| | ||
- | |displayscale|endofhdr|examid|examnum|file0index2|firstslice|firstsliceras|flipangle| | ||
- | |flipx|flipy|flipz|fmtflag|fmtversion|fovx|fovy|freqdir| | ||
- | |glossaryname|hdr2file|hdr2offset|hdr2size|hdr2type|headersize|highthresh|history| | ||
- | |imageignore|inputfile|institution|investigator|ionum|lastslice|lastsliceras|lowthresh| | ||
- | |magneticfield|maptype|maskbits|matx|maty|name|namefmt|nechos| | ||
- | |nex|normalx|normaly|normalz|nrecs|nshots|numimgfiles|nvalues| | ||
- | |nzeros|operator|orientation|origdimt|origdimz|origt|origx|origy| | ||
- | |origz|outputfile|paramfile|pixtype|protocol|pulseseq|radiologist|rasflag| | ||
- | |recoffset|recsize|relofft|reloffz|runnum|scandate|scanner|scantime| | ||
- | |seriesnum|sex|showcolor|slicetiming|source|studyid|subtype|surfscale| | ||
- | |taskdescr|[[jvs: | ||
- | |tiltx|tilty|tiltz|totaltime|tr|tres|unitst|unitsx| | ||
- | |unitsy|unitsz|unknownhdr|valuescale|vmax|vmaxneg|vmean|vmin| | ||
- | |vminpos|vstdev|warpmap|weight|winhgt|winnum|winwid|winx| | ||
- | |winy|xdim|xres|ydim|yres|zdim|zgap|zres| | ||
**See Also:**\\ | **See Also:**\\ | ||
+ | [[jvs: | ||
[[jvs: | [[jvs: | ||
[[jvs: | [[jvs: | ||
[[jvs: | [[jvs: | ||