LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save data


@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: 

altenbach_0-1737624490431.png

 

 

Why have all these string diagram constant if you could use an array diagram constant.

 

0 Kudos
Message 21 of 47
(231 Views)

Thanks a lot.

Is it possible to save in excel file?

0 Kudos
Message 22 of 47
(214 Views)

Hi alhabeeb,

 


@alhabeeb wrote:

Is it possible to save in excel file?


Currently you create CSV files, which are considered as "excel files"!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 23 of 47
(209 Views)

OK thanks.

 

If I want to add time to my data, I need just to wire it like this?

alhabeeb_1-1737641158681.png

 

0 Kudos
Message 24 of 47
(203 Views)

what does the file look like ? Did it work ? 

 

0 Kudos
Message 25 of 47
(193 Views)

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.)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 26 of 47
(194 Views)

LVNinja_0-1737644916223.png

another 2 cents. you can include this part of the code inside the Case , so it only executes when is time to save data. 

 

0 Kudos
Message 27 of 47
(190 Views)

@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.

0 Kudos
Message 28 of 47
(182 Views)

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.

alhabeeb_0-1737707734112.pngalhabeeb_1-1737707755155.png

 

alhabeeb_4-1737707858697.png

 

 

 

  

0 Kudos
Message 29 of 47
(167 Views)

It is OK now. First time 0 (s) , counter*second elapsed time. If there is any suggestion please let me know.

Thanks  

alhabeeb_0-1737708506656.pngalhabeeb_1-1737708521156.png

 

0 Kudos
Message 30 of 47
(164 Views)