Page 1 of 1

Programming in C++

Posted: Sun Jan 06, 2019 4:35 pm
by BecauseIHaveTo
I'm trying to programm via C++. My plan was to use the SCPI commands and send them via TCP to the RP. In order to build a socket I use the SFML Library. Now I got some problems with my Project:
  • When I start the SCPI Server on my Browser, it shows an different IP-Address then the one I used to connect to my RP. Which one is now the right own for the SCPI commands?
  • Do I just need to send the SCPI commands to the RP or is there any other step necessary? At the moment I open a TCP connection and use the rp.h Headerfile to access the commands. I store the in an packet and sent them. Is anything wrong with this methode.
I've read several times now that the communication with SCPI commands can become realy tricky so I wanted to take a look at the visual programming. But everytime I want to start the Server vor Visual Programming, the website freezes and nothing happens. I've already update the OS but this didn't change anything. :?
Thanks for your help in advance :)

Re: Programming in C++

Posted: Tue Jan 08, 2019 9:27 pm
by redpitaya
Hi,
you are right, you should see the same IP address for connecting to RP and reported after starting the server.
Is your RP behind a router or other networking device? How are you connected to it?

By the way, I hope you know that it is not possible to run SCPI commands/programs in parallel with web applications.

Also, until next time, did you researched this page: https://redpitaya.readthedocs.io/en/lat ... I%20Server

Or, also this developers guide for serial commands: https://redpitaya.readthedocs.io/en/lat ... I%20Server

Did you try to start the server manually? from cli https://redpitaya.readthedocs.io/en/lat ... r-manually