You can use either an analog or digital input of the DAQ board to read the signal. There are a lot of shipping examples of using DAQmx to read either a voltage or digital signal. For example, if using digital I/O, the output might be a True/False or 1/0. Either one of these can be wired directly to a case statement. For an analog read, use the comparison function to see if the value is greater than 3.5 volts and wire that to the case statement.