05-06-2019 05:51 AM
Hello
Am running Diadem 2018 but have problem when running the following code:
Call STATBLOCKCALC("Channel","1-","[2]/input")
Output = StatSum
The variable Output is null in some cases. Attached signals working and not working.
May see that the one not working includes larger numbers. But not sure if it is this is the problem.
If you know the reason for the null returned do you know a way to fix it? Maybe a work around available?
Thanks for any help
05-07-2019 05:13 AM
Hello JohanLa,
Is there any way you can monitor the signal from elsewhere?
Kind regards,
Michael
05-08-2019 01:32 AM
Hello Michael
Don't know where you mean to monitor the signal. The signal is in Diadem and can be plotted there but dont know why the function returns null.
Thanks
J
05-08-2019 03:51 AM
Hi J,
Do you have a screenshot of this?
Kind regards,
Michael
05-08-2019 08:23 AM
Hi Michael
Easiest is to open the attached data in dataportal and then run the following code:
Call CHNALLOC("Output",1024,1,DataTypeFloat64,"Numeric",1,12)
Call STATBLOCKCALC("Channel","1-","[1]/input")
Then check the created signal Sum is empty.
J
05-09-2019 04:39 AM
Hi J,
What version of DiAdem are you using? Just want to make sure I'm replicating this exactly
Does this work with any other excel spreadsheet or just these two that don't work?
Kind regards,
Michael
05-09-2019 05:18 AM
Hi Michael,
Diadem 2018 are we using.
One attached dataset is working and the other not.
Thanks
J
05-09-2019 06:58 AM
Hi,
There must be a difference between these two files that DiAdem doesn't like.
The one that doesn't work has much larger values. Could this potentially be the cause?
How are the excel spreadsheet being created?
Do you run into the same issue using TDMS?
Kind regards,
Michael