LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create an error logfile

Solved!
Go to solution

No that will not save anything the File string will give the text that can be saved to a file. The file writing you need to create.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 11 of 25
(1,790 Views)

OK.But it seems to be overwriting the details that we have already saved in the same file.Can we append all the details??

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 12 of 25
(1,783 Views)

Following changes made to the VI that you have attached.Now the details can be saved in a textfile.And tried to make some errors to view the error code and error number but can't found any.Please reply.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 13 of 25
(1,780 Views)

Hi Danil,

 

another great thread of yours...

 

"But it seems to be overwriting the details that we have already saved in the same file.Can we append all the details??"

If you would read the context help you would know why it overwrites your file. It's all in the help: RTFM...

 

"And tried to make some errors to view the error code and error number but can't found any."

There's a VI called "General Error Handler", that will give you a lot of information... Why don't you use it?

 

"Please reply."

Why do you always ask for replies? You don't need to!

It's the way how forums like this work: some people ask, others will answer...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 25
(1,776 Views)

"another great thread of yours......"

 

Are you kidding or seriSmiley Madus(haha...)

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 15 of 25
(1,771 Views)

Hi danil,

 

I'm serious!

 

You still didn't learn to ask proper questions! What answer do you expect when asking "Can we append all the details?"

I would answer "YES!" - and that's it Smiley Wink

 

- You don't explain what details do you want.

- You don't read the context help (nor do you look at examples coming with LabVIEW) to learn how to append to a file...

- You still ask people to do your work by asking for ready-to-use VIs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 25
(1,773 Views)

"- You don't explain what details do you want."

That I explained very very clearly in my first post of this thread.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 17 of 25
(1,769 Views)

Hi Danil,

 

so now you have all the information you need to accomplish your task...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 25
(1,765 Views)

@danil33 wrote:

Following changes made to the VI that you have attached.Now the details can be saved in a textfile.And tried to make some errors to view the error code and error number but can't found any.Please reply.


That is a very silly statement. On the front panel of the VI, you have a control in which you can enter any error code, etc. that you feel like. It is totally irrelevant whether the code or message is valid since you simply want to test the function of the VI. If you need to create your own error codes, that is a completely different question. As usual, the answer to that is to read the LabVIEW help. There is a large section on custom error codes.

0 Kudos
Message 19 of 25
(1,746 Views)

I don't want to create our own error codes.I just tried if any error occurs it's error number and error code will be displayed

 

Thanks 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 20 of 25
(1,733 Views)