Lynxmotion Tech Support

www.lynxmotion.com
It is currently Wed May 22, 2013 9:45 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Robotarm AL5D & VB.net
PostPosted: Sun Nov 01, 2009 1:23 pm 
Offline
Roboteer

Joined: Thu Oct 29, 2009 8:22 am
Posts: 11
hellow,
I had just bought a Lynxmotion robotarm AL5D.
Now, i want to program him in VB.net
My problem is that, when i send another command, he immediately process this.
But he was already busy with another one.
How can i program that he see that he is busy?
thanks


Top
 Profile  
 
PostPosted: Sun Nov 01, 2009 1:28 pm 
Offline
Robot Guru

Joined: Tue Feb 28, 2006 11:27 am
Posts: 2172
dj_icI wrote:
hellow,
I had just bought a Lynxmotion robotarm AL5D.
Now, i want to program him in VB.net
My problem is that, when i send another command, he immediately process this.
But he was already busy with another one.
How can i program that he see that he is busy?
thanks

I'd probably go for the query movement status command as described in the user manual. ;)


Top
 Profile  
 
PostPosted: Sun Nov 01, 2009 1:41 pm 
Offline
Roboteer

Joined: Thu Oct 29, 2009 8:22 am
Posts: 11
yes, but it is not possible in vb.net.
I had try it with sending "q" and then listening for datareceiving.


Top
 Profile  
 
PostPosted: Sun Nov 01, 2009 1:57 pm 
Offline
Robot Guru

Joined: Tue Feb 28, 2006 11:27 am
Posts: 2172
dj_icI wrote:
yes, but it is not possible in vb.net.
I had try it with sending "q" and then listening for datareceiving.

you can't read from a serial port in vb.net?


Top
 Profile  
 
PostPosted: Thu Nov 05, 2009 4:45 am 
Offline
Roboteer

Joined: Thu Oct 29, 2009 8:22 am
Posts: 11
You can write to a serial Port, but not read?


Top
 Profile  
 
PostPosted: Thu Nov 05, 2009 6:11 am 
Offline
Robot Guru

Joined: Tue Feb 28, 2006 11:27 am
Posts: 2172
dj_icI wrote:
You can write to a serial Port, but not read?

My question to you exactly. You chose to program in vb.net so the expectation is that you are familliar with it. What aspect of programming in vb.net is preventing you from reading from a serial port?

An example perhaps.


Top
 Profile  
 
PostPosted: Sun Nov 08, 2009 4:05 pm 
Offline
Roboteer

Joined: Thu Oct 29, 2009 8:22 am
Posts: 11
The code in the example is almoust the same like the one I made.
But 'Datareceived' don't work.
you only received something when you send 'q'.
But also then, datareceived don't reacted.


Top
 Profile  
 
PostPosted: Sun Nov 08, 2009 6:20 pm 
Offline
Robot Guru

Joined: Tue Feb 28, 2006 11:27 am
Posts: 2172
how long do you wait for a reply? as in how many ms do you wait until you decide the query has timed out? the information on the command says it could be up to 5ms, but if the serial port is buffered on the TX side (it is) and you are using any sort of USB-to-serial adapter (not uncommon) the delay could be more like 20-25mS pretty easily.


Top
 Profile  
 
PostPosted: Mon Nov 09, 2009 12:57 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
If you are using a USB to serial cable make sure it uses the FTDI chip set and set the Latency to its minimum. The FTDI cables are fast and trouble free.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Tue Nov 17, 2009 1:12 pm 
Offline
Roboteer

Joined: Thu Oct 29, 2009 8:22 am
Posts: 11
thanks EddyB for all your help.
but it was very simple.
I just need to send "q".
and than reading the input.
It didn't work because, i read to fast.
When i wait a moment, i had results.
Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group