JAVA JNI Channels (channel id) missing when reading data
Posted: Wed 11. Oct 2023, 15:14
Hi,
thanks to you, I got my java program connected to the PCAN FD system yesterday and thanks to your netbeans program provided I could overcome the TPCANStatus.PCAN_ERROR_QRCVEMPTY message I got after some time always.
And learned I can read meassages two wasy: myself or event driven by JNI interface if receive-events are detected.
But reading data with a while(true) loop or event driven, channels are missing.
Situation:
===========
- It's a PCAN-MicroMod-FD connected to PCAN-PCI Express FD.
- 4 channels are programmed with one ad-converter each. PCAN-View works fine, see fig1 attached.
In my java programm, I am receiving one channel only (id=300h). I assumed first, it's my fault, but checking the connection with the netbeans application you have provided (fig2), it's the same.
Therefore, I assume, the problem must be somewhere else, maybe it's the window version (actual Win10) or the java (java 17) or something else, hopefully you can help. The goal of the software shall be to collect all data incoming like in the .trc-files written by PCAN-View when connected.
best regards - Philipp
thanks to you, I got my java program connected to the PCAN FD system yesterday and thanks to your netbeans program provided I could overcome the TPCANStatus.PCAN_ERROR_QRCVEMPTY message I got after some time always.
And learned I can read meassages two wasy: myself or event driven by JNI interface if receive-events are detected.
But reading data with a while(true) loop or event driven, channels are missing.
Situation:
===========
- It's a PCAN-MicroMod-FD connected to PCAN-PCI Express FD.
- 4 channels are programmed with one ad-converter each. PCAN-View works fine, see fig1 attached.
In my java programm, I am receiving one channel only (id=300h). I assumed first, it's my fault, but checking the connection with the netbeans application you have provided (fig2), it's the same.
Therefore, I assume, the problem must be somewhere else, maybe it's the window version (actual Win10) or the java (java 17) or something else, hopefully you can help. The goal of the software shall be to collect all data incoming like in the .trc-files written by PCAN-View when connected.
best regards - Philipp