# Source\_in

![source\_in node in AXV\_datasource section](/files/-LdgIsuPlRq3y1ivQIV6)

## Introduction

This node allows you receive data form system or connected devices (such as Modbus sensors, PLC, etc.)

## System information

`source_in`allow you get DIO status, General information, HWM result and IO status from device `AXView`

![](/files/-LetP_7A8NsHfsotVHZ_)

### DIO status

![](/files/-LetN20G6Zg4Iq44Xj3G)

You can get the digital input/output status in your computer by choosing sensor DIO, also, it'll show the pin define of GPIO. (**1** means input, **0** means output)

{% hint style="info" %}
Copy below text and import to Flow Design then see what happened.
{% endhint %}

```
[{"id":"4896d0cf.9719c","type":"source_in","z":"6b0f01f6.66298","device":"AXView - AXView","sensor":"DIO - DIO","x":170,"y":80,"wires":[["f33a6bb6.06a628"]]},{"id":"f33a6bb6.06a628","type":"debug","z":"6b0f01f6.66298","name":"","active":true,"console":"false","complete":"false","x":370,"y":80,"wires":[]}]
```

### General Information

![](/files/-LetNP6KV6uxpC3rr1-X)

General Information shows the device's basic information, such as BIOS version, CPU module type, OS version and memory usage.

{% hint style="info" %}
Copy below text and import to Flow Design then see what happened.
{% endhint %}

```
[{"id":"79660328.8bf80c","type":"source_in","z":"6b0f01f6.66298","device":"AXView - AXView","sensor":"General - General","x":180,"y":180,"wires":[["e3ae8d09.486a7"]]},{"id":"e3ae8d09.486a7","type":"debug","z":"6b0f01f6.66298","name":"","active":true,"console":"false","complete":"false","x":370,"y":180,"wires":[]}]
```

### HWM result

![](/files/-LetO8BULVsAZkpz_G9j)

Hardware monitor result shows the CPU temperature and system voltage.

{% hint style="info" %}
Copy below text and import to Flow Design then see what happened.
{% endhint %}

```
[{"id":"85666e3f.d7f41","type":"source_in","z":"6b0f01f6.66298","device":"AXView - AXView","sensor":"HWM - HWM","x":170,"y":300,"wires":[["3502e0a8.5f5ec"]]},{"id":"3502e0a8.5f5ec","type":"debug","z":"6b0f01f6.66298","name":"","active":true,"console":"false","complete":"false","x":370,"y":300,"wires":[]}]
```

### IO status

![](/files/-LetNuvawdFZ1UbACxS3)

IO status shows the interface status of computer, including Product ID , Vendor ID and Manufacturer.

{% hint style="info" %}
Copy below text and import to Flow Design then see what happened.
{% endhint %}

```
[{"id":"dea3bedd.b02d3","type":"source_in","z":"6b0f01f6.66298","device":"AXView - AXView","sensor":"IO - IO","x":160,"y":400,"wires":[["3b4463a2.8f4c0c"]]},{"id":"3b4463a2.8f4c0c","type":"debug","z":"6b0f01f6.66298","name":"","active":true,"console":"false","complete":"false","x":370,"y":400,"wires":[]}]
```

## Receiving Modbus devices data

After create a device and setup the parameters of Modbus, AXView 3.0 will start auto polling, so you can get data of Modbus device by using `source_in` node, too.

![](/files/-LeuG6o8Sh5J15-bqdOA)

If you connect the `source_in`to `debug` node, it will shows the result of polling. By default, the data format are always hexadecimal in string, if you want to know the result of decimal, you have to transform it by using `function`node.

![](/files/-LeuJ-1llDimHAP-J6oT)

The code in the `function` node "Hex to Dec":

```javascript
msg.payload = parseInt(msg.payload, 16);
return msg;
```

![](/files/-LeuItmQu8MMocrNIAQu)

After transformation process, you'll get a decimal in number result.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://axiomtek-ams.gitbook.io/ams/data-processing/node-red/core-nodes/source_in.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
