Source code is made by MFC(vs 2008).
The sensor is communicated by TCP/IP.
You can set sensor ip and test running by sopas program.
The sopas program is included in the manual CD.
This movie is running test video.
LMS511 communication sample code (tcp/ip)
reference here
http://study.marearts.com/2013/03/sick-lms511-sensor-data-acquisition.html
Source code is here(github)
https://github.com/MareArts/LMS511-SICK-Laser-sensor-communication-tcp-ip
youtube
https://www.youtube.com/watch?v=2LTpaDGus1Y
Thank you.
μΌμλμ ν°λ―Έλνλ‘κ·Έλ¨μΌλ‘ ν μ€νΈν΄ λ³΄κ³ μΆμλ°μ..μΌμμμ μΊ‘μ²ν raw data νμΌμ μ¬λ €μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€.
ReplyDeleteSorry, now I don't have sensor.
ReplyDeleteSo I cannot acquisition the raw data.
But 2~3 weeks later, I will study sick + camera fusion theme, then I will upload several raw datas.
Thank you.
μλ νμΈμ?
ReplyDeleteμμ€ μ€
float theta = (i*0.5-5) / 180 * 3.1415; μμ
μ 0.5λ₯Ό κ³±νκ³ λν -5 λ₯Ό νλμ§ κ΅¬μ²΄μ μΌλ‘ μ€λͺ ν΄ μ£Όμλ©΄ κ°μ¬νκ² μ΅λλ€.
I have a problem during running your code I have an error
ReplyDelete"Debug Assertion Failed!
Program: ..... .exe
File:...vsprintf.c
Line:244
Expresion:("Buffer too small",0)
PLease Help me to fix this thing
thank You
In MySyncSocket.cpp file there is a function called OnReceive(int). Inside this function you will find this code.
DeleteOneDIST="";
int sI=0;
while( szBuffer[Di] != 0x20)
{
OneDIST.Format("%s%c", OneDIST, szBuffer[Di++]);
}
Di++;
The local variable Di gets incrimented way beyond the szBuffer size while inside the while loop. That is what is causing the program to crush.
There is a little documentation here and I don't know what the while loop is doing, but in order to get the program working for me I did this.
OneDIST="";
int sI=0;
while( szBuffer[Di] != 0x20)
{
OneDIST.Format("%s%c", OneDIST, szBuffer[Di++]);
}
if(Di > 2048)//2048 is the szBuffer size
Di = 2047;
Di++;
This worked for me and I hope it works for you too. For me I still need to know what the while loop is doing. Any ideas?
Sorry, I can't run this program. So much time have passed.
ReplyDeleteBut in my prediction, character or communication buffer size may be smaller then your set size.
So, expand buffer size.
Thank you.
I can't get the code from the link.Could you send the code to my gmail? My gmail account is tranquocbao2608@gmail.com
Deletethank
Do you still used LMS511? if it worked with different platform can you share with me what kind of software that you used to communicate this sensor
ReplyDeleteThank You
I can't get the code from the link.Could you send the code to my gmail? My gmail account is LuckyZxy@gmail.com
ReplyDeleteI have sent the source code.
DeletePlease check your email box.
Thank you.
Thanks for your reply. But I made a mismake.My gmail account is luckyzxy182@gmail.com not LuckyZxy@gmail.com.Could you send me the source code again? Thanks again and wish you all the best.
DeleteOK
DeleteCheck again.
Thank you.
This comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteCould you send the code to me?
DeleteMy gmail account is timtsai0620@gmail.com
Sorry, I'm late because too much work...
DeleteCheck your email.
Thank you.
Hi,
ReplyDeleteCould you send the code to me?
My email: yes__31@hotmail.com
Thanks !
This comment has been removed by the author.
Deletehi
ReplyDeletecould you send to code to me?
My email: lhs8145@daum.net
please..
This comment has been removed by the author.
Deletecan u send me the code to itsmithya@gmail.com. i Bought the product i didn't received any CD with it.
ReplyDeleteThis comment has been removed by the author.
DeleteHi,
ReplyDeleteI'm trying to use Sick Laser LMS511 and i want to use your code. But i do not succeed to download it from the link, please send me on my email sama9972@gmail.com.
Many thanks,
This comment has been removed by the author.
Deletehi sir. Your sample is so good. I try to dowload your sample code, but i can't get the link. So could you mind share the samplecode to my email vodinhhuy@gmail.com. Thanks in advance!
ReplyDeleteThis comment has been removed by the author.
Deletehi,
ReplyDeleteCould you send the code to me?
My email: k2h1003@gmail.com
Thanks
This comment has been removed by the author.
DeleteTCP/IP κΈ°λ° μμ€κ° νμνλ° λ°μλ³Όμ μμκΉμ
ReplyDeletesorry I wrote wrong url.
DeleteCheck again the giuhub url in this post.
Thank you.
hello, I also searching LMS511 library. but that link is wrong. Please let me receive your code. My mail address is hyun6160@daum.net. Thanks
ReplyDeleteSource code is moved to github repository.
Deleteplease refer to github url on contents.
And your donate is will be helpful to maintain my blog.
Thank you.
This comment has been removed by the author.
ReplyDeletehello im trying to read the vlp 16 channel on labview any idea on how to proceed?? any help would be appreciated
ReplyDeleteHi can you send me the code to my email
ReplyDeleteOneDISTλ szBufferκ° λ¬΄μ¨κ°μ κ°κ² λλμ§ μ μ μμκΉμ?
ReplyDeletei want to use Serial to receive lms511’s data(continuous),but every time data is not same , do you have any idea process those data
ReplyDelete