07-23-2003 12:06 PM
08-13-2004 05:41 AM
04-03-2005 07:37 AM
04-04-2005 01:06 AM
06-24-2005 04:15 AM
06-16-2008 04:10 AM
03-13-2009 06:20 AM
04-08-2009 10:46 AM
Just hoping htat the thread is still alive.
I am using FT232R chip with my LabVIEW(8.5) program.
I am just using the basic functions Like FT_OPEN, CLOSE, QueueStatus, READ, WRITE etc.
each function works fine except the READ one.
I have set the Bytes to Read = 1600. and after executing the READ function, when i read Bytes Read it gives the O/P = 1600.
However, the string returned by the ReAD function comprises of only 1 Byte.
What could be the problem??
Ritesh
04-08-2009 12:07 PM
Hey Ritesh,
Have you tried the example on the FTDI site:
http://www.ftdichip.com/Projects/CodeExamples/LabVIEW.htm
(Example 1)
It is a bit hard to be specific about your problem without your VI or hardware. The 232 chip is generally no problem. If you are only getting 1 byte back it may be because you are either only asking for one back (FT Read Byte Data VI, 'Bytes to Read' terminal), or it may be because there is only one byte in the queue. You can use the 'FT Get Queue Status' VI to load the correct queue size in to the 'Read Byte Data VI, as per the example. Remember the FTDI will time out if it does not receive the expected number of bytes, returning only what it has.
04-08-2009 01:11 PM
Hi BlueTwo,
I tried with that example itself when i first used the FTDI VIs.
I am actually following the same procedure as the one you suggested in your post.
I am using "GetQueueStatus" to check the no. of bytes and if the bytes>=1600, i read them using "FT_READ" function. Input to the Function(Bytes to Read) = 1600.
and the O/P returned by the Function(Bytes Read) = 1600.
However, the output string contains only 1 byte.
This is what that looks so confusing. If Bytes Read return = 1600, then why the string contains 1 byte.
Ritesh