11-04-2020 11:34 PM
I want to create my own header for the file. Although the header can be created from the setting of write to measurement VI, I cannot create my own header file. How can I make my own header on file?
I have attached my VI
Thank you
11-05-2020 04:38 AM
Hi prabesh,
@prabesh99 wrote:
I want to create my own header for the file. Although the header can be created from the setting of write to measurement VI, I cannot create my own header file. How can I make my own header on file?
You already create a file path: what's the problem to write your header into the file before the while loop?
When calling the WriteMeasurementFile ExpressVI you should re-check its settings: it's maybe a problem when the ExpressVI will overwrite already existing data instead of appending to the file.
You also have the option to get rid of ExpressVIs and use "plain" file functions to write your data into the file…
11-05-2020 11:30 AM - edited 11-05-2020 11:31 AM
11-06-2020 12:43 AM
Dear RTSLVU,
Thanks for your reply. I did what you suggest to me. I got a problem. The file contains only one data point ( I guess it is the last data point measured by the sensor), and how can I get all the data points as measured by the sensor?
How can I put the header in the correct spacing?
Thanks in advance!
11-06-2020 02:53 AM - edited 11-06-2020 02:54 AM
Dear GerdW,
Hi
I used the plain text function to save the data. However, I can save only one data point. How can I save all the data point as measured by the sensors?
11-06-2020 03:48 AM - edited 11-06-2020 03:51 AM
Hi prabesh,
wh
@prabesh99 wrote:
Dear GerdW,
I used the plain text function to save the data. However, I can save only one data point. How can I save all the data point as measured by the sensors?
Why do you open the file inside the loop inside the case structure? We told you to create very different code!
Why do you close the file inside the loop?
Why is there a "default if unwired" tunnel holding a file reference?
Why is there no error handling with your file functions?
Again:
Have you examind any of all those example VIs coming with LabVIEW?
Why do you write two answers with attaching a VI using the very same filename, but with different filesize? That is very irritating (and annoying)!
11-06-2020 09:10 AM - edited 11-06-2020 09:11 AM
@prabesh99 wrote:
Dear RTSLVU,
Thanks for your reply. I did what you suggest to me. I got a problem. The file contains only one data point ( I guess it is the last data point measured by the sensor), and how can I get all the data points as measured by the sensor?
How can I put the header in the correct spacing?
Thanks in advance!
I guess I was not clear enough...
11-09-2020 01:04 AM
Hi RTSLVU,
I did what you said, and now the problem is that I don't get data in scientific numerical. How can I get data in scientific numerical? Another question is, I want to make the given input integer in the header, but I could not make the header from the format into string VI.
Thanks in advance!
11-09-2020 01:25 AM
Hi prabesh,
@prabesh99 wrote:
the problem is that I don't get data in scientific numerical. How can I get data in scientific numerical?
Read the help on format strings. Right now you use "%f", but there are a lot of other format codes…
@prabesh99 wrote:
Another question is, I want to make the given input integer in the header, but I could not make the header from the format into string VI.
Are you talking about "no. of data point for power"?
Place the terminal of this control before the case structure, then you can use its data for header generation…
(This is basic THINK DATAFLOW!)
11-09-2020 02:01 AM