how to talk to ethernet enabled instruments with VXI11 protocol (spectrum analyzer)

Discussion in 'PHP' started by praethorian, Jul 30, 2010.

  1. #1
    Hey everybody,

    I've just downloaded collection of source codes from http://optics.eee.nottingham.ac.uk/vxi11/. The main aim is to send command and get the responce from analyzer (linux command line). I was wondering if there is a way to grab the responce and play with it in PHP (making charts, etc.).

    I was thinking about the socket server/client, but I am not sure if this the right thing.

    Thanks,
    Petr
     
    praethorian, Jul 30, 2010 IP
  2. ze0xify

    ze0xify Peon

    Messages:
    13
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    php.net/fsockopen

    That will allow you to retrieve a socket response if the application allows for it. If not, you can use system() in php and it will return output. From there, you can utilise a chart application, such as plotkit (www.liquidx.net/plotkit/), to manipulate the display of data that you've retrieved. I hope i've answered at least some of your question, but I've never wrote software that works in the way you're working on.
     
    ze0xify, Jul 31, 2010 IP