|
-
Jan 13th, 2010, 05:07 AM
#1
Thread Starter
Member
Help for a beginner
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.
-
Jan 13th, 2010, 07:03 AM
#2
Re: Help for a beginner
Welcome to the forums. 
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?
-
Jan 14th, 2010, 03:20 AM
#3
Thread Starter
Member
Re: Help for a beginner
Hack, many thanks for the wellcome 
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|