Hi
I have simple custom calculator function that creates two points wave. The code is below.
This function called like this
makeLineWave(t1 t2)
Where t1 and t2 measurements calculated before.
t1=1
t2=VAR("tt")
Where tt is test variable
The function working fine when called from the calculator.
But when the function called from Assembler results view it fails because x2 is a wave objects lile srrWave:0x64b93a80
What is the proper way to handle this?
procedure( makeLineWave( x1 x2)
let((xVec yVec wave )
wave=drCreateEmptyWaveform()
xVec=drCreateVec('double 2)
yVec=drCreateVec('double 2)
printf("%L %L\n" x1 x2)
drAddElem(xVec x1)
drAddElem(xVec x2)
drAddElem(yVec 1.0)
drAddElem(yVec 1.0)
drPutWaveformXVec( wave xVec)
drPutWaveformYVec( wave yVec)
wave
);let
);procedure