10-20-2014 06:46 AM
Hello,
I have some cRio devices that need to be controlled and provide data through labview.
I have set up a FPGA Vi that talks to a Host VI and this host VI writes the data to shared variables or reads from them.
cRio -> FPGA VI -> Host VI -> SharedVariables -> Client VI
The client should be able to get measured data and also control (write to this shared vars) the host VI.
Now the idea is to have Softwareagents, written in Java, on different machines that substitue this client vi and I wanted to access the shared variables directly with Java.
Since there is this Dashboard app for Android there has to be a proper way but I couldn't find any proper documentation on this.
Can anyone give me some advice on how to implement this?
The better question is if this is the best solution to achive the described scenario. I chose shared vars because many answers on stackoverflow state not to implement tcp/ip connections by myself because errorhandling could become tricky.
10-20-2014 06:59 AM - edited 10-20-2014 07:07 AM
There is a C API for access of shared variables. I think it should be possible to use this from JAVA.
Norbert
EDIT: You can look here for some more elaborate answer. I am not sure if there is a generic C/C++ API available without going via DataSocket nowadays.
10-20-2014 07:09 AM
10-20-2014 07:13 AM
I haven't reviewed the example, but this could help to answer your question.
Norbert
10-20-2014 10:13 AM
Well thank you I'll have to dig deeper into that code, that will not become a quick fix. I was able to find this whitepaper however it doesn't describe the protocoll it uses. How can that be non documented? Would you stick with the solution I came up with? or is there a better way?
Btw, why can't I edit my first post?