04-23-2025 12:44 PM
Just a very general question:
I have a web-based instrument... I hope I'm saying that right..
Can I take control of the instrument with LabVIEW as a web based instrument?
04-23-2025 05:53 PM
As a general answer, yes you can control web connected instruments with LabVIEW.
04-23-2025 06:53 PM
@Jay14159265 wrote:
As a general answer, yes you can control web connected instruments with LabVIEW.
I think he might've meant "could you control the instrument through a web browser with LabVIEW?" If that is the case, then "no". But if you can reach the instrument through a web browser, it is very likely that you can control it through VISA commands as well.
04-24-2025 08:58 AM
Thank you for the responses,
Would you happen to have a very simple general example of opening communication (web based)?
04-24-2025 09:01 AM
Hi LED,
@LED47 wrote:
Would you happen to have a very simple general example of opening communication (web based)?
Which protocol does that device use?
"Web based" can have a lot of implementations - and some devices support more than one protocol…
04-24-2025 10:13 AM
I think we can use - Modbus, RESTful API or Macros
04-24-2025 02:44 PM
Hi LED,
@LED47 wrote:
I think we can use - Modbus, RESTful API or Macros
Use Modbus/TCP.
There are several Modbus libraries available on VIPM!
04-24-2025 06:30 PM
@GerdW wrote:
Hi LED,
@LED47 wrote:
I think we can use - Modbus, RESTful API or Macros
Use Modbus/TCP.
There are several Modbus libraries available on VIPM!
While I personally would use MODBUS given those choices, I will still mention that REST API usage with LabVIEW is possible using its built in HTTP VIs.
Also, depending on the use case, sometimes a REST API can be easier to develop. MODBUS requires you to know register addresses and if you want any data more than 2 bytes you have to merge the results from several registers. REST APIs usually have commands and replies that look a lot more like "plain English" and can be less intimidating for new users.
04-25-2025 12:41 AM - edited 04-25-2025 12:42 AM
Hi,
@Kyle97330 wrote:Also, depending on the use case, sometimes a REST API can be easier to develop. MODBUS requires you to know register addresses and if you want any data more than 2 bytes you have to merge the results from several registers. REST APIs usually have commands and replies that look a lot more like "plain English" and can be less intimidating for new users.
Yes, that's right.
But:
In the long run it might help (IMHO) the OP to learn Modbus basics as the same principles also apply to other communication protocols, like CAN (message frames with payload data, where you need to pick the bits/bytes), CANopen (SDO: very similar scheme of register addresses with dedicated meaning and data formatting), …
04-26-2025 10:26 AM
you can run a gRPC device server. For rt targets it is as simple as running an executable and you are ready to go. For client side you can use gRPC-labview or python, C#, c or whatever.