DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

STATBLOCKCALC returns null

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

Download All
0 Kudos
Message 1 of 8
(2,315 Views)

Hello JohanLa,

 

Is there any way you can monitor the signal from elsewhere?

 

Kind regards, 

Michael

 

 

 

 

0 Kudos
Message 2 of 8
(2,290 Views)

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

0 Kudos
Message 3 of 8
(2,286 Views)

 Hi J,

 

Do you have a screenshot of this?

 

Kind regards,

Michael

0 Kudos
Message 4 of 8
(2,283 Views)

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

0 Kudos
Message 5 of 8
(2,274 Views)

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

0 Kudos
Message 6 of 8
(2,265 Views)

Hi Michael,

 

Diadem 2018 are we using.

One attached dataset is working and the other not.

 

Thanks

J

0 Kudos
Message 7 of 8
(2,263 Views)

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

0 Kudos
Message 8 of 8
(2,261 Views)