| Hot plate | IKA C-MAG HS7 | Heated bed with temperature control | 
## Comunicación
For the communication of the measuring equipment, it is intended to communicate via USB to a computer.
## Communication
To communicate the `Digit Multimeter M3500A` and the `System DC Power Supply 150 V / 10 A` a USB cable was used through the VISA protocol (Virtual Instrument Software Architecture) which is a standard for configuring, programming and debugging instrumentation systems that include GPIB interfaces. To do this, you first have to download the NI-VISA software on the computer you intend to use since Python is used to communicate through the Python wrapper `pyvisa` which requires the real VISA installation on the system. Otherwise an error will be thrown.
<br>It is installed `pyvisa`:
```bash
pip install pyvisa
```
To find out if Pyvisa detects the instruments, run the following code in Python:
```python
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources())
```
If a series of codes are displayed in the Terminal, it means the instruments have indeed been detected and are responding with their data. Something like this:
```Terminal
'USB0::0x164E::0x0DAD::TW00013644::INSTR'
```
### Communication with the Optris CTlaser pyrometer
Communication with the Optris CTlaser pyrometer was performed using the sensor's native binary protocol, using the Python programming language and the standard `pyserial` library for access to the COM port (virtual USB RS-232).
<br>The sensor protocol consists of sending single-byte binary commands and receiving two-byte encoded responses, representing data such as temperature in `uint16` format.
<br>Libraries used:
```python
import serial
import time
```
|communication parameters| |
---------------------------|----|
|Baudrate |115200 bps|
|Bits de datos |8|
|Paridad |Ninguna|
|Bits de parada |1|
|Timeout |1 segundo|
### Command to get temperature
```python
COMANDO_TEMPERATURA = bytes([0x01])
```
This command requests the process temperature (Tprocess). The sensor's response is 2 bytes, which must be interpreted using the following formula:
```python
temperatura = ((byte1 * 256 + byte2) - 1000) / 10
```
All this information was obtained from the manufacturer's manuals which are attached to this repository.