Results 1 to 3 of 3

Thread: Help for a beginner

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2010
    Posts
    52

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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?

  3. #3

    Thread Starter
    Member
    Join Date
    Jan 2010
    Posts
    52

    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
  •  



Click Here to Expand Forum to Full Width