S
Svenn Are Bjerkem
Guest
Hi,
I am having a small problem:
wave1 = (clip VT("/sig1N") - VT("/sig1P") 10n 20n)
wave2 = (clip VT("/sig2N") - VT("/sig2P") 10n 20n)
wave3 = (clip VT("/sig3N") - VT("/sig3P") 10n 20n)
setq of (outfile "~/outfile.txt" "w")
(foreach family (list wave1 wave2 wave3)
(fprintf of "%L:\n" family)
(foreach sweepVal (famGetSweepValues family)
(fprintf of "%L\n" (cross (famValue family sweepVal) 0 0 'either)))
What I would like to see in my output file is:
wave1:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
wave2:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
wave3:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
but instead of "wave1" I get drwave:196834416 etc.
Which means that I would like to have the name of the variable instead
of the contents printed on the first fprintf line, but I guess that the
variables wave1, wave2 and wave3 has been replaced with their respective
names already in the first foreach line. How would I go on to delay the
substitution until the second foreach line?
--
Svenn
I am having a small problem:
wave1 = (clip VT("/sig1N") - VT("/sig1P") 10n 20n)
wave2 = (clip VT("/sig2N") - VT("/sig2P") 10n 20n)
wave3 = (clip VT("/sig3N") - VT("/sig3P") 10n 20n)
setq of (outfile "~/outfile.txt" "w")
(foreach family (list wave1 wave2 wave3)
(fprintf of "%L:\n" family)
(foreach sweepVal (famGetSweepValues family)
(fprintf of "%L\n" (cross (famValue family sweepVal) 0 0 'either)))
What I would like to see in my output file is:
wave1:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
wave2:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
wave3:
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
(3.591667e-08 3.716667e-08 3.841667e-08 3.966667e-08)
but instead of "wave1" I get drwave:196834416 etc.
Which means that I would like to have the name of the variable instead
of the contents printed on the first fprintf line, but I guess that the
variables wave1, wave2 and wave3 has been replaced with their respective
names already in the first foreach line. How would I go on to delay the
substitution until the second foreach line?
--
Svenn