DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling rate [Hz]

Hello.

Could you please advise me how to get the channel sampling rate in script?

Thank you.

0 Kudos
Message 1 of 2
(85 Views)

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.

Holger Müller

DIAdem experience since 1996
Turn-key applications - Remote and on-site trainings - On-the-job training

| müller+krahmer GmbH | Koenitzer Straße 14, 07338 Kaulsdorf / Germany |
| Phone: +49 36733 / 2328 - 6 | Mobile: +49 160 / 287 7294 |
| Email: mueller@mueller-krahmer.de | Web: www.mueller-krahmer.de |
0 Kudos
Message 2 of 2
(52 Views)