LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Example-VI "Convert LPT to I2C"?

Solved!
Go to solution

Hello!

I have to convert data from a LPT-interface into I2C!

Is that possible? Does anyone knows a example-VI to solve this problem?

 

regards,

Patrick

0 Kudos
Message 1 of 6
(4,506 Views)
In order to do this you must have some hardware. You can not do this in software only. Besides bidirectional communication using the LPT and Labview is not easy. I know NI sells a USB to I2C converter. If you need to use the LPT port. I think the solution is to use some sort of micro-controller with I2C interface.


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 2 of 6
(4,479 Views)
There are several vendors that sell I2C interfaces for use with parallel ports. Cal-Bay is one, though it's expensive, and I've seen cheaper ones. Google can help you find one. You can probably make one up yourself as it involves some level shifting and some pullups. Since you're controlling the parallel port, it will be software-timed, so you cannot implement a specific clock rate.
Message 3 of 6
(4,471 Views)

Thanks for your answers 🙂

 

I have realized the hardware like the attached connection sheme.

Now, I like to read and handle the parallel-port-data with the I2C.

 

Are there LabVIEW VI's to realize that?

 

regards,

patrick

0 Kudos
Message 4 of 6
(4,445 Views)

Sorry, at the last thread wasn't a attachment.

 

Here now the schematic...

0 Kudos
Message 5 of 6
(4,439 Views)
Solution
Accepted by topic author patrick1988

Do you know these two threads ?

 

How to use Serial/Parallel Port/DAQ card of a PC to run a SPI communication?

http://forums.ni.com/ni/board/message?board.id=170&message.id=137823#M137823

It's more about SPI, and you need open collector output for the I2C, however make shure you take a look at the diagrams.  

 

Implementing I2C or SPI with Pxi6508 in Labview

http://forums.ni.com/ni/board/message?board.id=70&message.id=7193#M7193

 

 

Message Edited by Henrik Volkers on 12-03-2009 08:46 AM
Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 6 of 6
(4,428 Views)