Nan - voltage

More
23 Sep 2020 06:03 #183406 by phillc54
Replied by phillc54 on topic Nan - voltage

So infinity * 0 = 0 so how can it report a nan?

No, inf * 0 = nan


When you go back to the First post and look at the screen dumps arc-voltage-in has a valid value but arc-voltage-out has a nan.

The first screen dumps were not at the time of startup, they were after the error had been established.


Maybe the one second delay simply allows the system to sort itself out. eg for the system to load.

Exactly, it gives time for the encoder to pass a valid float.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 06:10 #183407 by rodw
Replied by rodw on topic Nan - voltage
So does receiving a number as a nan break things forever? Shouldn't it sort out the output when a valid number is received from the encoder?

It seems to me thats what should happen, but that did not seem to be the case.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 06:15 #183408 by phillc54
Replied by phillc54 on topic Nan - voltage

So does receiving a number as a nan break things forever? Shouldn't it sort out the output when a valid number is received from the encoder?

It seems to me thats what should happen, but that did not seem to be the case.

I don't actually know what happened afterwards, all I knew about was the wrong display value. Maybe Tesremos will fill us in.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 06:25 #183410 by rodw
Replied by rodw on topic Nan - voltage

So does receiving a number as a nan break things forever? Shouldn't it sort out the output when a valid number is received from the encoder?

It seems to me thats what should happen, but that did not seem to be the case.

I don't actually know what happened afterwards, all I knew about was the wrong display value. Maybe Tesremos will fill us in.


So was it just the display value or was the arc voltage used by plasmac wrong too? You would not have thought you'd start cutting 1 second after turning the machine on.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 06:28 #183411 by phillc54
Replied by phillc54 on topic Nan - voltage

rodw wrote:
So was it just the display value or was the arc voltage used by plasmac wrong too? You would not have thought you'd start cutting 1 second after turning the machine on.

Both the display and all the plasmac comp calculations.


I just tried on a sim and everything seems to come back to normal afterwards. It gave this vague error dialog:
Warning: Spoiler!
Attachments:

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 07:32 #183417 by rodw
Replied by rodw on topic Nan - voltage
Looks like Dewey has pushed a fix to halshow.tcl 6 hours ago so it would be interesting to recompile master and try again
"halshow.tcl support display of nan"
github.com/LinuxCNC/linuxcnc/commit/accd...c21d2d3b5d208b0c1438

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 07:34 #183418 by rodw
Replied by rodw on topic Nan - voltage
Sorry, just to be clear, WatchLoop in in that file.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 07:34 #183420 by Tesremos
Replied by Tesremos on topic Nan - voltage
it crashes into stuff.

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 07:36 #183421 by phillc54
Replied by phillc54 on topic Nan - voltage

it crashes into stuff.

Now that is a good reason to fix it. :)

Please Log in or Create an account to join the conversation.

More
23 Sep 2020 07:36 #183422 by phillc54
Replied by phillc54 on topic Nan - voltage

Sorry, just to be clear, WatchLoop in in that file.

Now I know where that message came from.

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.128 seconds
Powered by Kunena Forum