Hi Julien,
The module you use (NI-9215) is only supported with NI DAQmx driver (see your NI DAQ readme file). That's why your VI must be changed. You'll find in my post an example added to yours with a DAQmx implementation. I think you can use this example and modify it to your application (and remove the DAQ part of code).
I would like to tell you that you posted your request in the English part of the forum. So you must make it in English or post your question in the french part if you have ones. Here is the link to the french part of the forum :
Regards,