DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Diadem 15 - ChnRound function doesnt work

Solved!
Go to solution

Hi,

i would like to ask if the function "ChnRound()" works in Diadem 2015?

When i call it from script or when i access it through Analysis panel, everytime it tells me error message "wrong number of arguments or bad assignment of property ChnRound" (diadem wrote it in czech so i translated it).

I tried with numeric and waveform channels, tried to round more than 1 channels as well, tried to change the parameters, but still the same error message.

My colleague has the same problem. In Diadem 2017 everything works as expected. This function was added to Diadem 2015.

Thanks for checking it.

 

chnRoundError.png

 

 

 

0 Kudos
Message 1 of 5
(3,120 Views)

Hi,

as I can see you working with DIAdem 2015 - whithout service pack. I checked the function in DIAdem 2015 SP2 and it worked fine. You can download the SP2 here:

http://www.ni.com/download/diadem-development-system-2015-sp2/6042/en/

or search for "diadem 2015 sp2" in the NI web.

 

Greetings

Walter

 

0 Kudos
Message 2 of 5
(3,117 Views)

Hi,

 

how you are using ChnRound() ?

Because, for instance I'm using DIAdem 2012 SP1 and to do this operation you can put it like this:

Call FormulaCalc ("Ch('Group2/Result'):= Round ('Group1/Input')")

It should work in 2015 as well I guess...

0 Kudos
Message 3 of 5
(3,110 Views)
Solution
Accepted by topic author Lukas_Doubek

Hi,

for DIAdem 2012 you should use this command:

call ChnCalculate("ch(""[1]/ChnName"") = Round(ch(""[1]/ChnName""),2)")

In DIAdem 2015 we have implemented a function which works faster

Call ChnRound("[1]/ChnName","Standard","Automatic",6,0)

Greetings

Walter

 

0 Kudos
Message 4 of 5
(3,107 Views)

I know this style, it is written in help, but i wanted to try this function as its implemented in Analysis panel toolkit of functions. Plus i find it more readable.

I will install the service pack2, while im testing the 2017 version.

0 Kudos
Message 5 of 5
(3,088 Views)