Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5625

Reading and writing to FTDI chip with VISA

$
0
0

Hello all,

 

I've been scouring the web and the NI forum for the past couple days trying to find a solution for my problem but nothing yet.

 

I have a PIC18 micro with its UART connected to an FTDI chip which is plugged into my PC via USB. I'm trying to use labview to do some very basic reading and writing but I can't seem to get it to work. It will write data out to the chip just fine; but it wont read anything coming back. In fact it tells me that there are 0 bytes in the buffer. I've tried all of the built in labview example and none of them seem to work. I also tried the examples on the FTDI site and they don't work either. I am using DTR flow control.

 

I have a logic analyzer reading the tx/rx lines coming out of the PIC and they are as expected.

 

I can't get it to work in MAX either.

 

Does anyone have any ideas of what's going on?

 

 

 

I also noticed that even though I use some 'wait' blocks between writes, when I use my logic analyzer the waits don't happen, all the transmitted bytes are right after each other...I even bumped up the waits between each write to 5 whole seconds to see if it had anything to do with a delay getting on the bus.

 

Thanks for your help,

 

Jason


Viewing all articles
Browse latest Browse all 5625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>