02-28-2013 10:11 PM
Hello,
I'd like to create a LabVIEW program that communicates to a stand alone component using I2C.
I'm guessing that I will need to use bitbanging to get this accomplished.
Does anyone have any examples of this?
Is this even possible to do using LabVIEW? (You'd somehow have to quickly switch your data line from input to output)
Help on this subject would be greatly appreciated!
Solved! Go to Solution.
03-01-2013 06:56 AM
Check out this thread: i2c interface in LabVIEW
03-01-2013 08:36 AM - last edited on 03-27-2024 05:23 PM by Content Cleaner
03-01-2013 09:11 AM
Of course I need hardware!
What I'm asking is if I can use any ol' DAQ to do this.
Let's say I have the USB-6009, is it possible to make a LabVIEW program that communicates to a device (through this DAQ) using I2C?
Or do I need a special DAQ?
p.s. I've already looked at that other i2c thread and didn't find it helpful.
03-01-2013 09:24 AM
No, you cannot use the 6009. The other thread does list some of the DAQ hardware that you can use ("like the NI 6547, 6548, 6551, 6552, and 6556 devices") and lists the requirements so you can review NI DAQ boards to see if they meet the specs ("any device that supports per-cycle tri-stating"). What other help do you need? The 8451 is the cheapest option from NI if all you need is I2C.
03-01-2013 09:33 AM
Ah okay, this helps!
I also have a myDAQ, but it doesn't say anything about supporting per-cycle tri-stating.. I'm guessing this means it doesn't support it?
Thanks
03-01-2013 09:39 AM
I have never used myDAQ. If the digital I/O is software timed like the 6009, then no.
03-01-2013 01:48 PM - last edited on 03-27-2024 05:23 PM by Content Cleaner
The myDAQ does not support per-cycle tri-stating, but does have hardware timing, unlike the USB 6009.
I would recommend getting a USB-8451.