09-03-2021 10:13 AM - edited 09-03-2021 10:17 AM
Hello all,
I am brand new to LabVIEW and need your help please.
for controlling two thermostats via the modbus/ TCP Master, the set temperature of the two thermostats needs to be set.
For this, the two thermostats are now enclosed on a router whose name is NETGEAR FS 108 (Fast Ethernet Switch).
Note: The computer is connected to the switch via a network cable. The computer I am using is on the same network with an IP address as the switch.
I really appreciate any help or guide. Many thanks
Gabriel
Solved! Go to Solution.
09-03-2021 11:29 AM
Look into these articles
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHcFCAW&l=en-US
https://forums.ni.com/t5/Reference-Design-Content/LabVIEW-Modbus-API/ta-p/3524019
09-03-2021 01:25 PM
You can also download the NI Modbus Library right from VI Package Manager. The API is pretty straightforward, you should just need to create a TCP master instance and then there are functions for reading and writing coils/registers given some address or address range.
09-04-2021 11:47 AM
Thank you for your answer. In the meantime I have built something else with the different drivers. The drivers were already there (temperature control and setpoint temperature).
The goal here is:
- Switch the thermostat on or off
- Set the target temperature
- Call up the internal temperature
I always get this error message:
Invalid input parameter. For example, if a path is present at the input, this path may contain characters such as ? or @,
which are not permitted in the operating system.
=========================
This command can only be used if the GPIB controller is the active controller.
Enclosed I am sending you the programme. I would be very grateful if you could help me.
09-04-2021 11:52 AM
Thank you for your answer. In the meantime I have built something else with the different drivers. The drivers were already there (temperature control and setpoint temperature).
The goal here is:
- Switch the thermostat on or off
- Set the target temperature
- Call up the internal temperature
I always get this error message:
Invalid input parameter. For example, if a path is present at the input, this path may contain characters such as ? or @,
which are not permitted in the operating system.
=========================
This command can only be used if the GPIB controller is the active controller.
Enclosed I am sending you the programme. I would be very grateful if you could help me.
Translated with www.DeepL.com/Translator (free version)
09-08-2021 07:32 AM
Hi,
First of all, thank you for the answer you sent me last time. This allowed me to finish my assignment.
I have been trying to find a way to control the scale, but I keep getting the following error codes: 1073676294 and -1073807252. I am having trouble getting through. I don't know what to do.
I have to tare the scale and then read the actual weight of the scale. For this purpose there are already the appropriate commands and drivers.
As attachment I send you everything I have done and you can see and tell me where the fault lies.
I really need your help to be able to continue.
thank you again
Gabriel