05-04-2023 01:31 PM
The data have different values at the same time.
Can anybody help me out?
I want to store data as a set of data points with corresponding timestamps.
Solved! Go to Solution.
05-04-2023 03:21 PM
As far as I can see, you are not logging the measurement time yourself and I think it is also not coming from the instrument.
If you measure the system time with tickcount and use each timestamp to report to the table you get a timestamp.
Only thing you need to do is to keep the first timestamp in a shift register and subtract it from all timestamps before stopping the loop, or just after the loop.
The your time series start at zero.
If you need help for this, just ask and I will program a small example.
05-05-2023 02:21 AM
I don't get it. Can you give an example?
Thank you so much.
05-06-2023 01:53 AM
05-06-2023 06:00 AM
I typed the wrong requirement.What I need is a data corresponding to different time.
05-06-2023 06:47 AM
05-06-2023 07:24 AM
After the test, the following situation still occurs.
Where am I using it wrong?
05-06-2023 07:30 AM
Hi
You are measuring so fast that ms resolution does not work.
I also tried to be sure that the first measured time was zero but I think that opening the file the first time takes a lot of time, relative to measuring.
So do only aggregate measurements in the loop and wait at least 1 ms.
Save the data to a file after the loop and make sure not to have to much data so e.g. stop at 1000 iterations.
05-06-2023 08:19 AM
OK.I really appreciate your help in resolving the problem.
05-06-2023 08:55 AM