Hi Jeff_B,
The problem seems to be not to calculate the channel chracteristics
MIN/MAX in case of the command chnsmooth if the result will be stored
in the original channel. You can solve that problem with command
CHNCHARACTER(chnName) or by using a new result channel.
Using your syntax it can look like:
call datadelall
call DataFileLoad("Example.TDM")
Call CHNSMOOTH(2, 2, 30)
Call CHNCHARACTER(2)
L10=0
R10=CHNVALMIN(2)
L10=Find("Ch(2)=R10" , L10+1)
msgbox chnname(2) & vblf & "ChanMin: " & R10 & vblf & "Line at: " & L10
In DIAdem 9.1 that can look like:
call datadelall
call DataFileLoad("Example.TDM")
call CHNSMOOTH("[1]/Speed", "[1]/Speed_2", 30)
dChnMin = val(ChnPropGet("[1]/Speed_2", "minimum"))
iMyLineNo = pno("[1]/Speed_2", dChnMin)
msgbox chnname(2) & vblf & "ChanMin: " & dChnMin & vblf & "Line at: " & iMyLineNo
Greetings
Walter