>
> I'm using the for range to control the wavelength of a CVI DK480
> monochromator. The "wavelength" from the for range also provides the
> filename for the trace. My problem is that the wavelength given to the
> monochromator is 960.21 but the file is saved with 960.209999999998.dat
> How can I also limit the number of significant figures used in the
> filename to something sensible?
You can send the wavelength value through a To String object. Adjust the
To String WRITE transaction type and properties to give you the desired
number of digits and decimal places. Use this value to build the file
name.
Regards,
Bruce Wenner
HP St. Paul
> I'm using the for range to control the wavelength of a CVI DK480
> monochromator. The "wavelength" from the for range also provides the
> filename for the trace. My problem is that the wavelength given to the
> monochromator is 960.21 but the file is saved with 960.209999999998.dat
> How can I also limit the number of significant figures used in the
> filename to something sensible?
You can send the wavelength value through a To String object. Adjust the
To String WRITE transaction type and properties to give you the desired
number of digits and decimal places. Use this value to build the file
name.
Regards,
Bruce Wenner
HP St. Paul
Excuse my disturbing you.
I would like to continue discussion about different behavior of VEE if I use
Start object or Run button.
If I use Start object, I see the word ?Running? on Statusbar. If I use Run
button, I see the word ?Ready? on Statusbar, however, VEE is running a
program.
This appears in all programs (Solitaire, your panel driver example), well
known
by me.
Following Dave Paslay advice I have used a timer object to measure execution
time of my UserFunction.
Any suggestions will be appreciated. I was surprised detecting great
difference between timer and profiler readings.
Any suggestions will be greatly appreciated.
Yours sincerely,
Mikhail Kozlov kozlov@vniief.ru