d port of nidaqmxbase.h, d rewrite of fcap.cpp