AddAsyncSingleSample and NAN

Malek ABDI

Posted on 07.11.2016 14:10

Hi,

I have developped lot of plugin with Dewesoft X2 SP5 and when the frame analysis of my RS232 comport can't be processed correctly, I used frequently this code :

// correct frame : 12.3 236.2;

//uncorrect frame : //// ////

val := StrToFloatDef(arr[0],NAN); // val is a single
Fsysteme.Vitesse.AddAsyncSingleSample(val,Time);

If an uncorrect frame is present, everything works correctly with NAN and AddAsyncSingleSample.

On newer version of Dewesoft X2 SP7 or SP6, NAN element is not understand and a floating point error occured in Dewesoft.

how can I can activate NAN operator in newer version of Dewesoft?


Regards Malek





DEWESoft Support
Technical support
Posted on 10.11.2016 11:14

Hi,

I've spoken with our developers and they told me that "NaN" and "INf" values should not be assigned to DEWESoft channels, which has to be prevented in the plugin itself. This has always been the same, so I'm not sure how you've been able to assign "NaN" values so far, but you shouldn't really be doing this in the first place.

Login to reply to this topic. If you don't have account yet, you can signup for free account .