05-20-2019 02:58 AM
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.
05-23-2019 09:11 AM
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.
06-09-2019 02:32 AM
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
06-10-2019 06:06 AM
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.