CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Converting serial to parallel
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 20159

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 10:17 am     Reply with quote

QUATECH, do cards for Express bus, which implement the PCI chipset needed to produce a 'real' parallel port, which can be set to the LPT1 port addresses, and can be used by software like LabView. You may need to run something like 'porttalk', to allow the software to directly access the port, but these are off the shelf items, but because of the complexity involved, they are not cheap.

Best Wishes
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 4:30 pm     Reply with quote

I'm always referring to FTDI interfaces...

After you finally revealed, that you are aiming to LabVIEW control, I like to add, that FTDI devices can be of course also driven by LabVIEW
http://www.ftdichip.com/Support/SoftwareExamples/CodeExamples/LabVIEW.htm

A more general approach would be to write an ActiveX control to interface the FTDI parallel port and access it by LabVIEW automation functions.
Wayne_



Joined: 10 Oct 2007
Posts: 681

View user's profile Send private message

PostPosted: Fri Jan 07, 2011 3:24 am     Reply with quote

The FTDI USB to Parallel devices use the Virtual Com port drivers D2XX and FTD2XX.dll present a virtual COM port to the PC. By writing serial data via the virtual COM port you can bit bang the parallell port on the device.

You therfore need to tell LabView how to use this virtual com port to do the same job as a parallel port. Use COMn instead of LPT1.

I am not a LabView expert so I don't know if this is possible.

Labview can not access the FTDI device by writing to LPTn port or accessing the LPTn port addresses directly!

As far as I can tell.

There is a lot of info on the FTD site with regards to LabView, I sugest you read some of it Smile
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Jan 07, 2011 4:44 am     Reply with quote

More exactly, D2XX and VCOM are alternative drivers for the FTDI device.

A very basic method would be to use a VCOM driver and the FTDI interface as 8-bit port emulating
a serial port. Each single character written to the VCOM is send as 8-Bit parallel data to FTDI device.

Using the dedicated FTDI LabView drivers and D2XX mode of the device allows to control each port pin
individually and also to configure input pins.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group