07-09-2021 01:36 AM
The free library RTSLVU gave you a link of in message #3 is (kind of) open source, that is you can open the block diagram of all vi's and learn how to implement the protocol.
07-09-2021 03:12 AM
I have MODBUS library and used it successfully but I want to do same thing using VISA VI's.
I have attached new VI using VISA and sending command to read but still not able to read please check.
07-09-2021 03:14 AM
I Have already used modbus library for communication and was successful ,which i have already attached image in 1st post .
But I want to do same thing using VISA.
07-09-2021 03:54 AM
Then I guess you need to compute and send a valid CRC value.
07-09-2021 07:04 AM
@IamAbhishek wrote:
I Have already used modbus library for communication and was successful ,which i have already attached image in 1st post .
But I want to do same thing using VISA.
Considering that the NI Modbus library uses internally VISA too, this sounds a bit weird. And anyways if the NI Modbus library works for you, you simply need to learn what it does and how. No amount of online forum help can solve that better for you than the working code of an existing library. And I have to admit that my motivation to dig into non-working code that you haven't even posted yet for a library that exists ready made and working, is very low.
07-09-2021 07:23 AM
@rolfk ha scritto:
@IamAbhishek wrote:
I Have already used modbus library for communication and was successful ,which i have already attached image in 1st post .
But I want to do same thing using VISA.
And I have to admit that my motivation to dig into non-working code that you haven't even posted yet for a library that exists ready made and working, is very low.
Actually, he posted something, but it's very crude. All fields are constants, no CRC calculation, the answer is read as whatever is available in the serial input buffer after waiting 4 seconds, the answer is not interpreted... IMHO it seems a rather useless exercise.
07-09-2021 04:09 PM
@pincpanter wrote:
@rolfk ha scritto:
@IamAbhishek wrote:
I Have already used modbus library for communication and was successful ,which i have already attached image in 1st post .
But I want to do same thing using VISA.
And I have to admit that my motivation to dig into non-working code that you haven't even posted yet for a library that exists ready made and working, is very low.
Actually, he posted something, but it's very crude. All fields are constants, no CRC calculation, the answer is read as whatever is available in the serial input buffer after waiting 4 seconds, the answer is not interpreted... IMHO it seems a rather useless exercise.
Sometime it is useful to code up a web page using notepad so you better understand the black-magic tool kits 🙂
07-09-2021 05:30 PM - edited 07-09-2021 05:31 PM
@Frozen wrote:
Sometime it is useful to code up a web page using notepad so you better understand the black-magic tool kits 🙂
Considering that the NI Modbus Library is open source, I fail to see any black magic there. It mostly comes down to being able to copy code correctly.