02-26-2023 10:00 PM
Hi Sir,
I have an i2c interface temperature sensor, I try to use labview to read the value.
I buy a usb-to-i2c tool, after installing the driver, i can only find it in "Computer managment":
But i cannot find it in NI-Max.
Anyone have this kind of experience to handle it ?
Thanks.
Solved! Go to Solution.
02-26-2023 10:59 PM
Please share more information on your Temperature sensor board with the USB to I2C tool - links to user guide/manual or model number and possibly some photos.
Typically, these USB to xx protocol chips show up as a VCOM (virtual COM) port and you use VISA libraries to communicate to these USB to xx protocol chips. In some cases, such as the FTDI chips, there are special driver DLL provided by the manufacturer and you call these DLL in LabVIEW to communicate with the USB chip which in turn based on the commands you send will translate into respective protocol commands (like I2C in your case). All these are manufacturer and chip dependent and hence need exact details to guide you.
02-26-2023 11:33 PM
Hi Sir,
For i2c chip:
For usb to i2c tool, use CH341 series:
So you mean normally, if we choose the right usb-to-i2c tool and driver, we can see it in NI-Max ?
Any recomendation for this tool ?
Thanks.
02-27-2023 10:34 AM
@Brzhou wrote:So you mean normally, if we choose the right usb-to-i2c tool and driver, we can see it in NI-Max ?
Well, you will never see the I2C device itself in NI-Max.
You will only see the Virtual Com port your USB to I2C is using.
02-27-2023 08:55 PM
NI has its own I²C/SPI Interface Device, USB-8452. It comes with native LabVIEW support.
02-27-2023 09:19 PM
@Brzhou wrote:
Hi Sir,
For i2c chip:
For usb to i2c tool, use CH341 series:
So you mean normally, if we choose the right usb-to-i2c tool and driver, we can see it in NI-Max ?
Any recomendation for this tool ?
Thanks.
Yes, the choice of the right USB-to-I2C tool will make your life easy.
I would suggest USB-8452 due to its native drivers for LabVIEW
02-27-2023 09:37 PM
Thanks, i will check this device in website.
02-27-2023 09:39 PM
But i guess usb8452 is costly, any cheap solutions ?
Thanks.
02-27-2023 09:39 PM
I see, thanks Sir.
02-27-2023 11:23 PM
@Brzhou wrote:
But i guess usb8452 is costly, any cheap solutions ?
Thanks.
There are of course cheap solutions, then you will spend engineering time in developing code to automate it and debug hardware issues. Considering the engineering cost to get it up and running, it would be wise to get off the shelf solution that is proven to work.
This seems to be cheap option - https://www.adafruit.com/product/2264?gclid=EAIaIQobChMI-5fip7y3_QIVcQNlCh0GbgnVEAQYASABEgIB9PD_BwE
Now you've to look for LabVIEW drivers for FT232H with wrappers for I2C functionality, if not available, you could develop your own and debug it to working state.