You are not logged in.

#1 2018-09-17 15:20:28

backXslash
Member
Registered: 2016-03-25
Posts: 151

Getting a "Math Issue" / "Invalid Token" Error On My Dynamic Cure

I'm receiving a "Math Issue" error when NanoDLP is trying to process my dynamic cure formula. The exact message is:

Math issue (
(((1>0) & (1<=2))*240)

+

(((2<1) &(1<=10))*120)

+

(((10<1) & (1<=20))*45)

+

(((20<1)&(1<=9999))*40)

) -1 Invalid token

The formula I've been using (without issue until recently) is:

{(
((([[LayerNumber]]>0) & ([[LayerNumber]]<=2))*240)

+

(((2<[[LayerNumber]]) &([[LayerNumber]]<=10))*120)

+

(((10<[[LayerNumber]]) & ([[LayerNumber]]<=20))*45)

+

(((20<[[LayerNumber]])&([[LayerNumber]]<=9999))*40)

)}

What did I miss?

Offline

#2 2018-09-18 19:10:11

backXslash
Member
Registered: 2016-03-25
Posts: 151

Re: Getting a "Math Issue" / "Invalid Token" Error On My Dynamic Cure

Found the error, for anyone who's curious.

I copied the formula directly out of the JSON configuration file and apparently there are non-printable characters in there or something.

Typing it all out by hand got it fixed.

Offline

Board footer

Powered by FluxBB