Example Code

Controlling Instruments with Visual Studio

Is there any documentation or example code showing the steps necessary to control and NI instrument through a C# application in Visual Studio? I have not been successful in finding information on how to accomplish this task. I've downloaded IVI drivers and NI-VISA and still can't figure it out.

 

Thanks for any help.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
scottj0403
Member
Member
on

Refer to this

https://www.ni.com/zh-tw/support/documentation/supplemental/18/ni-daqmx--ni-visa-and-ni-488-2--net-e...

 

There is a C# example folder in yout PC when your PC has been installed NI-VISA.

Windows 10 -> Start -> All Apps -> National Instruments -> GPIB Examples

If not, download and install the NI-488.2.

Screenshot 2023-03-25 135856.png