Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

FTDI interfacing With myRIO Linux RT

Solved!
Go to solution

Hi,

 

Has anyone tried to interface FTDI board with myRIO Linux RT? According to this link (https://decibel.ni.com/content/docs/DOC-37389), it supposed to work. I am just wondering if anybody tried or not.

I surely couldn't. Any help would be appreciated.

0 Kudos
Message 1 of 24
(12,991 Views)

hi fahad80,

 

I saw some of the additional information here:

http://forums.ni.com/t5/LabVIEW/FTDI-interfacing-With-Linux-RT/m-p/2925908#M846332

 

Have you tried reformatting the myRIO?

Also, install NI-VISA and all its related components onto the myRIO

Finally, manually load the module for the USB to serial converter.  This resource should be useful to do that:

http://digital.ni.com/public.nsf/allkb/94A534CA79FF8A7E86257C670068ED2B

 

Let me know how that goes.

 

Regards,

Joel I.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 24
(12,963 Views)

Hi Joel,

 

I have been asking questions about this for sometime around the forum. I tried everything possible. Let me tell you where I stuck. I followed the tutorial. NI Linux-RT can detect the FTDI. And ASRL3 showed up in the NI-Max. But the status shown is "Not Present" and VISA can't has access to it. So after asking in the forum, someone suggests that, this happened because NI Linux-RT occupied the device. I have to free the device from linux. So,  demodule the ftdi_sio and usbserial from Linux. After that NI-Max can detect the device, but alas, as a Raw USB device.

 

And NI-VISA is not support in myRIO, so I can't install that.

0 Kudos
Message 3 of 24
(12,933 Views)

Have you tried manually loading the manual?

You'll need to download puTTY:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

 

Then, when you run the puTTY exe, select SSH and the IP address.  Then, you'll need to log in and you should be able to use the Linux terminal.  Then, follow the command listed in this knowledge base article to load the module:

http://digital.ni.com/public.nsf/allkb/94A534CA79FF8A7E86257C670068ED2B

 

Regards,

 

Joel I.
Applications Engineer
National Instruments
Message 4 of 24
(12,919 Views)

You mean manually loading the 'module'?

 

Yes I used putty. That's how I came to know that NI linux was able to detect my device. The link you gave, I already passed that point. Linux already detected my device.Problem starts after that. Labview can't get hold of that device. It says, the instance is not available. I also did follow the tutorial, where the author explain how to introduce the device to labview. Then it did show up in labview, but with status "not present". 

0 Kudos
Message 5 of 24
(12,911 Views)

Hi fahad80,

 

I double checked to see if NI-VISA is compatible with the myRIO and it seems like it is.  Install this onto the myRIO and let me know if that changes anything.

 

 

myRIO install.PNG

 

 

Regards,

Joel I.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 24
(12,895 Views)

Hi Joel,

 

1) I format the myRIO. And install the NI-VISA 5.4.1

 

3.png

 

 

 

2) Then connect my device, and it did show up in putty.

1.png

 

 

 

3) Then followed this tutorial. And it showed up in NI-Max, again with "Not Present".

 

2.png

 

 

 

 

4) Even in VISA Interactive Control, it shows up with a yellow question mark.

4.png

 

 

5) When I tried to use the VI, it shows the error.

5.png

 

 

 

6) These are the tutorial (and this) I was talking about, earlier. They suggest to deassociate the driver from the device.

 

 

Eagerly waiting for your reply.

0 Kudos
Message 7 of 24
(12,884 Views)

Hi fahad80,

 

Thanks for the screenshots, what is the full error code you're seeing in step 5? 

 

Also, I think this may be related to a Corrective Action Report.  I'm currently looking into it to see if there are workarounds that we can use. 

 

Regards

 

Joel I.
Applications Engineer
National Instruments
Message 8 of 24
(12,863 Views)

It is "-1073807192".

0 Kudos
Message 9 of 24
(12,845 Views)
Solution
Accepted by fahad80

Hi fahad80,

 

1.) Make sure that you have the NI VISA USB Passport install onto the myRIO (I realized I didn't have it checked in the image)

 

2.) Go to MAX, right click on the myRIO under Remote Systems and select 'File Transfer'

Then, navigate to:

usr/local/vxipnp/linux/NIvisa/

 

Open the visaconf.ini file and add the following tokens to [ASRL-RSRC-ALIAS] section:

 

 

Name3="ASRL4::INSTR"   

Enabled3=1             

Static3=1              

SystemName3="/dev/ttyUSB0"

BaudRate3=9600            

Parity3=0                 

StopBits3=10              

DataBits3=8               

FlowCtrl3=0               

NumOfResources=4

 

3.) Then, restart the device and use PuTTY to SSH into the myRIO

 

4.) Then, we'll want to use this terminal command:

chmod o+rw ttyUSB0

 

5.) Refresh/Restart MAX to check if the serial port is showing up and is able to communicate and if not, try restarting the myRIO

 

Let me know what results from that.

 

Regards, 

Joel I.
Applications Engineer
National Instruments
Message 10 of 24
(12,820 Views)