epics-containers / pvi

EPICS PV Interface described in YAML
https://epics-containers.github.io/pvi
Apache License 2.0
4 stars 3 forks source link

NDStdArrays.template won't pvi convert #131

Open gilesknap opened 4 months ago

gilesknap commented 4 months ago

When doing a convert on the NDStdArrays.template in ADCore we see this error because of a macro inside the DTYP for the waveform.

AssertionError: Waveform type for DTYP asyn$(TYPE)ArrayIn not found in [<class 'pvi._convert._asyn_convert.AsynWaveform'>, <class 
'pvi._convert._asyn_convert.AsynInt32Waveform'>, <class 'pvi._convert._asyn_convert.AsynFloat64Waveform'>]

Not sure of the solution to this. My workaround inside a container is just:

sed -i s/\$\(TYPE\)/Int32/g ${ADCORE}/db/NDStdArrays.template

But note this locks the pvi device to having Int32 arrays only. Also note that PVI only supports Int32 and Float64 but there are other values that could be used for $(TYPE)