LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with Modbus /TCP Master

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 6
(2,507 Views)
Solution
Accepted by topic author gabrielstephane12

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

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 6
(2,486 Views)
Solution
Accepted by topic author gabrielstephane12

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.

Matt J | National Instruments | CLA
Message 3 of 6
(2,467 Views)

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.

Thermostat1.PNGThermostat_Frontpanel.PNG

0 Kudos
Message 4 of 6
(2,440 Views)

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)Thermostat_Frontpanel.PNGThermostat1.PNG

0 Kudos
Message 5 of 6
(2,435 Views)

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

0 Kudos
Message 6 of 6
(2,386 Views)