× Heads Up! You do not have the permission to view the requested topic

Capture the waveform

VM KHOI

Posted on 08.10.2025 09:40

I want to fast capture the waveform from the analysis module.

Please note only the waveform includes thẽ and Y axes like the red square

Hana Prtenjak

Posted on 09.10.2025 06:58

Dear Vm Khoi,


would you please be so kind to explain what do you mean by fast capturing the waveform? What would you like to do or what do you wish the end result is, as I unfortunately do not understand.


Best regards

VM KHOI

Posted on 11.10.2025 02:43

Halo @Hana Prtenjak,


After measuring, I will write a report for the testing by MS Word.

When I copy the waveform, I want some feature:

  1. define the range of X and Y axes (such as: X axis from 0 to 10 seconds, I want to show only 4-6 sec)
  2. Quickly copy the waveform and paste it into MS Word. (such as: press the right mouse and copy, go to Word and paste it as an image.)


Best regards


Hana Prtenjak

Posted on 13.10.2025 13:49

Dear Vm Khoi,


you can define your minimum and maximum values of the x and y axis by clicking on the value and writing your desired value:



To copy the widget and pasting it into MS Word, you need to click on the Design option and then right-click on graph, click Copy to clipboard and Widget group as image:



You can then navigate to MS Word and paste the image in the document.


Best regards,

VM KHOI

Posted on 16.10.2025 10:07

Thank you so much @Hana


I have 1 probem when i setting the math function,

Please see the picture, i have module caculate the ave and peak - peak of sine wave.

The sine change from 0.05 to 3 Hz in 600 second but i want to improve program performance so bloock size (bt) =40 is not availabel for this frequency range.


Can i change BT online when storing or can you please give me 1 way to inporive the performance.

Hana Prtenjak

Posted on 17.10.2025 13:39

Dear VM KHOI,


based on my understanding, you are currently calculating the average and peak-to-peak values of a sine wave whose frequency changes over time (from 0.05 Hz to 3 Hz within 600 seconds). However, using a fixed block size (BT = 40) does not suit the full frequency range, and you are looking for a way to improve performance or dynamically adjust the block size during measurement.

Unfortunately, it is not possible to change the block size (BT) dynamically during storage. However, there are alternative approaches you can use to achieve a similar result with better performance and flexibility.


Option 1: Triggered Blocks using Basic Statistics

You can use the "Triggered blocks" option in the Basic Statistics module.



For example, you can use your sine wave channel as the trigger source, with the trigger condition set to zero-crossing. This way, each block will cover one full sine wave period (from one zero crossing to the next). Because your signal’s frequency is changing, this means that the block size will also change dynamically—longer blocks at lower frequencies and shorter ones at higher frequencies.



This method allows the averaging and peak-to-peak calculations to always match a full period of the waveform, regardless of its frequency, improving accuracy and performance.


Option 2: Calculations every N periods

Another option is to perform the statistical calculation every N periods (e.g., every 4 sine wave cycles). This can also be achieved using more advanced math, where you create a condition or counter that triggers the calculation every fourth waveform.



This setup gives you more control over how often the statistics are calculated and allows further optimization depending on your needs.


To help you get started, I am attaching a data file that contains examples of both methods.

I hope this helps clarify the possibilities and gives you a working solution!


Best regards,


Attached files:
VM KHOI

Posted on 26.10.2025 14:57

Halo Hana,


I chose option 2 and added it to my project. Please see formula 14 and 15

But it can't calculate the AVE, Peak - Peak in Basic start .1

Please see in the: Dữ liệu ghi nhận được.dxd (I can't upload because the file to big)


By the way, can I change the stored properties? because some store data files that we need to analyze after measuring

Hana Prtenjak

Posted on 27.10.2025 13:08

Dear @VM KHOI,


thank you for your detailed explanation and for sharing your project setup. I’ve checked your configuration and formulas, and here’s what I found:


Formula setup (Formulas 14 & 15):

I noticed that in your Formula 1 (Excitation_DS), you correctly use the channel V injective with a sample rate divider of 32. That’s a good approach to reduce the number of samples.

However, in Formulas 14 and 15 you are still using the original V injective channel instead of Excitation_DS. Because V injective contains a large number of samples, the signal crosses the zero line multiple times, causing the ecnt function to detect too many zero crossings.



→ Please update Formulas 14 and 15 to use Excitation_DS instead of V injective.

The formulas themselves are otherwise set up correctly.


Basic Statistics not calculating (Basic stat. 1):

The issue is that the input channel for Basic stat. 1 is currently not set to “Store”.



Only channels with “Store = Yes” are saved and available for later calculation or display.

To fix this, please:

  • Right-click in the Math table → choose Edit columns
  • Add the Store column
  • Make sure all relevant channels, including Basic stat. 1, are set to Store


This will ensure that the results are stored properly and available for recalculation or later analysis.


I’m also returning your data file with the corrected formulas so you can check the changes directly.

Please let me know if you have any further questions or if anything is unclear.


Best regards,

VM KHOI

Posted on 27.10.2025 14:25

Halo Hana,


Thanks for your support.


I see the return file. But I see an issue.

1. The signal V injective is a sine wave with a frequency change from 0.05 to 3 Hz with a step of 0.05 Hz. It means after 0.05 Hz, the frequency continues to 0.1 Hz at the zero point.

So that the V injective /AVE will be only zero.


2. I want to change Formula 1, 2, and the channel in power analysis stored when I analyze the data. Because I need the light stored data.

But I enable the Store Column, but can't set the store enable. It is not available for enabling.


So that, if I want to enable the store, I will configure all the math. It is not convenient.

Please share with me 1 way to enable it when I analyze data.


Best regards,

Hana Prtenjak

Posted on 28.10.2025 11:07

Dear @VM KHOI,


thank you for your feedback and additional explanation. Please see my comments below:


1. About the AVE value of V injective

The reason why the AVE value is not zero is related to how the Triggered blocks method works.

In this mode, the statistical value is calculated between two trigger events (based on your Cycle sampel).

Each block therefore has a slightly different length, since your sine frequency changes from 0.05 Hz to 3 Hz and you are calculating the AVE value of 4 sine waves at once.

You can easily test this: if you use a Basic Statistics – Block based and Sample based calculation and average over a very large number of samples (e.g., 10 000), you will get an AVE close to 0; but if you average only a few samples (e.g., 2), the result will look like a sine wave again.

So, the difference you see is expected due to the trigger-based calculation principle.


2. About the Store setting

It is unfortunately not possible to enable Store for a channel after the data has already been recorded.

Only the channels that had Store enabled during measurement are saved into the data file and available for later analysis.

You can, however, still create new math channels based on the signals that were stored and perform additional calculations within the analysis module.

For future tests, I recommend enabling Store for all important channels (or for their downsampled versions) to keep the file size smaller but still retain full flexibility for later analysis.


I hope this clarifies everything.


Best regards,


Login to reply to this topic. If you don't have account yet, you can signup for free account .