11-13-2012 05:50 AM
hi,
i'm a freshman in the applications of serial port.and you see,my projiect needs communicate between LV and MCU based on Modbus Protocol.all the configures are correct,but the lv send the wrong information that is'nt suitable for modbus.i don't know how to fix it.
my programs are as follows:
Solved! Go to Solution.
11-13-2012 05:51 AM
and these are the additional.thanks a lot.
11-13-2012
08:57 AM
- last edited on
04-17-2025
08:26 AM
by
Content Cleaner
Why did you decide to create your own code instead of what is already available? If you had done a search, you would have easily found the modbus library. Give that a try.
11-13-2012 06:22 PM
what?labview has its own library?oh my god.thank you very much,i'll try again.
11-13-2012 09:33 PM
hi,it's still me.follow your advices,i install the modbus library to labview,and i find it in the function pannel.you see,my purpose is that communicate between pc and mcu,yeah it's a communication software.and now the new question occus,need i use VISA write\read\closed?all the modbus library offers control or read coils,how can i program.
and did you do something like that?thanks a lot.
11-13-2012 10:25 PM
11-13-2012 11:03 PM
thanks a lot.
11-26-2012 07:24 PM
sir,it's still me.follow your advise,i download the library.and succeed to setup in my labview.
recently i try to use the library to program what i wanna.but the new problems happened to me.
i use the highlight to guard the date flow.everytime the flow came into the MB serial receive.vi correctly,and came out with the error-1073807253.i''m absolutely sure that all the parameter i set are correct.
the serial port is communicate via RS-485/232.the communication protocol is based on modbus protocol.
as a newbie,i'm confused long time.any advise is appreciated.
thank you for your help.
that's my program based on modbus library.