-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
How to create an "accumulate" view of a periodic signal?
- This topic has 4 replies, 2 voices, and was last updated 20 years, 3 months ago by a.eckardt@eurotec-berlin.com.
-
AuthorPosts
-
August 31, 2004 at 11:48 pm #12528a.eckardt@eurotec-berlin.comParticipant
The signal i have to examine is similar to a dirty rectangular periodic signal.
I want to extract successive rectangles and paste one upon the other in one diagram.
The extraction period of one wave may start by an trigger point. The extraction periode lenght can be fixed by no. of indices or time on the x- axis.
The the diagram has one x-axis for all rectangles, relatively scaled to the start of the extraction periode.
The view i like to generate is commonly called “accumulate view” at digital storage oszilloscopes.
I think this should be possible with FPScript.September 1, 2004 at 1:00 am #8856Bernhard KantzParticipantIn FPScript there are different possibilities to solve this problem. For example you can write a for-loop where you can collect the data of a period. Or you can change the y dataset into a matrix with n values each data series. n is equal to the number of values per interval. If you create a lines diagram the periods lie one upon the other.
//period length: no. of indices dim trigger, period, s, dx, i, result trigger = 10 period = 120 s = Signal[trigger,-1] // signal begins at the trigger point Reshape(s.y,{NumberOfValues(s)/period,period}) //period length: time period = 1 //1 second dX = Mean(s.x[1, -1] - s.x[0, -1]) period = Integer32(period / dX) Reshape(s.y,{NumberOfValues(s)/period,period})
September 1, 2004 at 7:20 pm #8857a.eckardt@eurotec-berlin.comParticipantThank you, smart, i tried that.
Unfortunately, i think i did not detail enuogh.The e.g. rectangular signal waves are not spaced equidistant!
With equidistant, sucessive extraction windows the signal overlays sweep through the accumulate view diagramm.What i need is that EACH extraction Periode starts at the index (or time) of a LevelCrossing
September 1, 2004 at 8:53 pm #8858Bernhard KantzParticipantPlease try the following approach:
- Use LevelCrossings() to find the index positions of all waves. The number of waves is the length of the index series minus one.
- Use Maximum(idx[1, – 1] – idx[0, -1]) to compute the maximum wave length.
- create a series with maximum length times number of waves void values.
- Loop across the source signal, extrace each wave and put it into to proper possion in the result series.
- Reshape the series into a data matrix.
The matrix could have one wave in each column. At the end of each column may be some void values.
September 1, 2004 at 8:53 pm #8191a.eckardt@eurotec-berlin.comParticipantThe signal i have to examine is similar to a dirty rectangular periodic signal.
I want to extract successive rectangles and paste one upon the other in one diagram.
The extraction period of one wave may start by an trigger point. The extraction periode lenght can be fixed by no. of indices or time on the x- axis.
The the diagram has one x-axis for all rectangles, relatively scaled to the start of the extraction periode.
The view i like to generate is commonly called “accumulate view” at digital storage oszilloscopes.
I think this should be possible with FPScript. -
AuthorPosts
- You must be logged in to reply to this topic.