Would need some help with ocamlrpcgen and Rpc use

Matthieu Dubuget
2020-08-01T21:54:59Z

Hello, I'm trying to drive a oscilloscope. For this, I started from this [vxi11.x](https://github.com/applied-optics/vxi11/blob/master/library/vxi11.x) and slightly modified it (replaced `long` and `char` by `int`), which works (tested ...

Hello,

I'm trying to drive a oscilloscope. For this, I started from this vxi11.x and slightly modified it (replaced long and char by int), which works (tested under Linux).

I then used ocamlrpcgen like this: ocamlrpcgen -aux -clnt -int unboxed vxi11.x.

And tried to connect to my instrument with the following:

let c = Vxi11.Vxi11_clnt.DEVICE_CORE.DEVICE_CORE_VERSION.create_client (Rpc_client.Inet("172.17.1.31",111)) Rpc.Tcp;;
let l = Vxi11.Vxi11_clnt.DEVICE_CORE.DEVICE_CORE_VERSION.create_link c {clientid=2; lockdevice=false; lock_timeout=1000; device="instr0"};;

The first line is working: it returns a client, which I can inspect (I checked the program number, etc.).

But the second line triggers Rpc.Unavailable_program.

I'm now blocked, and do not know how to go further in solving this problem.

Any suggestion?

Best regards