Message Boards Message Boards

Tutorial and package for the Redpitaya scope/generator board

Posted 8 years ago
Attachments:
POSTED BY: Christian Neel
3 Replies

enter image description here - you earned "Featured Contributor" badge, congratulations !

This is a great post and it has been selected for the curated Staff Picks group. Your profile is now distinguished by a "Featured Contributor" badge and displayed on the "Featured Contributor" board.

POSTED BY: Moderation Team

Hi again Ian,

Thanks for the feedback! About SocketConnect I had the info but since I wrote the package with the version 10.1 (I think) I never took the time to rewrite it after that. But you are right SocketConnect and readLine are probably the best ways to secure the connection. I'll try to test it when I can put the hand on a Redpitaya again one of theses weekend.

Christian

POSTED BY: Christian Neel

Hi again Christian,

This is really cool, I'm glad to see this package! I see that most of your usage of the J/Link component here pertains to be able to write and read from sockets. We have the ability now (since 10.3) to connect to a socket from the Wolfram Language with SocketConnect.

For example, some of your commands could become like this:

socket = SocketConnect["ip address"];
WriteLine[socket,"DIG:PIN LED9,1"]

Then when you need to read from the socket, you can use

result = ReadLine[socket]

Ian

POSTED BY: Ian Johnson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract