Dear ALL;
I am playing with waveform record on the R3.14.4. A subroutine record puts values to a waveform record directly, but whole reading values of the waveform were always â0â when I tried âcagetâ. So, I checked out the NORD field in the waveform record. It was always â0â. I guess, it is supposed to have same value with NELM field.
So, I made small cheating as the following. It is a part of subroutine record to set NORD field to same value with NELM field.
ãããã
DBADDR *pdbAddrLinkA = dbGetPdbAddrFromLink(&prec->inpa);
ããããDBADDR *pdbAddrLinkB = dbGetPdbAddrFromLink(&prec->inpb);
long no_elements = pdbAddrLinkA->no_elements;
ããããwaveformRecord *precord;
ããããprecord = (waveformRecord*)pdbAddrLinkA->precord;
ããããprecord->nord=no_elements;
ããããprecord = (waveformRecord*)pdbAddrLinkB->precord;
ããããprecord->nord=no_elements;
And then, I can read waveform normally.
I would like to know, what cause this problem?
Thank you.
-------------------------------
Kukhee Kim
Instrument & Control, KSTAR
Korea Basic Science Institute
52 Yeoeun-dong, Yusung-gu, Daejeon 305-333
Korea
Email: [email protected]
Tel: +82 42 870 1616 Fax: +82 42 870 1609 Cell: +82 17 513 484
ã