Hello;
You certainly can do that. The only thing you need to double check is if the external circuitry doesn't sink too much current, and if that current value is within the value specified by the 6023.
Regards
Filipe A.
Applications Engineer
National Instruments