Here is a module that communicates with the serial oscilloscope as seen in this thread: https://www.b4x.com/android/forum/threads/serial-oscilloscope.128346/ As far as my knowledge goes it is not possible to be created as a b4xlib because different boards have different number of Analog Input...
www.b4x.com