Configure handshakeline of serial port as powersupply

I need RTS/DTR line as supply for the optocoupler of a digital multimeter.
How can i configure my com-port to get the voltage (RTS -12V/DTR +12V)?

Hi Jean-Pierre,
thanks for your help.
i tryed it in the way you discribed. but i dont get any strings. i attache the small labview file. can you see any mistake?
Attachments:
test1.vi ‏42 KB

Similar Messages

  • X4200 - static IP configuration  error (using serial port)

    I try to setup a static IP address of ILOM on a Sun X4200 server using serial port
    After login as root I use command from manual:
    set /SP/network pendingipaddress=192.168.2.123 pendingipnetmask=255.255.255.0 pendingipgateway=192.168.2.1 pendingipdiscovery=static commitpending=true
    but system say
    "invalid command syntax"
    Usage: set [target] <property>=value> [<property>=<value>...]
    Problem is with "commitpending" command but i don't know why, anyone know the possible reason?
    Sincerrelyy
    Cyprian Sawicki

    I try to setup a static IP address of ILOM on a Sun X4200 server using serial port
    After login as root I use command from manual:
    set /SP/network pendingipaddress=192.168.2.123 pendingipnetmask=255.255.255.0 pendingipgateway=192.168.2.1 pendingipdiscovery=static commitpending=true
    but system say
    "invalid command syntax"
    Usage: set [target] <property>=value> [<property>=<value>...]
    Problem is with "commitpending" command but i don't know why, anyone know the possible reason?
    Sincerrelyy
    Cyprian Sawicki

  • How do I monitor serial port activity without first sending a command?

    In my application I am sending a command through the serial interface and I want to monitor the response. The response is not instant, in fact it is a timeout response indicating the requested action did not work. How do I monitor so I can parse what is coming in over the serial port without necessarily sending a command?

    You can always place a loop where you monitor the number of bytes at the serial port.
    After configuring your VISA serial port session, you can create a Property Node to get the number of bytes available at serial port.
    You can then process this information, for instance:
    1. Establish a timeout because you never get a response.
    2. Do serial port read if there is data available.
    You can exit the loop with a timeout condition or having processed the data.
    -JLV-

  • Serial port dll

    Hi
    I need dll to config & write serial port
    or alternatively create dll in LV6 for serial port.
    How can I do it ?
    To use visa or traditional serial vi's ?
    T.U

    I recommend using NI-VISA for configuring and accessing serial ports in LabVIEW. With either NI-VISA (or even the "traditional" serial vi's), there is no need for additional dlls.
    +Chris

  • Fieldpoint serial port communication?

    Hi,
      I am a researcher from School of Biotechnology, Dublin City University, Ireland. I have been using Labview programming (version 8.2) for bioprocess monitor and control. I am using Fieldpoint (FP2010) module for data acquistion and control.  I've connected analog outputs from various controllers to appropriate channels and found data acquistion working fine using respective VI's. We have few instrument outputs which are need to be connected through serial interface on filedpoint's serial port. We are using  a multiplexer (B & B electronics) for channeling all serial outputs (of instruments) to serial port of Filedpoint. VI's developed for all serial interface of multiplexer ports  found working (data logging ok!) , when it is connected directly to COM1 port of PC. But when multiplexer serial interface is connected to serial port of Fieldpoint, the data values fails to log on the PC. Ethernet cable is used for interfacing filedpoint with PC. It seems the PC recognises COM1 port for serial interface but not serial port of Field point.
    We have a driver software for multiplexer, where we already configured all serial input and output ports as required. How to configure PC to serial port present in Filedpoint instead of it using COM1?
    I tried playing with MAX configuration as wells device manager of PC, but system couldn't recognise serial port of filed point.
    kindly provide me a solution.
    Thanks
    Regards,
    Senthil

    Hi,
    There is a software component that normaly would provide the feature you are looking for. It is the VISA Server. Unfortunately this component is not installable by default on cFP 20x0 controllers because of memory limitations.
    Your controller has enough memory, so you could try  to install the Server by hacking the driver installation configuration file for the NI-VISA server. Keep in mind that this is not an official feature and the usability could be limited.
    Go to your   \\Program Files\National Instruments\RT Images\NI-VISA Server\4.x    folder and open the "install_81xx.cdf" file with your wordpad.
    Add the bold line to the file as shown below:
    <?xml version="1.0"?>
    <?CDF VERSION="1.1"?>
    <SOFTPKG NAME="{E62A7BA2-8ED9-4C4A-AFA1-0DE33A188D61}" VERSION="4.4" TYPE="VISIBLE">
        <TITLE>NI-VISA Server</TITLE>
        <ABSTRACT>Remote VISA Server -- Shares VISA resources over the network.</ABSTRACT>
        <IMPLEMENTATION>
            <DEVICECLASS VALUE="PXI"/>
            <DEVICECLASS VALUE="Desktop"/>
            <PROCESSOR VALUE="7002"/>
            <PROCESSOR VALUE="7063"/>
            <PROCESSOR VALUE="7151"/>
            <PROCESSOR VALUE="7175"/>
            <PROCESSOR VALUE="E002"/>
            <PROCESSOR VALUE="E001"/>
    Save and close the file and close and reopen MAX. Go to your remote target and open the software installation tool. Now you should have the VISA server as an option for installation.
    After installing it and reboot, go back to your remote target in max and go to Software/NI-VISA 4.x and choose VISA Options at the right page. Go to Aliaes and choose "ADD Alias".
    Now enter ASRL1::INSTR into "Ressource Name" and "COM4" as Alias name for example. Now go to VISA Server /Security and add a * to allow access for every Host connected to your target.
    Save your settings and change to MySystem/Software/NI-VISA 4.x and go to VISA Options at the right page. Go to Aliaes and choose "ADD Alias".Now enter visa://your remote IP address/ASRL1::INSTR into "Ressource Name" and "COM4" as Alias name for example. Save your settings.
    Now you should be able to access your remote COM4 interface from your HOST, by using the COM4 alias within the VISA ressource control.
    DirkW

  • Open and configure serial port

    Hi,
    when i use the function configured serial port, i can work with it.
    for which case i need the function open port. do i need both an in which order?
    thanks florian 

    Hi florian
    check the help examples
    Attached png file shows  the example.
    chow
    xseadog
    Attachments:
    serial.PNG ‏39 KB

  • The "VISA Configure Serial Port" VI will only run at 9600 Baud

    I have written a Serial Port monitor "RS232 RW.vi"  that works for the most part. The problem is that it will not respond to alternate port configuration settings.... For instance: the default RS232 Serial port configuration is:
    (COM1,9600 baud,8 data bits,1 Stop bit, None no parity)
    As a test, I am using a Null Modem Cable to connect From my LabView Com1 port to another PC running RealTerm Serial Port Monitor.. Using my newly designed "RS232 RW.vi"  With port settings of (COM1,9600 baud,8 data bits,1 Stop bit, None no parity),  I can send and receive data back and forth all day long no problems....
    However, if I configure the "RS232 RW.vi"  port to any other configuration, such as (COM1,2400 baud ,7 data bits,1 stop bit, Odd parity).. It will not take the expected chances and continues to operate @ 9600 baud etc.
    I then changed the "RS232 RW.vi"  default settings to (2400,7,1,Odd)
    it still refuses to deviate from (COM1, 9600,8,1,None...)
    I also went into the Win XP  Device Manager on the LabView system and manually configured Com1 to 2400,7,1,Odd  
    and still,.... the "RS232 RW.vi"  will only operate @ 9600,8,1,None
    Can anyone else test drive my VI and see if they have the same problem of not being able to see new changes in the Port configuration settings ..other than (COM1, 9600,8,1,None...).... ?
    FYI.. Unfortunately my LabView is running on Version 6.0 so you may need to up-convert the attached vi
    Solved!
    Go to Solution.
    Attachments:
    RS232 RW.vi ‏102 KB

    Instead of just appreciating the comments, you need to implement them.
    Having the VISA close inside the loop is definitely the problem.  And Crossrulz is 100% correct about the problem being that the serial port gets reset to the default baud rate after closing the port.  Here is the proof.
    Note that while you may have set the port settings manually in device manager, those settings are revised by the VISA driver.  If you look in Measurement and Automation Explorer under Devices and Interfaces >> Serial and Parallel, you'll see the default settings that the VISA driver uses.  If you change the setting there, your program will work the way you want.  But that is not the correct fix.  The correct fix is to get the VISA close out of the while loop.
    The port settings are established in this order.
    1.  By the Windows device drivers.
    2.  By the VISA driver as established in MAX.  Since you are useing VISA, these settings will automatically override #1.
    3.  By the port settings you set programmatically in your LabVIEW program.
    Attachments:
    Example_VI.png ‏18 KB

  • Time out function in VISA configure serial port vi

    I have some doubts regarding the time out functionality of "VISA configure serial port vi":
    1) I have set the time out value as 10s while initializing the port using this vi. Does this mean that for any Rx operation happening on the serial port, it will wait for 10s for the data to be received?
    2) Is this waiting functionality also valid on "bytes at port" vi which I am using before reading the port data?
    Because in my application, the control at serial port is actually not waiting for 10s and is coming out before the desired time out (10s). Do I need to set this time out anywhere else apart from initialization at "VISA configure serial port vi"??
    Can anyone please tell the steps to set this timeout for the serial port?
    Thanks in advance!

    1. A read will return when the first of the following is satisfied:
       a. The number of bytes at byte count has been received.
       b. The termination character (if enabled) has been received.
       c. An error is detected.
       d. The timeout time has elapsed.
    I am not sure what happens if handshaking is enabled and the other device pauses communication.
    2. No. Bytes at port returns immediately. This is a status check and it would not make sense for a timeout to apply.
    Without seeing your code and the data the remote device is sending, we can only guess. My first guess would be that you have termination characters enabled (default) and a termination character appears in your data.
    Lynn

  • 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

  • TROUBLE BUILDING VISA Configure Serial Port .vi

    I posted by mistake in DAQ.  My application Builds fine in LV 7.0, however in LV 8.2 using the Project folder, I receive the following :
    Polymorphic VIs cannot be used as Startup/Exported or Dynamic VIs for applications or shared libraries.
    C:\NEM DS18S20 TEST-8.20\NEM0775B\NEM0775B.llb\VISA Configure Serial Port
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1035 occurred at ABAPI Dist Check if PolyVI.vi -> ABAPI Load All Libraries And VIs.vi -> ABAPI Dist Build LLB Image.vi -> ABAPI Copy Files and Apply Settings.vi -> EBEP_Invoke_Build_Engine.vi -> EBUIP_Build_Invoke.vi -> EBUIP_Build_Rule_Editor.vi -> EBUIP_Item_OnDoProperties.vi -> EBUIP_Item_OnDoProperties.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  Operation is invalid for this type of VI.
    I am using, Polymorphic VI = VISA Configure Serial Port to configure my serial port and then count bytes received for certain serial Port CmDs.
    I am only using the Serial Port (Instr) of the Polymorphic VI.  What is the easiest way to BUILD a application that will work????   I've used this method back to 4.1.  Can I change VISA Configure Serial Port .vi from a Polymorphoric to a Non Polymorphic and still initialize the Serial port??  This new BUILD/PROJECT METHOD is not good. 
    Please Help
    Brian Campbell

    Briancam-
    Have you set the VISA Configure Serial Port as a startup VI in your build specification? If you are using that VI as a subVI in one of your VI's, then you do not need to manually add it to the startup list, LabVIEW should automatically add it as a dependency.
    Xaq

  • Configuración del puerto serie (serial port configuration)

    Hello I want to configure my serial port using Labview to achive this settings
    IRP_MJ_CREATE    Serial0    SUCCESS    Options: Open    
    IOCTL_SERIAL_SET_QUEUE_SIZE    Serial0    SUCCESS    InSize: 2048 OutSize: 500   
    IOCTL_SERIAL_SET_TIMEOUTS    Serial0    SUCCESS    RI:-1 RM:0 RC:0 WM:0 WC:0   
    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_BAUD_RATE    Serial0    SUCCESS    Rate: 19200   
    IOCTL_SERIAL_SET_RTS    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_DTR    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_LINE_CONTROL    Serial0    SUCCESS    StopBits: 1 Parity: NONE WordLength: 8   
    IOCTL_SERIAL_SET_CHAR    Serial0    SUCCESS    EOF:0 ERR:0 BRK:0 EVT:d XON:11 XOFF:13   
    IOCTL_SERIAL_SET_HANDFLOW    Serial0    SUCCESS    Shake:1 Replace:80000040 XonLimit:2048 XoffLimit:512   
    IOCTL_SERIAL_GET_COMMSTATUS    Serial0    SUCCESS       
    IOCTL_SERIAL_PURGE    Serial0    SUCCESS    Purge: TXABORT RXABORT TXCLEAR RXCLEAR   
    IOCTL_SERIAL_SET_WAIT_MASK    Serial0    SUCCESS    Mask: RXFLAG ERR    
    IOCTL_SERIAL_WAIT_ON_MASK    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_WAIT_MASK    Serial0    SUCCESS    Mask:
    Thank you in advance,
    Regards

    Hello I want to configure my serial port using Labview to achive this settings
    IRP_MJ_CREATE    Serial0    SUCCESS    Options: Open    
    IOCTL_SERIAL_SET_QUEUE_SIZE    Serial0    SUCCESS    InSize: 2048 OutSize: 500   
    IOCTL_SERIAL_SET_TIMEOUTS    Serial0    SUCCESS    RI:-1 RM:0 RC:0 WM:0 WC:0   
    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_BAUD_RATE    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_LINE_CONTROL    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_CHARS    Serial0    SUCCESS       
    IOCTL_SERIAL_GET_HANDFLOW    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_BAUD_RATE    Serial0    SUCCESS    Rate: 19200   
    IOCTL_SERIAL_SET_RTS    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_DTR    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_LINE_CONTROL    Serial0    SUCCESS    StopBits: 1 Parity: NONE WordLength: 8   
    IOCTL_SERIAL_SET_CHAR    Serial0    SUCCESS    EOF:0 ERR:0 BRK:0 EVT:d XON:11 XOFF:13   
    IOCTL_SERIAL_SET_HANDFLOW    Serial0    SUCCESS    Shake:1 Replace:80000040 XonLimit:2048 XoffLimit:512   
    IOCTL_SERIAL_GET_COMMSTATUS    Serial0    SUCCESS       
    IOCTL_SERIAL_PURGE    Serial0    SUCCESS    Purge: TXABORT RXABORT TXCLEAR RXCLEAR   
    IOCTL_SERIAL_SET_WAIT_MASK    Serial0    SUCCESS    Mask: RXFLAG ERR    
    IOCTL_SERIAL_WAIT_ON_MASK    Serial0    SUCCESS       
    IOCTL_SERIAL_SET_WAIT_MASK    Serial0    SUCCESS    Mask:
    Thank you in advance,
    Regards

  • Configure serial port.vi 未找到

    我现在用的是LabView 8.20 中文版,但是里面的对串口进行初始化的模块configure serial port 不能用,在程序框图里面显示是灰色图标(见图1),双击它,弹出“未找到VI”,并且附带的所有串口范例里面都是这样,运行弹出图二的错误列表!我下载了NI-Visa 4.1 安装后也不行,请问这是怎么回事?如何解决?   期盼回复!谢谢
    Attachments:
    14.JPG ‏33 KB
    21.JPG ‏42 KB

    Instead of just appreciating the comments, you need to implement them.
    Having the VISA close inside the loop is definitely the problem.  And Crossrulz is 100% correct about the problem being that the serial port gets reset to the default baud rate after closing the port.  Here is the proof.
    Note that while you may have set the port settings manually in device manager, those settings are revised by the VISA driver.  If you look in Measurement and Automation Explorer under Devices and Interfaces >> Serial and Parallel, you'll see the default settings that the VISA driver uses.  If you change the setting there, your program will work the way you want.  But that is not the correct fix.  The correct fix is to get the VISA close out of the while loop.
    The port settings are established in this order.
    1.  By the Windows device drivers.
    2.  By the VISA driver as established in MAX.  Since you are useing VISA, these settings will automatically override #1.
    3.  By the port settings you set programmatically in your LabVIEW program.
    Attachments:
    Example_VI.png ‏18 KB

  • Me sale un error al configurar el VISA CONFIGURE SERIAL PORTS

    Hola que tal? Estaba configurando el VISA CONFIGURE SERIAL PORTS. Pero al correr (RUN), me sale un error. No entiendo de que se trata el error. Parece que me falta alguna libreria o algo.
    La idea es configurar, para recibir algo por Puerto en serie RS-232.
    Muchisimas gracias!!!!
    ¡Resuelto!
    Ir a solución.
    Adjuntos:
    Error del LABVIEW.jpg ‏200 KB

    Hola a todos! Cómo mencionan, el problema es porque LabVIEW no puede encontrar NI-VISA en su sistema. Esto podría ser porque no está instalado, hubo un error de instalación, o porque fue instalado antes que LabVIEW.
    ¿Qué Sistema Operativo está utilizando?¿Cuál es su versión de LabVIEW?
    De esta liga puede descargar la versión 5.2 de NI-VISA. Esta versión soporta LabVIEW 2012/2011/2010/2009.
    Saludos!
    IMT José Manuel Vólquez R.
    Ingeniero de Aplicaciones
    National Instruments México

  • Serial port configuration on PXI 8185 w/ 8423 card.

    I'm trying to configure wire mode for the serial ports on a 8423 RS485 card with the NI-RT.INI file, but it changes the RS232 ports on the controler. The Property node method doesn't work at all. Using LV-RT 7.1 and loading from mac OSX.

    I just figured it out. I was trying to set the wire mode on the RS485 to two-wire auto, and the RS232 to RS232-auto. The problem was that I had a 'WIRE_MODE=xxx' in my NI-RT.INI file, this disabled the ability to set the wire modes with the serial property node. In addition, the documentation has changed: The pre-VISA 3 instructions were to let (page 6-5 NI Serial Hardware and Software for Windows User Manual)
    RS485 4wire WIRE_MODE=128
    RS485 2wire DTR w/echo =129
    RS485 2wire DTR cont =130
    RS485 2wire auto =131
    but the new VISA serial has these as 0,1,2,3 respectively, with 128, 129 and 130 being RS232 wire modes. 131 is undefined now.
    So it is all working as of this afternoon. Was obtuse to find these errors though, and neither the NI-RT.INI file
    or the new VISA wire mode setting ability are documented correctly anywhere that I could find. Thanks for the offer of help!

  • Serial port configuration

    Hello,
    is there a way to configure a serial port only to initialize, without using any graphical tools(like smc, admintool, etc)?

    Do you mind to elaborate more this question? All serial ports are initialized by default.
    You can use stty to check the port configuration (the -a >< is a bug in the Sun forum. Use -a < instead):
    [SunOS 5.9/bash] root@wgtsinf01:/opt/sfw
    # stty </dev/ttya
    speed 9600 baud; -parity hupcl
    rows = 0; columns = 0; ypixels = 0; xpixels = 0;
    swtch = <undef>;
    brkint -inpck -istrip icrnl -ixany imaxbel onlcr tab3
    echo echoe echok echoctl echoke iexten
    [SunOS 5.9/bash] root@wgtsinf01:/opt/sfw
    # stty -a </dev/ttyb
    speed 9600 baud;
    rows = 0; columns = 0; ypixels = 0; xpixels = 0;
    csdata ?
    eucw 1:0:0:0, scrw 1:0:0:0
    intr = ^c; quit = ^\; erase = ^?; kill = ^u;
    eof = ^d; eol = <undef>; eol2 = <undef>; swtch = <undef>;
    start = ^q; stop = ^s; susp = ^z; dsusp = ^y;
    rprnt = ^r; flush = ^o; werase = ^w; lnext = ^v;
    -parenb -parodd cs8 -cstopb -hupcl cread -clocal -loblk -crtscts -crtsxoff -parext
    -ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -iuclc
    ixon -ixany -ixoff imaxbel
    isig icanon -xcase echo echoe echok -echonl -noflsh
    -tostop echoctl -echoprt echoke -defecho -flusho -pendin iexten
    opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel tab3Cheers,
    Andreas

Maybe you are looking for

  • Data refresh of Excel file on Sharepoint 2013 Online (E3)

    Is it possible to refresh data in an Excel PowerPivot model from external data (SQL Server 2012) on the SharePoint 2013 Online solution that comes with the Office365 E3 plan? I need to either have the Excel file itself on the public facing website wi

  • Attach Excel and PDF in email

    Existing report generates PDF attachment in email. The requirement is to add excel attahment also in email. So the mail should contain Excel and PDF attachment in 1 email. Can anyone please help me in this.

  • ITunes 9.1.1 Coverflow issue.

    Hello. After I've done a upgrade to iTunes 9.1.1, the Coverflow view not work. There is a screenshot: http://quartoestudio.com/itunes9.1.1_coverflowissue.png Any idea?

  • Does CS5 work with iMac OS 10.8.3 and Lightroom 4.4?

    I have a new iMac w/ OS 10.8.3 and Lightroom 4.4 and was wondering if Photoshop CS5 will work with either of these?

  • Using the display for...

    Can I use my macbook's display to play on my Xbox 360?