02-08-2014 06:22 AM
hello everybody,
i have problems with establishing serial communication from simulink(where the data is generated) to labview (version 2010).
i tried everything but it won t work.can you please help me on this one pleaaase.
thanks ^^
02-09-2014 04:55 AM
02-09-2014 08:16 AM
hello , thanks for your reply ^^
the communiation is between two PC where the data is generated with smulink and in the second one we receive data and display it with labview
in matlab i used a send serial block connected with my system.
02-10-2014 02:15 AM
02-10-2014 11:37 AM
thanks so far for your replies,
to clarify any confusion this is my system in simulink.
the data are decimal values
thanks again, hope i ll receive a reply from you guys soon cause i really need to progress in my project
02-11-2014 08:40 AM
hello,
in fact i discovered that the serial communication between the two applications can not be done because of the cable used .
so i decided to do this application in the same PC using virtual ports with VSPD.
and so i did the simulation, the data was sent but none was received in labview.
what can i do ?? pliiiiiiiiiiz
02-12-2014 03:02 PM
hades1992,
I can't really speak much about the virtual serial port software, but can you see them in MAX? Have you tested communication in MAX? Have you attempted to run one of the shipping examples for serial like Simple Serial.vi?
02-14-2014 02:44 AM
About your data, I still have the impression that you send binary data, and the first question is:
Are there any characters found on the receiving part in LabVIEW.
Use the
C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Instrument IO\Serial\Continuous Serial Write and Read.vi
and select no endcharacters and the correct baudrate etc,
start the vi and send the data from simulink
press read after sending and ask to start with 10 characters and see what happens.