Starting a tool with Applescript
Cheers,
I am trying to automate a few measurements, for now specifically i want to plot THD+N and THD vs. frequency.
I can create a signal generator tool with
and then set the properties I need and enable the signal I need, but when i try to start the tool with
it appears started, but does not output a signal.
If I manually stop and start it on the generator window, then it begins to output my signal. The documentation in applescript specifically states:
but I cannot see how I could actually start the output. I have the same issue trying to start the FFT analyzer.
any ideas?
-pjotr
I am trying to automate a few measurements, for now specifically i want to plot THD+N and THD vs. frequency.
I can create a signal generator tool with
set siggen to make new signal generator tool with properties {id:"siggen"}
and then set the properties I need and enable the signal I need, but when i try to start the tool with
tell siggen to start
it appears started, but does not output a signal.
If I manually stop and start it on the generator window, then it begins to output my signal. The documentation in applescript specifically states:
running (boolean) : Specifies whether the tool is currently running (sending or receiving data). Setting this value to 'true' (or using the start command on this object) does not start the selected device.
but I cannot see how I could actually start the output. I have the same issue trying to start the FFT analyzer.
any ideas?
-pjotr
0
Comments
Here's a sample script that picks the first available output device on the system, and outputs a 1 kHz tone on that device: