Phantom Lord Posted August 16, 2005 Report Share Posted August 16, 2005 Hi, I'm trying to send two bytes to an FPGA with the vi in attachment. The bytes are sent to a virtual com port which is actually an USB port, but this is handled through an FTDI chip. When two bytes are sent, the FPGA sends 11111111 or Quote Link to comment
kel712 Posted August 16, 2005 Report Share Posted August 16, 2005 Try wiring a false to "Enable Termination Char" on the configure serial port and add a "bytes at serial port" and use the output of this for the input to the byte count on visa read. You might need to also add a delay between the write and the "bytes at serial port" depending on how quick its response is. Hope this makes sense! Kelvin. Quote Link to comment
Phantom Lord Posted August 16, 2005 Author Report Share Posted August 16, 2005 Hi, Thanks for the response. Did make sense i guess as the time out error dissappeared. But it still not working though. The serial write keeps on only reading one byte. but I guess I know where the error is, just not how to solve it. Think it has something to do with the conversion. I included this VI as well now. Seems the boolean array is converted to only one character instead of two. Looks like it only takes the first byte or something to convert. Someone else gave me this VI but it was intended for one byte, but I don't know what to change. Any ideas? Meanwhile I keep searching Thanks again Quote Link to comment
kel712 Posted August 17, 2005 Report Share Posted August 17, 2005 I take it you are trying to convert the 16 bit binary array to two string characters. I have modified your byte conversion to show some other ways of doing it. Hope one works for you just don't ask me which is the best way to do it. Cheers Kelvin. Download File:post-2707-1124276258.vi Quote Link to comment
Phantom Lord Posted August 18, 2005 Author Report Share Posted August 18, 2005 hi, well, that looks a lot easier to do. thank u very much. I'll surely use it. cheers Filip Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.