sprao
Member level 1
Hi, I want to transfer data in and out serially by using Matlab. Till now I had studied Matlab documentation for this and I have tried in loopback mode i.e shorting TD and RD pins of COM port.
1. Actually I want to send and receive Hexadecimal data which can be written in a file. How to send or receive Hex data through a file.
2. One more thing is whatever my received Hex data, I have to append 4 bytes of hex data and before writing in to a file I have to convert into integer. Any way if we can combine 4 bytes of Hex data then I can convert it by using hex2dec() function. For example if I am receiving one byte of Hex data eachtime as 12, AB, 9A and E2 then I have to combine it as 12AB9AE2, then I can convert it into integer.
3. I heard that Matlab is not good to use for real time applications. So, can I use it for serial communication? (My divece's baudrate is 115200).
Anybody plz help me to solve these problems.....
1. Actually I want to send and receive Hexadecimal data which can be written in a file. How to send or receive Hex data through a file.
2. One more thing is whatever my received Hex data, I have to append 4 bytes of hex data and before writing in to a file I have to convert into integer. Any way if we can combine 4 bytes of Hex data then I can convert it by using hex2dec() function. For example if I am receiving one byte of Hex data eachtime as 12, AB, 9A and E2 then I have to combine it as 12AB9AE2, then I can convert it into integer.
3. I heard that Matlab is not good to use for real time applications. So, can I use it for serial communication? (My divece's baudrate is 115200).
Anybody plz help me to solve these problems.....