function [value_AIN0, value_AIN1] = SetGetLJ(ljudObj,ljhandle,Outputs)
     
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.GET_AIN, 0, 0, 0, 0);  %Request AIN0
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.GET_AIN, 1, 0, 0, 0);  %Request AIN1
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.PUT_DIGITAL_BIT, 0, Outputs.DO0, 0, 0);  %Set DO0
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.PUT_DIGITAL_BIT, 2, Outputs.DO2, 0, 0);  %Set DO2
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.PUT_DAC, 0, Outputs.DAC0, 0, 0);    %Set DAC0
ljudObj.AddRequest(ljhandle, LabJack.LabJackUD.IO.PUT_DAC, 1, Outputs.DAC1, 0, 0);    %Set DAC1

 ljudObj.GoOne(ljhandle);
        
        %Get all the results.  The input measurement results are stored.  All other
        %results are for configuration or output requests so we are just checking
        %whether there was an error.
        [ljerror, ioType, channel, dblValue, dummyInt, dummyDbl] = ljudObj.GetFirstResult(ljhandle, 0, 0, 0, 0, 0);

        finished = false;
        while finished == false
            switch ioType
                case int32(LabJack.LabJackUD.IO.GET_AIN)
                    switch int32(channel)
                        case 0
                            value_AIN0 = dblValue;
                        case 1
                            value_AIN1 = dblValue;
                    end
                case int32(LabJack.LabJackUD.IO.GET_DIGITAL_BIT)
                    valueDIBit = dblValue;
                case int32(LabJack.LabJackUD.IO.GET_DIGITAL_PORT)
                    valueDIPort = dblValue;
                case int32(LabJack.LabJackUD.IO.GET_COUNTER)
                    valueCounter = dblValue;
            end
            
            try
                [ljerror, ioType, channel, dblValue, dummyInt, dummyDbl] = ljudObj.GetNextResult(ljhandle, 0, 0, 0, 0, 0);
         
            catch e
                if(isa(e, 'NET.NetException'))
                    eNet = e.ExceptionObject;
                    if(isa(eNet, 'LabJack.LabJackUD.LabJackUDException'))
                        if(eNet.LJUDError == LabJack.LabJackUD.LJUDERROR.NO_MORE_DATA_AVAILABLE)
                            finished = true;
                        end
                    end
                end
                %Report non NO_MORE_DATA_AVAILABLE error.
                if(finished == false)
                    throw(e)
                end
            end
        end

end

