# device_login()

Opens a device session with a shared device.

## Function Prototype

device_login(board_num, user_name, password)

## Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

user_name (string)

A string that identifies the user name used to log in to a device session.

password (string)

A string that identifies the password used to log in to a device session.

## Notes

- If the user name or password is invalid, the function raises a ULError with an errorcode of ErrorCode.INVALIDLOGIN.
- If the session is already opened by another user, the function raises a ULError with an errorcode of ErrorCode.SESSIONINUSE.