01-23-2025 03:24 AM - edited 01-23-2025 03:55 AM
@alhabeeb wrote:
Then how to wire it to the Write to Text?
No, you still need to add the relevant row and column delimiters. Just use an array and turn it into a delimited string, same as with the DBL data.
sketch:
Why have all these string diagram constant if you could use an array diagram constant.
01-23-2025 06:39 AM
Thanks a lot.
Is it possible to save in excel file?
01-23-2025 07:12 AM
Hi alhabeeb,
@alhabeeb wrote:
Is it possible to save in excel file?
Currently you create CSV files, which are considered as "excel files"!
01-23-2025 08:06 AM
OK thanks.
If I want to add time to my data, I need just to wire it like this?
01-23-2025 09:01 AM
what does the file look like ? Did it work ?
01-23-2025 09:02 AM
Hi alhabeeb,
@alhabeeb wrote:
If I want to add time to my data, I need just to wire it like this?
With hidden wires under case structures???
You can wire it like that - when the output of HighResTime is useful for you…
(Otherwise you need to calculate a more suitable time value.)
01-23-2025 09:09 AM
another 2 cents. you can include this part of the code inside the Case , so it only executes when is time to save data.
01-23-2025 09:26 AM - edited 01-23-2025 09:27 AM
@alhabeeb wrote:
OK thanks.
If I want to add time to my data, I need just to wire it like this?
No. You should branch from the same wire as going to the "elapsed time" indicator. The output of the high resolution timer is not useful.
Assuming you want elapsed time. If you want absolute date and time, different code is needed.
01-24-2025 02:37 AM
Hi,
I'm thinking to create an increment by 1 then multiply by the elapsed time. So each true case the counter increased by 1. For example the elapsed time is 5 (s). First ture case the total time is 1*5, the second true case 2*5, the third true case 3*5,... so on. I did it as shown in the pic. but I had an error.
01-24-2025 02:50 AM - edited 01-24-2025 02:50 AM
It is OK now. First time 0 (s) , counter*second elapsed time. If there is any suggestion please let me know.
Thanks