08-17-2023 11:25 AM
I am trying to get a timestamp in milliseconds attached to this data from a rotary encoder. We need to collect data at a rate of 250Hz/s. I've hit quite a wall trying to get the data assigned to a timestamp and in an excel sheet. I would appreciate any help!! You guys were amazing last time. One attachment is the previous labview version, and the other is the most up to date.
08-17-2023 11:37 AM
Tick Counter cannot convert to a real world timer.
You can use Get Time Stamp in Seconds functions and use as a time stamp
08-17-2023 11:44 AM - edited 08-17-2023 11:47 AM
The millisecond timer value is a relative counter that increments every ms and wraps to zero when 2^32 is reached. It's absolute value has no meaning.
To get relative time, you need to subtract the current value from the start value.
The rest of your code seems very convoluted and broken. Can you explain how the time should be merged with the rest of the data?
(... and please (PLEASE!!!) don't attach two different files with the same name. you can edit the name to e.g. include the LV version, e.g. "Counter...LV2015.vi)
08-18-2023 01:53 AM
Hi veterinarian,
@confusedveterinarian wrote:
I am trying to get a timestamp in milliseconds attached to this data from a rotary encoder. We need to collect data at a rate of 250Hz/s. I've hit quite a wall trying to get the data assigned to a timestamp and in an excel sheet. I would appreciate any help!! You guys were amazing last time. One attachment is the previous labview version, and the other is the most up to date.
My recommendations:
There's a similar thread started some days ago…