LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-485 Communication using VISA

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 11 of 18
(1,556 Views)

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.

0 Kudos
Message 12 of 18
(1,552 Views)

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.

0 Kudos
Message 13 of 18
(1,551 Views)

Then I guess you need to compute and send a valid CRC value.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 14 of 18
(1,547 Views)

@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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 15 of 18
(1,533 Views)

@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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 16 of 18
(1,527 Views)

@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 🙂

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 17 of 18
(1,510 Views)

@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.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 18 of 18
(1,504 Views)