Hello Mr. Halbauer,
unfortunately there is no function for a selftest. But you may use another fuction to test the communication. For example you can query the serial number.
It returns an error if no device is availabe.
If you include the DAQmx library you can use this function in C#.
Regards
DianaS