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.

Similar Messages

  • Serial in Labview/Linux

    I have made a program that use the serial port. I use Labview under Linux on a PC.
    The serial works good on my PC, but when I try the build application on a target PC (with the Run-time engine installed) the serial doesn't work.
    I think it needs the NI-VISA run-time engine for Linux, but I can't find it (only for Windows).
    Thank you
    Luca

    If you did not use the VISA serial calls in Linux, then you need to include the serial port driver (serp.drv in Windows) in the same directory as your built application.
    However; if you did use the VISA serial, you will need the VISA runtime engine, which should be on your LabVIEW for LInux CD.
    If you do not find it there, or on the website, contact NI for assistance at ni.com/ask. Also check on the linux support pages at ni.com/linux.

  • Using usb to serial adaptor , how do I select this port from within labview

    Hi
    I am using a usb to rs232 adaptor , how can I select this port within labview as all I can see is the com 0, com 1, lpt ports .
    Any help appreciated
    Brett
    Snr Mining Engineering Technician
    Western Australian School of Mines
    Curtin University of Technology,
    Locked Bag 22, Kalgoorlie Western Australia 6430
    Ph: 08 90886159 Fax: 08 9088 6151 Mobile: 0407441251
    Web http://research.wasm.curtin.edu.au/

    vicky wrote:
    Hi Brett,
    yeah its easier tohandle and i think cheaper also,i found it easier to install also,so better go in for the USB stuff.
    cheers
    vicky
    While the many USB adapters seem to be easier to handle, we have had some bad experiences. Their stability is not always up to the task for industrial applications. This might not be an issue when you only use them to control your RS-232 lab equipment for manual experiments, but in our case we have fully automated lab systems running, where LabVIEW controls sometimes up to 8 serial devices and those applications are supposed to run day and night, if possible for many days in a row without interruption. With many of those noname USB-RS232 adapters we noticed various kind of problems. It could range from intermittent communication errors (which could be handled by additional code in our software to retry communication on such errors) to complete failure of the RS-232 port after some time, which could only got back online by unplugging and replugging the USB adapter.
    For our purpose this was completely unacceptable and we ended up using ENET-RS232 devices instead which are working fine for months in a row.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problemi con eseguibile lettura da porta seriale

    Buongiorno,
    ho creato un vi che richiama una subvi per la ricerca automatica della porta seriale. Una volta creato l'exe non avviene la comunicazione della porta seriale, se invece lo lancio dal mio pc ove è installato labview funziona...ho anche installato il VISA runtime engine 5.3 (posseggo la versione di labview 2011)...qualche idea?!? grazie mille!!!
    invio in allegato l'immagine del subvi..
    Attachments:
    Immagine111.png ‏31 KB

    Buongiorno,
    Ti consiglierei di seguire le indicazioni delle seguenti KB.
    My VISA Executable Does Not Run on a Nondevelopment Machine
    http://digital.ni.com/public.nsf/allkb/DB5E81EAFC9A463886256AA8005EA2B1?OpenDocument
    How Can I Include Additional Installers with My LabVIEW Applications' Installer?
    http://digital.ni.com/public.nsf/allkb/E09BA0E2F31D304F86256A640070058E?OpenDocument
    What Additional Files Are Required with an Executable Created with the LabVIEW Application Builder?
    http://digital.ni.com/public.nsf/websearch/E11297C4EECAB110862565A900648083?OpenDocument
    Saluti
    Enrico D.

  • Install LabVIEW 2013 on Scientific Linux 6.4

    Has anyone successfully installed on SL6.4? I install and no response - try to start using icon but no errors or slash screens. Did put the 32 libc2 on the machine. It asked for kernel sources, but for 64 bit?. What is correct?
    Thanks,

    Zander,
    I have not installed LabVIEW 2013 on Scientific Linux 6.4 before, but I will see if I can help you out. First did you install LabVIEW 2013 32 bit or 64 bit? Second does just the LabVIEW shortcut on the desktop not work (icon) or can you just not load LabVIEW at all?
    Thanks

  • Acquisizio​ne da porta seriale

    Buona sera,
    sto facendo un progetto per l'esame di misure all'università che prevede l'acquisizione di segnale tramite arduinoDUE ne faccia la FFT e la invii sulla seriale. Da qui tramite labview grafico o il segnale o la FFT corrispondente in base ad un pulsante collegato ad arduino e che mi dia la possibilità di scegliere cosa graficare. Ora visto che non posso andare in facoltà perché lavoro il prof. ha detto di generare il segnale tramite DAC e poi acquisirlo su un pin analogico. Con l'oscilloscopio a lavoro ho visto cheil segnale si genera correttamente. Il problema nasce quando grafico tramite labview in quanto la frequenza del segnale acquisito non cambia anche se modifico la frequenza, se cambio il baud rate ecc. ecc. Il segnale che visualizza labview è una sinusoide, cosa giusta, ma ha un periodo di 120 secondi. Sto da 10 giorni e non riesco ad andare avanti. Qualcuno mi può aiutare?
    Grazie mille

    Ciao  Lamber_86,
    ti ringarzio per  suggerimenti precendeti sono stato in laboratorio ho testa e funziona "quasi" tutto. Infatti partendo con un segnale con una data forma acquisisco e visualizzo in maniera corretta. Il problema nasce se modifico la forma del segnale (tipo da sinusoidale  a quadrato), la risposta da parte di Labview è mooolto lenta nonostante io abbia impostato il baud rate a  115200. Con un piccolo programmino ho letto la porta seriale ed al modificare della forma del segnale trasmette i nuoni valori. Dove sbaglio ?
    Grazie mille
    Luigi V

  • NI-VISA installation fails on Scientific Linux 6.0

    Hi!
    I am trying to install Labview 2012 on Scientific Linux 6.0 (regarding to the NI website this distro is supported).
    The LabView installation works fine, but the subsequent NI-VISA installation terminates with the following error msg:
    # ./INSTALL
      NI-VISA for Linux
         version 5.2.0f0 for Linux
    National Instruments products support the following Linux distributions:
       openSUSE
       Red Hat Enterprise Linux Desktop + Workstation
    Refer to README.txt for the latest information at the time of release.
    Refer to www.ni.com/linux for the most recent information about Linux
    support at National Instruments.
    Continue? [Yn]
    Checking required install tools...
    Checking installer tool versions...
    rpm        4.8.0 can be used with a default installation path
    tar        1.23
    Checking dependencies...
    glibc      2.12
    2.12
    Unpacking install files to /tmp/nivisa-5.2.0f0.install...
    ******************************** ERROR ****************************************
    * The version of gcc in the path does not match the version of gcc used to    *
    * compile the currently running kernel.  This can cause unpredictable         *
    * behavior in kernel drivers and should be fixed.                             *
    * gcc version: gcc-Version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)                                                           *
    * kernel compiled with: 4.4.6                                                 *
    ******************************** ERROR ****************************************
    Installer is aborted.
    Obviously the installer finds the kernel source and gcc 4.4.6. Is there anything I can do to install NI-VISA on the system? If not, could you suggest me a linux distro which works with LV2012? I am tired trying several ones.
    Thanks for you help!

    Hi,
    have a look to this link:
    http://digital.ni.com/public.nsf/allkb/463B062FB2416B2F86257942007233B4?OpenDocument
    Maybe this could help you
    Regards
    Philipp

  • VISA Configure Serial Port / Serial Instr

    What's the difference between VISA Configure Serial Port and VISA Configure Serial Port (Serial Instr)?
    LabView 7.0 Help gives no comprehensive explanation:
    You can use this polymorphic VI to initialize a serial port using the Instr VISA class or Serial Instr VISA class.
    Thanks,
    Greg1997

    Hi Greg1997,
    From what I have seen in LabVIEW 7.1, there is only one VISA Configure Serial Port function block.  It does have a polymorphic VISA Resource Name input to accept either an Instr VISA class reference or a Serial Instr VISA class reference.  The Instr class is a more general class than the Serial Instr VISA class (so there are more specific attributes available to the Serial Instr VISA class), but both references can be used with the VISA Configure Serial Port block.  Hope this helps!
    Regards,
    Anna M.
    National Instruments

  • Is there a way to use Labview for Linux for IBM AIX 5.1.

    I think any application built for linux can run on the AIX 5.1 if the application is recompiled on the AIX 5.1. So theoretically NI can just recompile there Linux version of Labview on the AIX 5.1 and it will work. Is there a possibility that NI will port Labview for AIX 5.1.

    I think that the use of LabVIEW for linux is platform independent as far as hardware. I believe that as long as you are running a compatible GUI (I believe XWindows and KPT??? are two that are recommended - check ni.com/linux for more information. So, for your purposes, as long as you can install the proper GUI, and then LabVIEW for Linux, you can then run, code, compile, and deploy applications on the AIX 5.1.
    I am personally VERY interested in knowing about your success (or failure, should that unlikelyhood occur) on Linux. If you browse the topics, there is actually one on non-windows useage of LabVIEW. I am currently setting up my first Linux machine at my home office, and am very curious to know how other people do with this 'adventure into unc
    harted territory'. The only documented useage I have seen is in Gary Johnson's newest edition of Power Programming.
    Good luck, and please keep us posted. I sense that I am the only LabVIEW for Linux fan besides yourself. But please feel free to post to this thread, and to the topic.

  • Como puedo conectar un microbot teachmover a mi ordenador y controlarlo con labview?

    Como puedo conectar un microbot teachmover a mi ordenador y controlarlo con labview?

    Hola danelo.
    El Teachmover cuenta con una interfaz serial RS 232, por lo que puedes utilizarla y los VI´s de VISA desde LabVIEW para controlar el robot.
    http://www.ni.com/white-paper/7907/es.
    Tendrás que revisar el manual del robot para ver como realiza la comunicación con su programa, y después implementar el mismo tipo de comunicación en LabVIEW (Sustituir el programa que viene por ellos por un código de LabVIEW).
    Saludos.
    Aldo H
    Ingenieria de Aplicaciones

  • Como comunicar un PLC festo con labview

    Hola a todos, necesito comunicar un plc de festo con labview para hacer intercambio de datos, he intentado hacerlo por ethernet pero no he podido establecer la comunicacion, no se que se debe hacer. gracias

    Estimado luis_tec:
    Hay varias maneras de realizar la adquisicion que requieres. Necesitaria mas informacion sobre tu aplicacion para darte una solucion mas personalizada a tu aplicacion. 
     Suponiendo que unicamente manejaras seniales de 4-20mA y que tu velocidad de muestreo no importara, te pudiera recomendar utilizar los sistemas PAC (Programmable Automated Controller).
    Una solucion seria utilizar el cFP 100 el cual te permite medir corriente y voltaje en varios rangos si lo necesitaras. Luego adquirir la base de montaje para el modulo cFP 1808 o 1804. Con esta solucion  puedes comunicarte a tus seniales de manera serial o ethernet y te da la posibilidad de expansion.
    A continuacion te hago la referencia de estos productos en  nuestra pagina web:
    CFP 100
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/115​82
    CFP 1808
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/202​210
    Tambien te incluyo enlace a una presentacion de el manejo de estos equipos:
    http://www.ni.com/swf/presentation/us/pacpcio/
    Te recomiendo te comuniques a nuestra linea gratuita desde Mexico al 01 800 0100 793 y pidas te comuniquen con un representante de ventas para obtener una cotizacion  y mas detalles sobre estos sistemas.
    ESpero y esta informacion te haya sido de ayuda
    SAludos 
    ls
    Luis S
    Application Engineer
    National Instruments

  • Comunicación OPC entre un PLC Festo (OPC EasyServer) con Labview

    Ayuda.....Necesito comunicar un PLC Festo Fc 640 con Labview, yo tengo el software OPC EasyServer pero no se cómo comunicarlo con un VI.....
    Gracias.....

    Mmm... si tienes el software OPC para el equipo que quieres comunicar, LabView debe detectarlo al momento de querer conectar un control/indicador con alguna variable de tu equipo... El OPC es el que se ocupa de la conexión al equipo (PLC Festo en tu caso), es ahí donde tienes que configurar parámetros de comunicación tales como baudrate, paridad, stopbits, etc (asumiendo comunicación serial) y este software OPC server es directamente comunicable con LabVIEW... Sólo tienes que colocar tu control/indicador en el front panel >> [click derecho] >> Data Operations >> Datasocket connections... En la ventana que aparezca, al lado de la casilla "Connect to..." seleccionar el botón "Browse...", luego "Browse Measurement Data..."  y a continuación te aparece una lista de los servidores de datos registrados en tu máquina... busca y selecciona el parámetro que quieres y ya está.
    Ojo: la secuencia de pasos que menciono son para LabVIEW 7.1 (es la versión que yo tengo) debe ser igual o más fácil en versiones más recientes.
    Espero te sirva este comentario...
    Saludos!!

  • Calling DLL on LabVIEW for Linux

    I have a vi that calls a dll made with Visual C++ on windows enviroment. What are the steps for calling this same dll on Linux ? Do we need to generate another dll?

    In article <[email protected]>, Labviewguru wrote:
    > First, I don't know if LabVIEW for Linux can even call a DLL. I
    > suspect that since this technology (as obsolete as it is, at least for
    > an operating system - thank you Windows) has been adopted by Linux,
    > that you can. I don't have my linux workstation on at the moment, but
    > if you need to know, I can check.
    >
    > As for the DLL itself, I suspect you will have MAJOR problems getting
    > it to work right in Linux, and that you will almost definitely have to
    > rebuild it with a Linux native compiler. It sounds like you have the
    > source code, so it should be a matter of just porting it over, and
    > stripping out all of the platform dependent calls a
    nd substituting all
    > of the necessary function calls.
    >
    > Good luck, and please keep us up to date on your progress. Not many
    > of us use Linux, and any and all information on the matter is gold.
    In linuxland isn't a dll called a shared library? You'd basically have to
    get the source for the dll and beat on it until it turns into a shared lib
    (better still, see if you can get an already built linux library). Actually
    hooking into the library from within LV should work the same in either world.
    NI, by the way, has app notes on this subject. I haven't gotten around to
    reading any of them yet, though.
    That's my story and I'm sticking with it.

  • 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!

  • Envio de Trem de Pulsos pela porta SERIAL

    Olá pessoal. Eu preciso enviar  trem de pulsos de frequencia de 1Hz  com tempo em nível alto de 5us (micro segundos) durante uns 30 minutos  pelo pino 3 da porta serial ( Tx ). Ja montei o circuito de conversao de RS232 para TTL. E no programa ja fiz a rotina basica de envio de sinal pela porta serial e ja constatei seu perfeito funcionamento.  O meu problema é que nao consigo enviar um NIVEL 0 para a saida. No bloco respensavel pela escrita VISA SERIA WRITE o valor que coloco é representado em ASCII e nao consigo enviar um nivel logico zero na saida. Ja consultei a tabela e o codigo NUL que representa os bits 0 nao sai. Tentei usar o VI BREAK mas ele nao satisfaz meu projeto pois mantem o nivel baixo somente por 500ms e ocorre um certo delay.
    Resumindo COMO ENVIO UM BIT ZERO PARA SAIDA PELO VISA SERIAL WRITE EM ASCII??? Desejo que minha saida fique em zero por alguns segundos.
    Obrigado pessoal. Em anexo segue meu programa.
    Anexos:
    serial.vi ‏10 KB

    Oi Thiago,
    Na saída Serial, todos os valores '0' representam valores positivos e todos os '1' representam valores negativos. Para ficar mais fácil de entender, lembre que o MSB determina o sinal do valor:
    0xxxxxxx -> positivo
    1xxxxxxx -> negativo
    Este link fala um pouco mais sobre como medir os valores da porta serial e aborda esse assunto (as imagens não estão abrindo, mas você consegue abrí-las pelos arquivos em anexo):
    http://digital.ni.com/public.nsf/websearch/79B995C3638F4177862572C900593631?opendocument&Submitted&&...
    Para você que está trabalhando com comunicação serial, é legal também manter esse guia:
    http://www.ni.com/pdf/manuals/371253b.pdf
    Espero ter ajudado!
    Ricardo Ramos
    Engenheiro de Vendas - Sul
    National Instruments Brasil

Maybe you are looking for

  • Error while configuring Oracle Internet Directory

    Hi All, I have installed OID according to instructions in http://download.oracle.com/docs/cd/E21764_01/install.1111/b32474/start.htm#BEHHHCBB I was trying to configure OID using instructions given in section 6.5 Only OID Without a WebLogic Domain at

  • Ipod not recognized by updater/itunes

    I've gone through all the steps listed on the help pages. I've done as many of the 5 r's as I can. I just got a video ipod last weekend. I have the latest updates on itunes and ipod updater. I know the ports arent the problems because when I plug in

  • Error wrt Ref Cursor.

    Hi all, I have a package, and I am using the ref Cursor in my procedure. Here it is ..... CREATE OR REPLACE PACKAGE BLABLA_PKG AS TYPE OUT_CURSOR IS REF CURSOR; PROCEDURE BLABLA_VIEW_PROCEDURE (BUS_ID IN VARCHAR2, XML_OUTPUT_CURSOR OUT OUT_CURSOR); E

  • Is it possible to split a number off family plan and start separate account?

    is it possible to split a number off family plan and start separate account?

  • Optimum extension cabling for 20-inch Cinema

    I need to add up to 2 meters distance between my MacPro and my 20 inch cinema display. Is there an extension cable on the market that combines the video/firewire/USB cables and thereby accomodate the original cable, or Do I have to extend these cable