Automation: How to load WAV in Generator ?

Post Reply
RJA4000
Posts: 97
Joined: Sun Jul 28, 2019 2:28 am

Automation: How to load WAV in Generator ?

Post by RJA4000 »

Hi

I don't find a way to load the generator parameter with a WAV file.

In the Automation server manual (v1.7), I read
nWaveformB
Waveform for Channel B:
0: None
1: Sine
2: Rectangle
3: Triangle
4: SawTooth
5: WhiteNoise
6: PinkNoise
7: MultiTones
8: Arbitrary (via Waveform Library File)
9: MLS

How to set it to "WAV" ?

If that doesn't work, that means that I can't call the function SetSignaGeneratorParameters
which is annoying, because I need it to set the output level...
RJA4000
Posts: 97
Joined: Sun Jul 28, 2019 2:28 am

Re: Automation: How to load WAV in Generator ?

Post by RJA4000 »

OK, it seems I figured it out by myself.

I just call the function SetSignalGeneratorParameters with both nWafeFormA and nWafeFormB set to 13.
VirtinsTech
Site Admin
Posts: 301
Joined: Tue Oct 01, 2013 3:06 pm

Re: Automation: How to load WAV in Generator ?

Post by VirtinsTech »

Great! You have figured it out by yourself :) LoadPanelSettingFile() can also be used and is more generic.
RJA4000
Posts: 97
Joined: Sun Jul 28, 2019 2:28 am

Re: Automation: How to load WAV in Generator ?

Post by RJA4000 »

Yes, indeed.
"LoadPannelSettingFile" doesn't work to change the level.
But it sets the filename.
Post Reply