ISISComputingGroup / IBEX

Top level repository for IBEX stories
5 stars 2 forks source link

DAQMX: support thermocouple channel type #8107

Closed FreddieAkeroyd closed 9 months ago

FreddieAkeroyd commented 11 months ago

The DAQMX ioc needs to support thermocouple channel types for PEARL. This is needed by #6049

FreddieAkeroyd commented 11 months ago

There are currently some hardcoded values for a PEARL test, check these are right. Can make them configurable later.

       pPvt->aioPvt[i]->units = DAQmx_Val_Kelvins;
       pPvt->aioPvt[i]->thermocoupleType = DAQmx_Val_K_Type_TC;
       pPvt->aioPvt[i]->cjcSource = DAQmx_Val_ConstVal;
       pPvt->aioPvt[i]->cjcVal = 25.0;

The mix/max look to be changed from the VI but these are already specifiable in the driver. You basically:

FreddieAkeroyd commented 11 months ago

m/M are for min and max value, you should now be able to do something like U=Kelvins m=0 M=100 thermocoupleType=K_Type_TC cjcSource=ConstVal cjcVal=25.0 AIADCTimingMode=HighResolution AIAutoZeroMode=Once

FreddieAkeroyd commented 10 months ago

@davidkeymer maybe be best to review as can confirm it works