DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Unwanted waveform feature

Hello all,

 

My code uses the channel resampling function ChnResampleFreqBased to resample my time and signal channel. Unfortunately it's returning waveform channels, which may be useful in some circumstances but are causing me unnecessary grief (in part because I've never used them so am not familiar with them).

 

There are some functions to convert channel types from one to the other, in this case WfChnToChn, which converts them to numeric channels. Unfortunately, it produces an X channel, which I don't want and end up deleting.

 

Can I circumvent all this unnecessary coding by just having the resampling function give me numeric channels in the first place?

 

Thanks,

 

Simon.

0 Kudos
Message 1 of 5
(2,901 Views)

Hello Simon,

 

A Waveform channel is a channel that contains the corresponding X information (time, frequency, etc.) as properties, the waveform properties.

This makes an explicit X channel unnecessary and works for equidistant X values. This often makes the handling with channels easier.

 

That is also the reason why the resampling function results are stored as waveform channels.

 

Currently there is no way to prevent this.

 

Greetings

Walter

0 Kudos
Message 2 of 5
(2,879 Views)

Thanks Walter.

 

I solved the problem by using the channel generation and linear mapping functions - less code and I got what I wanted.

 

The waveform concept may be easier for some applications but it's a shame that DIAdem is provided with a resampling function but not with the choice to just return a simple resampled numerical channel. It feels like the classical ways of working are being ignored even when they are still appropriate....

 

Regards.

0 Kudos
Message 3 of 5
(2,873 Views)

Hello Simon,

 

I can understand that, depending on the task, a waveform is not the optimal solution. From my point of view, this would be a good suggestion for our DIAdem Idea Exchange Forum.

 

Greetings

Walter

0 Kudos
Message 4 of 5
(2,868 Views)

Agreed, Walter, and submitted.

 

Regards.

Message 5 of 5
(2,863 Views)