+ Post New Thread
Results 1 to 11 of 11
  1. #1
    Advanced Member level 2
    Points: 4,099, Level: 15
    Achievements:
    7 years registered

    Join Date
    Apr 2011
    Posts
    550
    Helped
    24 / 24
    Points
    4,099
    Level
    15

    I need to control signal generator through PC by sending it instructions via RS232

    It is required that the setting of an arbitrary waveform generator on bench be controlled in time remotely. The device in this case has a serial port. The data is interpreted by the device as per its built in "instruction set" which is given in its user manual.

    The concept is that a file shall store the actual data to be sent down the serial port to this device from a PC, and this file shall also store the delay between sending successive lines from this text file down the serial port. What program can I use to carry out this task in the most quick manner i.e without having a write my own application in C# or something? I only need a program which will write data to the serial port, one line at a time. And if the line contains a delay instruction e.g delay(200), the program shall wait for the given time before it reads the next line in the text file and write it to the serial port.

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 24,248, Level: 37
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,651
    Helped
    1031 / 1031
    Points
    24,248
    Level
    37

    Re: I need to control signal generator through PC by sending it instructions via RS23

    You're asking for something pretty specific. I'm afraid you're going to have to get to work and write a program.


    1 members found this post helpful.

  3. #3
    Newbie level 4
    Points: 1,367, Level: 8
    Achievements:
    7 years registered

    Join Date
    Mar 2008
    Posts
    5
    Helped
    1 / 1
    Points
    1,367
    Level
    8

    Re: I need to control signal generator through PC by sending it instructions via RS23

    what do you mean "control"?
    are you talking about GPIO?



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 24,248, Level: 37
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,651
    Helped
    1031 / 1031
    Points
    24,248
    Level
    37

    Re: I need to control signal generator through PC by sending it instructions via RS23

    Quote Originally Posted by SunnySkyguy View Post
    Why not use audio port and Audacity free s/w to generate any audio signal.? Any standard shape + noise, or harmonic filtered or .... With spectrum analysis in feedback thru aux in recorded.
    OP asked to control an arbitrary waveform generator, not generate audio signals; those are two quite different functions.



  5. #5
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: I need to control signal generator through PC by sending it instructions via RS23

    Quote Originally Posted by matrixofdynamism View Post
    It is required that the setting of an arbitrary waveform generator on bench be controlled in time remotely. The device in this case has a serial port. The data is interpreted by the device as per its built in "instruction set" which is given in its user manual.
    could you use a terminal emulator such as teraterm pro
    http://ttssh2.osdn.jp/index.html.en

    you can type commands into the terminal window to be transmitted over the RS232 COM port
    also you can open a file to be transmitted


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 5
    Points: 34,824, Level: 45
    Achievements:
    7 years registered Created Blog entry Created Album pictures
    SunnySkyguy's Avatar
    Join Date
    Sep 2007
    Location
    Richmond Hill, ON, Canada
    Posts
    6,729
    Helped
    1678 / 1678
    Points
    34,824
    Level
    45
    Blog Entries
    7

    Re: I need to control signal generator through PC by sending it instructions via RS23

    good idea Horace,

    I forgot all about terminal emulators since the BBS days

    At the time, the best program for auto-learning scripts was QModem.
    I see it has recently been rejuvenated from DOS to an open source Windows terminal emulator with many script features to make it easy.

    http://qodem.sourceforge.net/
    A best design is easily achieved with good test specs™
    A better question deserves a better answer. ™
    ... so include all your acceptance criteria ( values, % tolerance) and assumptions in your question or any design.

    ... Tony Stewart EE since 1975
    - slightly north of Toronto



  7. #7
    Advanced Member level 5
    Points: 12,632, Level: 26
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,917
    Helped
    411 / 411
    Points
    12,632
    Level
    26

    Re: I need to control signal generator through PC by sending it instructions via RS23

    many open source terminal programs are available .

    MSWindows has 'hyperterminal' built-in.(i think only one mswin version did not included it. all oother Win versions have hyperterminal.)

    (or write win32api , with c program , you can control, though you have opted it out)



  8. #8
    Advanced Member level 2
    Points: 4,099, Level: 15
    Achievements:
    7 years registered

    Join Date
    Apr 2011
    Posts
    550
    Helped
    24 / 24
    Points
    4,099
    Level
    15

    Re: I need to control signal generator through PC by sending it instructions via RS23

    Will it be possible to use a type of "delay instruction" in the file as well if I use this terminal emulator? So if the text file contains a line "delay 100" for example, the terminal emulator shall actually wait for 100 ms and then transmit the next line in the file down the serial port.



  9. #9
    Advanced Member level 5
    Points: 12,632, Level: 26
    Achievements:
    7 years registered

    Join Date
    Apr 2010
    Posts
    1,917
    Helped
    411 / 411
    Points
    12,632
    Level
    26

    Re: I need to control signal generator through PC by sending it instructions via RS23

    Quote Originally Posted by matrixofdynamism View Post
    ... So if the text file contains a line "delay 100" for example, the terminal emulator shall actually wait for 100 ms and then transmit the next line in the file down the serial port.
    this is a command for the terminal . not for instrument.
    you may have to write your own pack for interpreting .



  10. #10
    Advanced Member level 5
    Points: 12,735, Level: 27
    Achievements:
    7 years registered

    Join Date
    Nov 2008
    Location
    Norwich, UK
    Posts
    2,123
    Helped
    598 / 598
    Points
    12,735
    Level
    27

    Re: I need to control signal generator through PC by sending it instructions via RS23

    Quote Originally Posted by matrixofdynamism View Post
    Will it be possible to use a type of "delay instruction" in the file as well if I use this terminal emulator? So if the text file contains a line "delay 100" for example, the terminal emulator shall actually wait for 100 ms and then transmit the next line in the file down the serial port.
    teraterm pro does have a Transmit Delay in the Setup>SerialPort option but it does not appear to work
    however, realterm
    http://realterm.sourceforge.net/
    has a option to transmit a file with a delay after every character and/or every newline
    the attached shows it transmitting a file with a delay of 100msec after each new lineClick image for larger version. 

Name:	realterm1.jpg 
Views:	4 
Size:	100.2 KB 
ID:	119246



    •   AltAdvertisement

        
       

  11. #11
    Advanced Member level 5
    Points: 34,824, Level: 45
    Achievements:
    7 years registered Created Blog entry Created Album pictures
    SunnySkyguy's Avatar
    Join Date
    Sep 2007
    Location
    Richmond Hill, ON, Canada
    Posts
    6,729
    Helped
    1678 / 1678
    Points
    34,824
    Level
    45
    Blog Entries
    7

    Re: I need to control signal generator through PC by sending it instructions via RS23

    http://qodem.sourceforge.net/

    has everything you need.. ,
    delay,
    send file as data,
    wait for response,
    if ,then ,else , commands

    It is a high level scripting language that is easy to learn.
    A best design is easily achieved with good test specs™
    A better question deserves a better answer. ™
    ... so include all your acceptance criteria ( values, % tolerance) and assumptions in your question or any design.

    ... Tony Stewart EE since 1975
    - slightly north of Toronto



--[[ ]]--