04-08-2010 06:01 AM
I have downloaded the file from the tutorial to implement an rs232 communication with the NI9401 module. (http://sine.ni.com/devzone/cda/epd/p/id/2164)
I have make it sweatable for my system and have it compiled to the fpga.
The connection is working for so far. I receive characters on my serial port and can send characters to the cRio. I use an max232 for ttl to rs232 conversion. But my problem is I don't receive the right characters. When I send an "A" (ascii 65), I receive "_" (ascii 95), when I send a "B" (ascii 66), I receive "/" (ascii 47). I have this problem by Tx and Rx.
I have checked my settings (9600 8n1). When I'm linking the Tx and Rx from the cRio, the connection is working. But the conncetion doesn't work with the "standard" rs232.
Hopefully someone can help me.
04-08-2010 06:07 AM
04-08-2010 08:33 AM
04-08-2010 12:51 PM
Hi
Why aren't you reading serial data off the rs232 port on the microcontroller using VISA commands? y through FPGA.
Its a lot easier to do that than do all the FPGA programming.
--dee
04-09-2010 01:37 AM
05-31-2010 08:23 AM
Hi
Is there any chance you can post some of your code. I am trying to get some bidirectional serial communication to work with a cRIO and an 9401 module. But im not sure how to implement it in the FPGA.
best regards
soeren
05-31-2010 11:03 AM
Hi,
I just needed only to send ascii characters, so in my code you can only see the code which is sending data.
I will post the code tomorrow.
Greets
06-01-2010 02:03 AM
Here are pictures of my vi's
(FPGA and RT)
(The cases you can't see are empty)
Realtime
FPGA
08-18-2014 05:31 AM
I have also the same problem can any one help me
@Johan88 wrote:
I have downloaded the file from the tutorial to implement an rs232 communication with the NI9401 module. (http://sine.ni.com/devzone/cda/epd/p/id/2164)
I have make it sweatable for my system and have it compiled to the fpga.
The connection is working for so far. I receive characters on my serial port and can send characters to the cRio. I use an max232 for ttl to rs232 conversion. But my problem is I don't receive the right characters. When I send an "A" (ascii 65), I receive "_" (ascii 95), when I send a "B" (ascii 66), I receive "/" (ascii 47). I have this problem by Tx and Rx.
I have checked my settings (9600 8n1). When I'm linking the Tx and Rx from the cRio, the connection is working. But the conncetion doesn't work with the "standard" rs232.
Hopefully someone can help me.
08-18-2014 05:43 AM - edited 08-18-2014 05:44 AM
Hi benamor,
please don't create double posts for the very same question!
Asking for help in a 4 year old thread might not provide the expected results…