03-03-2015 04:21 PM
03-03-2015 05:00 PM
Hello Pramit!
From my interpretation, it sounds like the I2C --> USB adapter chip that you are referring to is an on-board device, and that you connect PC USB to board USB. If this is the case, then you could potentially develop a solution without requiring additional hardware by writing a LabVIEW program that communicate with the device over USB.
I am not experienced with the USB8451, but looking at it, it is a device for connecting PC USB directly to the device's I2C bus itself.
03-04-2015 04:01 AM
Hi Vitan!
That is definitely great help to start! 🙂
But I believe that we need specific drivers for specific devices for communication LabVIEW.. is that true? If yes, can you guide me how can I look for device drivers of my choice in LabVIEW?
Warmest Regards
Pramit
03-04-2015 07:04 AM
NI provides a LabVIEW API for the USB8451. If you use the USB8451, you would use the provided API to write a program that controls the USB8451 and you would do all of the I2C communication in your program. This would mean using functions / SubVI's to connect to the USB8451 and then perform I2C operations through it.
If you use USB already on your device, then you would probably use NI-VISA as the driver and have to get / write your own API to talk to the specific device. The manufacturer may have a LabVIEW (or other) API available for talking to the device that you could get. If not, then you would have to understand the details of how to communicate with the device and then write an API using NI-VISA serial functions. This would mean making NI-VISA be the assigned driver for the device and then using VISA Serial functions / SubVI's to send the messages and receive the responses.