CRIO 9067 to recongnize SiLabs USB RS232

Hello,
I have a cRIO 9067 and would like to interface to an instrument that has a SiLabs USB-RS232 converter.  I can comminicate with this instrument easily on a Windows PC.  I am able to see the device in MAX when its connection the cRIO.  IT shows up under "Devices and Interfaces" as "USB0::0x1FB9::0x0100::121A00A::RAW"  with the Model number and the device description.
I've followed the description at this link, but I don't get a ttyUSB# devices.
https://decibel.ni.com/content/docs/DOC-34827
Is there any chance to get this working on the cRIO as a serial port?
Thanks.
Solved!
Go to Solution.

After some digging, talking with NI Folks, google, and Talking with Folks at lakeshore.com (device vendor) here's what I've piece together on how to get this to work:
In Linux, usb devices are enumerated automatically, and, by default, will show up as a USB RAW device
Once the USB device has been enumerated, it can then, subsequently be linked to a driver
Linux determines if and when to link each USB device based on the Device's on Vendor ID (VID) and Model ID (MID). These are typically 3-4 digit hex strings.
For the case of the Lakeshore 121 current source, VID=1FB9 MID=100.       I could see these in MAX for the USB Raw Device.
There are two levels of drivers for USB-Serial Devices. The first driver: usbserial.ko is a generic driver that handles all USB-Serial devices. This must be loaded for all USB-Serial converters.
The second driver is specific to the chipset of the USB-Serial device.       For the cRIO, there are three options that are pre-installed (FTD, SiLabs, and some other)
The drivers reside at       /lib/modules/3.2.35-rt52-2.0.0f0/kernel/drivers/usb/serial/ (where the kernel version directory may vary)
The Lakeshore 121 use the SI labs CP210x chipset, so we chose this one.
The device drives first need to be loaded by Linux. Linux can automatically do this by adding zero length files to the module.autoload.d directory. To do this execute the following:
cd /etc/modules.autoload.d
touch usbserial
touch cp210x
reboot cRIO
execute dmseg | grep usbserial to confirm that the usbserial driver is loaded
execute dmesg | grep cp201x to confirm that the cp210x driver is loaded
The next step is to associate our USB device with the cp210x device driver. Remember that linux associates the device with a driver based on VID and MID. Whomever installed the cRIO linux base, I'm sure, knew nothing about the Lakeshore 121 VID and MID.
Lakeshore recommended getting the source code for cp210x, adding the VID and MID to the list of recognized devices, recompiling the cp210x.ko file and installing to the cRIO. This would work, but is beyond my current Linux capability.
Linux gives the ability to dynamically add MID, VID so that a device can be recongized on the fly
When the CP210x driver is loaded, an whole directory struchture is created. Ther is a file in that directory structure called new_id where we can dynamically added VID,MID's.
Create a startup script to execute the following command. Be mindful of cr/lf line termination issues between operating systems. It's usually easier just to create the script on the cRIO with the VI editor to avoid any issues.
echo 1FB9 100 >/sys/bus/usb-serial/drivers/cp210x/new_id
Startup script info: https://decibel.ni.com/content/docs/DOC-38960
Now on reboot (or execution of the script), you will get a /dev/ttyUSB[0-9] device
Unfortunately, the default creation of the ttyUSB[0-9] device does not allow write permission, so we need to create a UDEV rule to automatically give write permission
Add the following lines of code to udef.conf in the folder /etc/udev
#typical devices
ttyUSB[0-9]* root:tty 666
Create a file named 99-ttyUSB.rules in the folder /etc/udev/rules.d
Add this line of code to that file:
KERNEL=="ttyUSB[0-9]*", OWNER="admin", MODE="0666"
Reboot the cRIO. This should be it! It worked for me.

