Is there a way to feed Adruino serial data to multiple Java programs?
Velleman's PCRU01 has a dll which deals with opening the port. An endless number of Java applications can load this dll through JNA and using pcru01 data feed. This is a one way communication were pcru01 send voltages reading to endless Java applications.
Is there a way to do the same with Adruino? Like for instance having a dll which will open the port and have methods like readAnalogInput() which will return the analog input in real time. This dll will open the port and endless number of applications can load it with no problems
Assuming all java apps are on a single computer, the functionality you're trying to achieve doesn't have anything to do with the Arduino - it's all about how you design the software on the computer that has to broadcast the serial data to the separate java apps.
I suggest having a "server app" that opens the Arduino USB port, accepts the serial data, sets up a localhost server, and serves out the serial data in json format. This is extremely scale-able and easy to implement in a language like Python
Sounds like a job for Node-Red. You can feed the serial port data to several nodes at the same time and depending on the complexity you can use a function node for each java program.
Robin2:
Make one of the Java programs so it communicates with the Arduino and passes on the data to the others - perhaps by writing it to a shared text file.
...R
Reply #1 has the same functionality with higher reliability