06-26-2019 03:35 AM
Hi guys!
I have been doing the labVIEW programming to transfer the data to the txt. document not only with the data but also having headers on the top. I have searched a lot like the website below:
http://web.mst.edu/~cottrell/ME240/Code-hints/File_storage.pdf
But this does not really help since this is only for 2D non-dynamic array.. What the problem is that I have more than 2D dynamic data even more in the future coming from the 'read' icon . I created something like PNG '' data transfer '' but that is useless at all -.-
I appreciate if anyone could help
06-26-2019 03:42 AM - edited 06-26-2019 03:42 AM
Hi River,
But this does not really help since this is only for 2D non-dynamic array..
That example helps a lot! Just do as is described in your PDF!
06-26-2019 03:48 AM
Hi GerdW,
Thanks for your quick reply!
Place the header writing before your loop to obey THINK DATAFLOW!
Should I use concatenate String to combine the data writing with the data or other string would be better?
Best wishes
River
06-26-2019 03:52 AM - edited 06-26-2019 03:54 AM
Hi River,
you should write just the header before your loop.
No need/sense to append data to the header before the loop…
(THINK DATAFLOW!)
One more hint:
When using string constant you should make the display style indicator visible. Especially when you use \-codes in the string…
06-26-2019 04:13 AM
Hi GerdW,
It works, Thank u!
I try to follow the pdf. step by step until I found ''\n'' had been used in the code, what the result shows:
Ch101-DCV Ch102-ACV-V \n+9.90000000E+37.................. which means the end of the line function doesn't work somehow..
Also, since what you mentioned work fine so I try to add something more which is match pattern to remove comma in the result(in PNG), but it removed every results after comma
Best wishes
River
06-26-2019 04:20 AM
Hi River,
until I found ''\n'' had been used in the code
Read message #4 again…
I try to add something more which is match pattern to remove comma in the result(in PNG), but it removed every results after comma
Read the help for MatchPattern to know what to expect from it's outputs.
Read the help!
06-26-2019 05:10 AM
Hi GerdW,
I found 'search and replace string' function is useful.
Thanks for your help.
Best wishes,
River