function  SetPWM(ljHandle,DutyCycle)
ljud_LoadDriver; % Loads LabJack UD Function Library
ljud_Constants; % Loads LabJack UD constant file

DC = (256-(DutyCycle/100)*256)*256;
%num2str(DC)
% Duty Cycle = ((256 - 32768/256)/256)*100% = 50%
Error = ljud_AddRequest(ljHandle,LJ_ioPUT_TIMER_VALUE,0,DC,0,0);
Error_Message(Error)


% Execute above requests
Error = ljud_GoOne(ljHandle);
Error_Message(Error)

end


