If you use an NI GPIB controller, then you will need to install NI-488 and it is recommended to install and use NI-VISA. There will be coding examples installed with the drivers. You don't mention the model number but you might find an existing instrument driver from NI or the vendor.