nidaqmx-python icon indicating copy to clipboard operation
nidaqmx-python copied to clipboard

Support querying device calibration information and Self-Cal

Open epage opened this issue 7 years ago • 5 comments

I don't think this stuff is supported in the API.

See http://zone.ni.com/reference/en-XX/help/370471AA-01/mxcprop/attributeclasscalibrationinfo/

epage avatar Aug 18 '17 15:08 epage

Has self calibration (DAQmxSelfCal) been added to the API?

spalatofhi avatar May 26 '20 14:05 spalatofhi

This seems to work, for self-calibration at least. It doesn't raise an error on a simulated device...

def self_cal(device: str):
    cfunc = lib_importer.windll.DAQmxSelfCal
    if cfunc.argtypes is None:
        with cfunc.arglock:
            cfunc.argtypes = [ctypes_byte_str]
    retcode = cfunc(device)
    check_for_error(retcode)
    return True # success!

spalatofhi avatar May 26 '20 14:05 spalatofhi

Hey,

Can you propose a Pull Request with this change ? I'm also looking for DAQmxSelfCal function in the API.

Regards

flef avatar Nov 07 '23 09:11 flef

@flef - this is a 6-year old Feature request. Nobody here will create a PR with that change. You can if you'd like!

zhindes avatar Nov 07 '23 14:11 zhindes

Updated link to calibration info properties: https://www.ni.com/docs/en-US/bundle/ni-daqmx-c-api-ref/page/mxcprop/attributeclasscalibrationinfo.html

bkeryan avatar Dec 11 '23 18:12 bkeryan