Фарах Posted April 5, 2019 Report Share Posted April 5, 2019 Hi! I am working on interface that contains of master(pc) and 2 slaves (microcontroller) and i want to send data from 2 slaves to master via serial communication it is possible to implement this architecture in labview? and how? thnx Quote Link to comment
ensegre Posted April 5, 2019 Report Share Posted April 5, 2019 It is possible. You have to write VIs. 1 Quote Link to comment
Bryan Posted April 5, 2019 Report Share Posted April 5, 2019 What type of serial communication are you using? RS232, RS485, RS422, I2C, SPI, ETC? The type you are using will determine whether it's physically possible to have multiple masters/slaves on the same connection. If you're using a compatible serial connection, yes... LabVIEW can do what you're asking. As far as how... there are already lots of examples built into LabVIEW and on the internet. 1 Quote Link to comment
Фарах Posted April 5, 2019 Author Report Share Posted April 5, 2019 thanks for reply i will use rs-485 .. i searched a lot in the internet but didn't find what i wan't can you tell me please .. i will use 2 read function for each slave or 1 is enough? Quote Link to comment
crossrulz Posted April 5, 2019 Report Share Posted April 5, 2019 You will likely need a write (to request the data) and a read (to get the data) for each slave. 1 Quote Link to comment
Фарах Posted April 6, 2019 Author Report Share Posted April 6, 2019 thnx crossrulz but how to connect each read function ? by flat sequences loop or how? and it is necessary to insert an interval between these read functions? Quote Link to comment
Gribo Posted April 6, 2019 Report Share Posted April 6, 2019 What is your topology? Is it a single RS485 link per slave, or are they on the same bus? If they are on the same bus, you will have to think of the communication protocol, is it token based, is it CSMA/CD? That is up to you, as the designer. 1 Quote Link to comment
Mads Posted April 7, 2019 Report Share Posted April 7, 2019 Daisy-chained / multi-dropped RS485 with a master-slave protocol? If you need an example of how that can be done in LabVIEW you can look at this one which is based on one of the industry-standard protocols for such communication - Modbus : 1 Quote Link to comment
Фарах Posted April 7, 2019 Author Report Share Posted April 7, 2019 Gribo master and slaves are on the same bus Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.