DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem wav files

Hi guys, sorry if this is the wrong place to post but hoping someone can help me out. How can I save channels as audio files? I can save wav files but they are silent, online info seems to suggest I need to scale it but I’m not sure what is required. Thanks, sorry if this isn’t appropriate here

0 Kudos
Message 1 of 2
(858 Views)

Hi, having the channels scaled means their range must be between -1 and 1.

 

You can save a channel in a .wav file as follows (remarks, it is Python code)

dd.DataFileSave(r'D:\Data\Signal.wav', 'Audio', True)

 

If you use VBS, the script should be as folllowing (not tested).

Call DataFileSave("D:\Data\Signal.wav", "Audio", True)

 

I tried to export a channel to .wav and it worked (I opened the .wav file anc could hear the sound).

I put a time channel t (frequency: 44100 Hz that is a standard frequency for audio files) and an associated signal channel y.

With the sample code you can find above I was able to export it as a working .wav file.

 

Hope it helps.

 

 

panta1978_0-1655466603394.png

 

 

0 Kudos
Message 2 of 2
(822 Views)