PDA

Click to See Complete Forum and Search --> : Help for a beginner


bakero
Jan 13th, 2010, 04:07 AM
Hi everyone.

As I've said on the title, I am a completely beginner with VB.

I have to develop a software to communicate with a mesaurement device, through ethernet.

The program wouldn’t be very difficult since I just need to send on/off commands and save the received data into a file.

I don't know how to use the winsock class to open port, establish communication, data exchange...

I've been having a look on the server/client example in 101 samples for VS 2003, but I don't understand it completely, and I don't know whether it'd work with my device or not.

Could anyone of you give me a hand with any existing example about how to control instruments through ethernet?

I am sure the program I need is not a rocket science, but I don't know where to start.

Thanks in advance for all your help.

Regards.

Hack
Jan 13th, 2010, 06:03 AM
Welcome to the forums. :wave:

The place that I would start is the vendor or your "mesaurement device" - do they have an SDK for their product that would provide you with some sample code?

bakero
Jan 14th, 2010, 02:20 AM
Hack, many thanks for the wellcome :thumb:

Touching here and there, I've already done some advances.

Now I can communicate with my sensor thanks to a routine in VB. The problem is that the devices only measures until the 'button click' routine finishes. After that, it gives up sending me data.

I guess the reason is that I need to run that routine in a kind of background untill another routine sends it a 'stop' flag. Am i right? How could I do it?

Many thanks