Automation: How to load WAV in Generator ?

Automation: How to load WAV in Generator ?

Postby RJA4000 » Sat Jul 16, 2022 8:30 pm

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 ?

Postby RJA4000 » Sun Jul 17, 2022 1:55 am

OK, it seems I figured it out by myself.

I just call the function SetSignalGeneratorParameters with both nWafeFormA and nWafeFormB set to 13.
RJA4000
 
Posts: 97
Joined: Sun Jul 28, 2019 2:28 am

Re: Automation: How to load WAV in Generator ?

Postby VirtinsTech » Wed Jul 20, 2022 1:48 am

Great! You have figured it out by yourself :) LoadPanelSettingFile() can also be used and is more generic.
VirtinsTech
Site Admin
 
Posts: 290
Joined: Tue Oct 01, 2013 3:06 pm

Re: Automation: How to load WAV in Generator ?

Postby RJA4000 » Mon Jul 25, 2022 3:55 pm

Yes, indeed.
"LoadPannelSettingFile" doesn't work to change the level.
But it sets the filename.
RJA4000
 
Posts: 97
Joined: Sun Jul 28, 2019 2:28 am


Return to Questions

Who is online

Users browsing this forum: No registered users and 12 guests