Similar Messages

  • DAQCard6024e & USB-RS232 Conflicts?

    Has anyone had problems using both a DAQCard-6024E in a notebook computer
    that also uses a generic USB to RS232 converter? We've had several
    instances in different computers and different USB-RS232 converters where
    not long after installing and using the USB-RS232 converter the computer
    locks up and will not reboot, even after removing power and the battery!
    It does not seem likely that these two devices would conflict but we cannot
    find anything else common that would cause the problems we are seeing. If
    there is a conflict and buying an NI USB-RS232 converter would solve the
    problem then I'd be willing to spend the $150 for the NI converter but I'd
    like to know that this will fix the problem first.

    Duplicate question. See post at http://forums.ni.com/ni/board/message?board.id=250&message.id=11456#M11456

  • CanOPEN cRIO-9067 & LabVIEW 2014 support

    Hello,
    We have cRIO-9067 and NI 9881 CANOpen communication module.
    According to the NI 9881 product description page the module should work with cRIO-9067. However, the latest NI-Industrial Communications for CANopen 1.0.3 doesn't support LabVIEW 2014 and NI RIO 14.0. This means we can't use cRIO-9067, can we? If so, when the next release of the driver will be availiable? Will it work with cRIO-9030?
    Thank you in advance,
    Nikita.
    Nikita Prorekhin
    Certified LabVIEW Developer
    DigiMetrix GmbH
    web www.digimetrix.com
    Solved!
    Go to Solution.

    Hi Nikita,
    This is an error on the webpage.  Currently, it should actually read:
    The NI 9881 module requires the NI cRIO-911x/9068/908x chassis and the LabVIEW FPGA Module.
    Support for the 906x and 903x targets will come with the NI-Industrial Communications for CANopen 14.5.  Typically, the release is around the time of the LabVIEW 2014 SP1 release.  I apologize for the inconvenience, and have reported this to the person in charge of the page to correct this error.
    Thank you!
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • Is the cRIO 9067 compatible with LabVIEW 2013?

    I just purchased 2 cRIO 9067s and I'm trying to configure one of them to use.  I got the IP address set and booted it into safe mode.  The status light blinks twice, then pauses.  The documention says this means I need to download software.  NI MAX only suggests using versions 14.?, which I'm assuming is LabVIEW 2014, but that option is grayed out.  And if I  try to do a custom install, everything in the list produces a concfict and wont download.  Is the 9067 only compatible with LV 2014?  Or am I missing a step?  the version of LV that I am using is 2013.  I'm installing 2014 to test this theory, but I'm no thopeful.  Thanks for the help people.  
    Solved!
    Go to Solution.

    The cRIO-9067 does require LabVIEW and NI-RIO 2014. You can use http://download.ni.com/pub/gdc/tut/crio_software_versions.htm to look up the minimum software support for cRIO products.
    I don't see how I can link directly to the result, but if you select "CompactRIO Chassis and Controllers" from the drop down and then "cRIO-9067" you should see this table.
    NI cRIO-9067
    Minimum Software Support
    Software
    CompactRIO (FPGA Interface)
    CompactRIO (Scan Interface)
    ✔ Supported
    ✔ Supported
    LabVIEW
    2014
    2014
    LabVIEW FPGA Module
    2014
    LabVIEW Real-Time Module
    2014
    2014
    Device Driver Software
    NI-RIO Device Drivers August 2014
    NI-RIO Device Drivers August 2014
    NI-DAQmx
    Other Minimum Software

  • CRIO-9067 Real-time unexpected error restart (Hex 0x661)

    Hi all,
    I recently moved to LV2014 SP1 and NI-RIO 14.5 to support development of a cRIO-9067 Linux RT controller. The past two days of development have seen LabVIEW crash numerous times (eight at last count), along with numerous VIs being in an undeployable state due to some unseen error (there's no broken run arrows anywhere, and a LV restart seems to cure what was broken).
    The above issues are tolerable, if somewhat annoying. What's concerning is the most recent error I received this morning. I had just run the top level VI from source (and verified it was running), went to make myself a coffee and came back to this error.
    LabVIEW: (Hex 0x661) The LabVIEW Real-Time process encountered an unexpected error and restarted automatically.
    The VI wouldn't have been running for more than 10 minutes. I've since tried to reproduce the error without luck.
    This is somewhat concerning as the application for this cRIO will be 24/7 process control. Is this a known issue with the newer Linux RT controllers? Is there anything that can be done to detect the error in LabVIEW?
    Below is a screenshot of the software installed on the controller:

    You should be able to access the error logs on your controller through MAX.
    Is There an Error Log File for My Real-Time Controller?-http://digital.ni.com/public.nsf/allkb/E734886E027D0B6586256F2400761E30?OpenDocument
    How Do I Locate the Error Logs on My cRIO if I Don't Have MAX? - http://digital.ni.com/public.nsf/allkb/9D2F9D4F8C834D678625766D00633837
    Could you post the error log files for the Compact RIO targets that reproduce the error?
    It’s possible that a memory leak is occurring someplace in your program that causes the crash.
    Also, are you using the System Config Set Time.VI anywhere in your application? There has been a reported issue with this VI in relation to this error, but the hex code error is not common. We can try to cross-compare the issue internally to see if there are simlarities to the reported case. 
    Additionally, is this crash repeatable with other code, say a simple shipping example? I would imagine that the crash is related to a routine called in your program, but it’s possible there is a corruption in the software installation on your target.
    Also, what is the ProcessCommandMessage.vi responsible for/doing in your application?
    Will M.
    Applications Engineer
    National Instruments

  • How to install USB-RS232 connector

    I want communicate zebra printer with USB-RS232 cable, somebody say, if i install the USB-RS232 connectly, it will appear virtual serial port in MAX, is it right? do i need to download NI-Serial driver?

    :-) congradulations

  • Conversión usb-rs232

    He adquirido recientemente un conversor usb-rs232 para mi ordenador portatil (Prolific usb-to-comm). He instalado el programa Niser310 que he descargado de la página de National Instruments. De esta forma, he conseguido mandar datos por mi nuevo puerto serie. Estoy controlandormediante este puerto el Generador de funciones HP-33120A
    El problema que tengo es que al enviar grandes cantidades de datos se produce el desbordamiento del buffer de recepción del generador, aunque tenga activo el protocolo de comunicacón hardware DTR/DSR (que es el que admite el intrumento). Este fallo es curioso porque cuando ejecuto el mismo código en mi ordenador de sobremesa este error no se produce, pudiendo enviar gran cantidad de datos sin problema.
    Caracteristicas de la comunicación serie; velocidad 9600 baudios, 1 bit de inicio, 2 bits de parada, 8 bits de datos (no paridad), COM1, tamaño del buffer 1Kbyte.
    Sistema Operativo Windows XP, LabVIEW 7.0.
    Alguien me puede ayudar... Muxas Gracias.-
    Mensaje editado por fran_m
    Adjuntos:
    Simulación de perturbaciones en la red.vi ‏412 KB
    Subinstrumentos.zip ‏81 KB

    Hola Fran el problema es posible que sea por los limites de tu adaptador serial, o la version de drivers que estas utilizando. Prueba Descargar una version mas actualizada de los drivers de tu adaptador, esto puede corregir el problema.
    Saludos
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Adaptateur usb rs232

    Bonjour,
    J'utilise des adaptateurs usb->rs232 double ou quadruple (prolific)
    mais il m'arrive d'avoir des coupures dans la communication qui ne se produisent pas avec le port integré de la carte mere
    Est ce que cela peut etre du au ports usb de mon pc ou plutôt aux adaptateurs , j'ai essayé sur un autre pc avec des adaptateurs
    de la même marque et même probleme
    Avez vous deja constaté de genre de soucis, auriez vous des adaptateurs à recommander hormis les adaptateurs NI ?
    Cdt
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

    Salut tinnitus,
    perso j'ai pas eu ce genre de soucis, mais j'ai constaté des tempo différentes dans la com en communication avec un même équippement : Par exemple un adapatateur A, je devais attendre 10ms avant d'avoir la réponse de mon esclave, et avec un adaptateur B, je devais attendre 50ms avant d'avoir la réponse. 
    J'ai déjà utilisé un convertisseur prolific, et je n'ai jamais eu de coupures de com...
    Bon courage a toi,
    V-F

  • Accesso a porta seriale con labview, scientific linux e interfaccia usb-rs232

    Ho un pc con SLC5, con interfaccia USB-RS232 e sto cercando di parlare con fieldpoint. Visaconf vede correttamente 4 interfacce (/dev/ttyUSB0, 1, 2, 3), mappate su ASRL1::INSTR .. ASRL4::INSTR.
    Se provo ad usare "Advanced Serial Write and Read.vi", va sempre in timeout.
    Se provo ad aprire "Optomux Send General Command.vi", lo trovo "rotto" (il parametro "VISA resource name" è connesso al "Port number" di "FPOptoHandler.vi".
    Mi manca qualcosa ? Oppure cosa c'e' di sbagliato ?

    Salve,
    provi a verificare la compatibilità con i driver al seguente link:
    What Linux Distributions Do National Instruments Drivers and Software Support?
    http://digital.ni.com/public.nsf/allkb/4857A755082E9E228625778900709661?OpenDocument
    e se il seguente esempio le risulti non corrotto:
    Programmatically Identify VISA Resource of cFP-1808
    https://decibel.ni.com/content/docs/DOC-23375
    Buon lavoro e buona giornata.
    A.P.

  • USB RS232/4 Driver for Windows CE

    I'm using USB RS232/4 device well with my laptop. I wonder whether i can use the device directly connected with Windows CE system instead of Windows XP system.
    I have LabView PDA Module and a single board computer operated by Windows CE.NET 4.2.
    Is there any driver of the device for Windows CE system?

    Windows CE is very different from Windows XP and currently the NI-Serial drivers is not supported on Windows CE. If you feel that this would be a valuable feature please file a product suggestion by going to Contact NI and click on the feedback link.
    -Josh

  • Using fieldpoint with scientific linux and USB-RS232 interface

    I am using a desktop PC with SLC5 and an USB-RS232 interface. I need to program a fieldpoint FP1000 module within labView. Visaconf is correctly seeing the interfaces (4 ports: /dev/ttyUSB0 .. 3, mapped as ASRLx::INSTR, with x = 1..4), but when I try to use "Advanced Serial Write and Read.vi", I always get timeout. If I try "Optomux Send General Command.vi", it looks broken (the parameter "VISA resource name" is connected to the "port number" input of "FPOptoHandler.vi" and the type is not matched).
    What am I doing wrong ? Am I missing some piece ?
    Thanks a lot in advance,
    Roberto Ferrari

    The people over in the GarageBand forums are amazing at diagnosing and fixing these sorts of things. I recommend that you give it a try posting the question over there:
    http://discussions.apple.com/forum.jspa?forumID=1308
    Good luck!

  • CRIO 9067 remote USB vision image acquisition

    I have a 9067 connected to a Basler USB camera.  I'm able to successfully view images via MAX and via the Grab example as long as I run the Grab example on the RT Target.  However, I don't need the images processed on the RT or FPGA in this application.  Is it possible to open a remote connection to the camera from my host computer using IMAQdx?
    I was hoping I could use something like "[cRIO IP Address]::cam0" in the camera address, but that doesn't seem to work.
    Is this possible or do I have to manually pipeline the images from the RT target?
    Thanks,
    Omar
    Solved!
    Go to Solution.

    Hello Omar,
    You cannot access the camera image directly by addressing it through the cRIO. You will have to implement image transfer between the cRIO and host PC. Fortunately you can do this rather easily by using an image shared variable or network stream.
    Earl C
    Applications Engineer
    National Instruments

  • Mac Mini - USB/RS232 Cable - help to command display

    Could anyone help out with advice in a project where we would like to put a monitor in different modes from a Mac Mini.
    The interface for the commands to the display is a RS232 serial port. As Mac Mini has no RS232 port but there are USB to RS232 cables on the market our question is if one could use apple script or shell script to make the job?
    Would really appreciate any advice!

    this has absolutely nothing to do with scripting. you need a USB to serial adapter.

  • VISA error BFFF003E USB-RS232

    Hello, I try to communicate to a HP34401A DMM via RS232. I use a WhiteHeat USB-to-RS232 converter with 4 RS232 connectors. They are known as COM7 to COM10 (in NI-MAX ASRL4 to ASRL7). When I send a Basic I/O "*IDN?\n" I get the right answer but the error 0xBFFF003E occurs immediately. The LabView VISA write.VI also returns this error code. When I use a single USB-to-RS232 converter, everything works fine. Can anybody help me about this error code?

    Don't remember the exact error, but I've seen some USB-232 converters return errors when you try to configure certain serial settings. Try checking to see if the VISA Configure Serial is returning an error. Another, perhaps not ideal, solution is just to ignore the error. If the communication is really working properly, there may just be something out of specification which is confusing VISA, you could always just ignore the error (call clear error only if the error code is equal to that error).
    Regards,
    Ryan K.

  • Rs232 communications with usb rs232

    This is my problem. I am trying to log communication over rs232.
    I use an standalone laptop with runtime and a built application, installed on this is an usb to 4 rs232.
    I use the serial port read.vi.
    The only thing i get out is when i set the string indicator to /code. and then i get alot of number, letters and symbols.
    its not hex becuse hex isnt using %+ and )
    anyone got a solution to this or a even a guess.. i am running out of things to try.
    /Mattias

    What are you trying to log from?   Is it possible that the device that you are listening to is speaking binary and you may need to convert the format?
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

Maybe you are looking for

  • How do I implement a virtual keyboard?  I will compensate for assistance.

    I have created a simple Adobe Air Windowed Application.  The application uses the mx:HTML controls to load a web page inside my application.  I have tried other means to load the web page but due to formatting issue, all other methods fail to load th

  • Urgent :post xml for xsql difference with html form post

    Hi, We are developing an application to process xml request posted by external party. The requests arrive by http-post operation We developed and tested with an html-form. Now we encounter problems in testing with http-post The xsql page is processed

  • Complex selection issue

    Hello, Is it possible to tell Pages to select all text with, say, font size 17? I have a texte with a bunch of different fonts and font sizes, and would like to apply changes to them. For example, I'd like to change all the text that is 17 to 12 with

  • No sound with SB Audigy SE on Bioshock.

    When I put the "Use Creative EAX Audio" audio option on(for Bioshock), I get no sound from the game other then loud crackling noises. Is the SB Audigy even compatablie with [email protected]

  • Import Audio Error Message

    When trying to import audio into a Captivate 2 project I receive the following error: "Unable to decode and import the selected wav/mp3 file" I have seen other posting where this is a problem in Vista but I am running Windows XP. I can listen to thes