Robotarm AL5D & VB.net

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. :wink:

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?

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.

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.

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.

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.

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