Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5566

Reading TCP not blocking the program on myRIO

$
0
0

Hi, I need your help next time. I'm making ball balancing platform. So, I have a program running on PC, where camera observes the ball, finds his position and sends it via TCP to a myRIO, which read the messages and controls the engine using PID regulator. The problem is, that to read the message there is needed timeout in reading block, and it makes my system not stable. I need to run the program with regulator and not wait for coordinates. I need something like an interrupt but I've no idea how to do it on myRIO. 

 

On the photo below I show the part of program receiving the message. First block check if received coordinate "x" or "y" and second get the value.

danielll99_0-1636931512593.png

 


Viewing all articles
Browse latest Browse all 5566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>