Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Reading Shared Variable Programmatically

I've deployed executable running on 3 NI myRIO devices. I've used shared variable library hosted on myRIO to remotely monitor the processed data by myRIO. The response on Data Dashboard is fine. However, I'm also trying to build a desktop VI to present the data in terms of graphs charts and log it on disk. To do that I'm using shared variable PSP palette functions. I'm quite fed up with this error SVE is too busy to respond even when the variable updates are being displayed on NI Distributed System Manager. This distributed system manager is also messed up takes several clicks to load the library and display updates of shared variables. What am I doing wrong? Is there any other reliable custom communication protocol for this kind of scenario?Any Example how to build such code? I've tried TCP but it didn't work to receive data from two myRIOs. The error was TCP network operation exceeded limit. 

Attached Video:

https://drive.google.com/open?id=0B0pmtgxFRuYHakJKMU92TGUzdGM

 

 

0 Kudos
Message 1 of 4
(4,186 Views)

If you didn't know your code, would you understand what is happening with the quick scrolls across the code?  It's far more helpful to include the code so we can take a look.

 

What happens if you run a single myRIO?  Do you see a success or do you get one of the SVs on the device to error out?  It looked like the problem existed on the first myRIO in the video.

 

When you say monitor, are you ok with lossy monitoring?

0 Kudos
Message 2 of 4
(4,173 Views)

Thanks for replying. Reading shared variables programmatically is lossy,I agree. And it works perfect one moment and does not work altogether the other. I've moved to network streams with state machine for reconnection. The performance is much better now.

0 Kudos
Message 3 of 4
(4,163 Views)

That's typically a better solution to send data.  SVs are only really good to see the current state if you don't care they are lossy.  Glad to hear you're up and running.

0 Kudos
Message 4 of 4
(4,155 Views)