Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between pc (c#) and microprocessor via USB- VISA driver

My lecture has given me a project with the name above. The microprocessor I'm intending to use is STM32F407 (the only one I got). Can someone help me to specify what exactly I have to do now? I have no idea about  NI VISA driver and also USB protocol ( usually I use USB-COM). If possible, please share with me a similar project. Thank you so much for your support.

 

0 Kudos
Message 1 of 4
(2,799 Views)

Hi Meihk,

 

What software are you using for this project? For any National Instruments products interfacing with third-party devices, the NI-VISA driver allows communication between these devices. This driver can be downloaded here: http://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html#305862

 

If you are not using NI software, it would be helpful to check the specification manual and user guide of your microprocessor to see if any drivers are required. 

 

Regards,

Andrea W.

Andrea W.
ELP Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,756 Views)

Hi Andrea.W,

Sorry for leaving this thread so long. 

I intend to use Visual Studio to write C# program. As I can see, VS can also be used to work out this project, right? 

And also I don't know what to do after installing VISA driver, can you specify? 

Thank you so much

 

0 Kudos
Message 3 of 4
(2,693 Views)

The way i have it set up is:

Microcontroller (atmega324a) communicates over UART with an FTDI FT232R chip (usb to serial IC). I read/write to it with NI-Visa, by setting up VISA configure serial port, and then VISA read/write. The port configuration needs to be the same on both ends, so same term char, same baud rate, same everything or it won't work.

 

For VISA read function i recommend reading something like 1000 bytes instead of using Number of bytes at port function.

0 Kudos
Message 4 of 4
(2,688 Views)