02-14-2025 03:10 PM
Hello.
Could you please advise me how to get the channel sampling rate in script?
Thank you.
02-18-2025 06:44 AM
I suppose you want to find out the sampling rate an existing channel was acquired with (not the clock settings in DAC).
It depends on the type of channel: if you have a numerical channel you have to look at the separate time channel that was created together with it (in case of a XY-channel this information can be found in the X-Channel reference property). Using Calculate differences in Analysis delivers the time steps the channel, Calculate reciprocal the resulting sample rate in Hz.
In case of waveform channels there is a property waveform x-step width. Reciprocal of this value is the sample rate (so transforming numerical into waveform channels leads to the same result.