I would need to add that the way the software is written related to the Dev devices as shown below:
For the input
readDataJ12 = myDigitalReaderJ12.ReadSingleSampleMultiLine();
as well as for the output
using (Task digitalWriteTask = new Task())
// Create an Digital Output channel and name it.
digitalWriteTask.DOChannels.CreateChannel("Dev1/port2/line3", "LedJ1", ChannelLineGrouping.OneChannelForEachLine);
DigitalSingleChannelWriter writer = new DigitalSingleChannelWriter(digitalWriteTask.Stream);
So basically, how do I get rid of this Devx, so the software always read whatever device is present? I would prefer to do this procedure automatically instead of renaming the devices with MAX
Try the DAQsystem.devices property out of the NationalInstruments.DAQmx class library to get a list of installed devices on the system. At least you will get the information which devices are available and you can define the appropriate Task names.
I hope this helps.