For a computer, even a Raspberry Pi, to talk to hardware you will need drivers. There are limited drivers from NI for Pi that can be found here:
https://forums.ni.com/t5/NI-Labs-Toolkits/Low-Cost-USB-DAQ-Driver-for-use-with-Raspberry-Pi/ta-p/353...
You could try installing one of the flavors of Linux that NI supports, however, from a brief investigation, there is no USB support with Linux. You can find the device drivers and readme files here:
http://www.ni.com/download/ni-linux-device-drivers-2018/7664/en/
also, to use a NI-9215 module you would need a cDAQ chassis, there are USB cDAQ chassis but as I said before, there is no USB support for Linux and there are only 2 USB devices that work with Pi, that you will find on the first link.