Hello JRys,
Thank you for your help.
The matlab code provided in the 50779 support example with a small modification works now to set a digital output.
I added two lines of code to that example in order to set DIO0 to an output and to a high value:
daq.DConfigBit(MccDaq.DigitalPortType.AuxPort, 0, MccDaq.DigitalPortDirection.DigitalOut);
daq.DBitOut(MccDaq.DigitalPortType.AuxPort, 0, MccDaq.DigitalLogicState.High);
The main confusion was what to set the DigitalPortType to and thank you for telling me that it was AuxPort. Another big confusion was that I did not know what was meant by Port or Bit. As far as I understand now Port means all the digital IOs together and Bit means just one of the digital IOs specifically.
Thank you again.