Rs485 and VISA Configure Serial Port.vi ?

I'm given the following spec:
RS485, full duplex asynchronous, 19.2K baud, 1 start bit, 1 stop bit, 1 parity bit, and 8 data bits.
VISA Confgiure Serial Port.vi does not have input for 1 start bit and parity choices are none, even, odd, mark, space.
What should my settings bit for this to work?

Since the VISA Confgiure Serial Port.vi does not have an input for the start bit you can just ignore this. For the parity bit, your instrument should give more information. For example, two of the choices are even or odd. These are both one parity bit, so your instrument needs to define whether it is odd or even. It should say on the spec sheet.
Hope this helps!
JenK

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • VISA Configure Serial Port setzt RxD auf +5.8V

    Hallo,
    Ich habe ein Problem mit dem Empfangen von Daten von einem Mikrocontroller.
    Das Testprogramm auf dem Microcontroller (TC1796) sendet beim Empfang des ASCII-Zeichens “J“ (0x4A) das ASCII-Zeichen “_“ (0x5F) zurück. Als Pegelwandler wird ein MAX232 verwendet.
    Wenn ich "J" mit einem Hyperterminal sende, kommt das Zeichen wie gewünscht zurück.
    Wenn ich jedoch das Selbe mit LabView mache, empfängt der Mikrocontroller das "J", sendet "_" zurück, was aber von Labview nicht empfangen wird.
    Dabei habe ich das Beispielprogramm von LabView verwendet.
    Zum Testen habe ich einfach mal probiert, die beiden Pins RxD und TxD der seriellen Schnittstelle des PCs kurzzuschließen (Loopback).
    Die von LabView gesendeten Zeichen wurden empfangen.
    Als nächstens habe ich die Signale am Oszilloskop gemessen. Dabei ist mir aufgefallen, dass LabView beim Herstellen der Verbindung zum Port, die RxD-Leitung dauerhaft auf +5.8V setzt (auch wenn der Mikrocontroller gar nicht verbunden ist)
    Das Hyperterminal macht das im Gegensatz dazu aber nicht...
    An was kann das liegen?
    Im Anhang sind die Bilder vom Oszillosop
    Attachments:
    RS232_LabView.png ‏23 KB
    RS232_Terminal.png ‏23 KB
    Connect_to_Port_LabView.png ‏16 KB

    Hallo student,
    1. Dies ist ein englischsprachiges Forum, wenn du viele Antworten haben willst, solltest du also in englisch posten. Alternativ gibt es auch ein deutschsprachiges Forum: www.labviewforum.de !
    2. Statt der Oszilloskopbilder wäre es hilfreicher, wenn du dein VI angehängt hättest - oder wenigstens Bilder von dessen Blockdiagramm.
    3. Hilfreich bei solchen Sachen ist es auch, die Kommunikationsparameter zu überprüfen (von Baudrate bis TermChar)!
    Nachtrag zu 1.: Crossposts bitte in beiden Foren entsprechend mit Links kennzeichnen!
    For the English speaking reader:
    I told him to post in English, to attach VI (or block diagram picture) instead of scope plots, and to check serial port settings including termchar.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 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

  • Timeout units for VISA Configure Serial Port

    Hi there,
    Can anybody answer a simple question:
    What units are used to setup a timeout: seconds or milliseconds?
    LabView Help is very confusing.
    Thanks,
    Greg
    Attachments:
    VisaTimeout.JPG ‏75 KB

    It's milliseconds. You can see this for yourself by just opening the front panel of the function. You'll see the label of 'timeout (10sec)' and a value of 10000 in the control.
    Message Edited by Dennis Knutson on 05-02-2007 09:29 AM
    Attachments:
    VISA Timeout.PNG ‏23 KB

  • Build Error: "VISA Configure Serial Port"

    Hi,
    I want to upgrade some old 6.i vi's to 8.5
    But on building the project  i am getting an Error:
    Please take a look in to the screenhots
    Greetings from the lake of Constance, Germany
    juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    MESSAGE.jpg ‏106 KB
    VI-LIB.jpg ‏783 KB

    Hi j_dodek, there is a function called "mass compile", did yoou already try this option?
    Please select Tools»Advanced»Mass Compile and choose the directory containing your old VI's. This will upgrade all the files in the directory or library.
    Please also have a look at the linked document that describes what the function mass compile does:
    http://digital.ni.com/public.nsf/websearch/654877E62A97B72986256C95006F9B24?OpenDocument

  • Could Someone send me a 'VISA Configure Serial Port.vi'???

    I need that VI from LabVIEW version 6.1! My mail is [email protected]
    Thank You.

    I made a vi that does the same and can serve for you as an example. look in the help how to use it.
    part of it is 6.0 and part 6.1 but that is no problem.
    The 6.0 vi's will be converted when loaded
    greetings from the Netherlands
    Attachments:
    visaoptions.zip ‏69 KB

  • 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

  • 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

  • Join two 8 bit integers and send via Serial Port

    I am trying to join two 8 bit integers and send the result via the serial port.
    I have a constant of hex value A that I need to join with a value from hex 0 - F (this is based on incoming data)
    When I use the Join VI, and type cast to change from hex to string for Visa Write, I recieve hex 0A0F.
    I have been able to use the hex 0-F with a case structure and then wire the corresponding constant ex A0 - AF.
    This makes the program very cumbersome and labour intensive to change. I have 22 commands I have to respond to with the address of 0-F.
    Currently, I have a Case structure that is selected with Message ID, then a case that is selected with subtype and then a case for address.
    Therefore I have to create a constant inside of each address case for each message as the responses are different.
    Thanks for any help
    Robin

    Gambin,
    As I understand it, you want to take the two bytes, put them together,
    and output the result as an ASCII string on the serial port.  This
    is easy.  Simply convert each number to an ASCII string,
    concatonate the two characters together, and send the resulting string
    to the VISA write function.  That's it!  I have attached a VI
    (ver. 7.1) that takes two hex numbers as input, converts them to ASCII,
    concatonates the results, and outputs the 'command' string.  Fell
    free to modify this vi and use it as you see fit.  I have left
    extra terminals in case you want to add error input/output for data
    flow, or whatever.  Notice that the display for the concatonated
    string is in '/' Codes Display mode.  This is because 0A hex is
    the newline character in ASCII.  You should also check to make
    sure that your VISA serial settings are not setup so that the newline
    character is the termination character.  If it is, the second
    character may not be recognised.  Hope this helps.
    Roy
    Attachments:
    HextoCommand.vi ‏17 KB

  • Reading and Writing For Serial Port (RS232)

    Hi there;
    I want to send data from my comport to a device and take data from there. I use Windows operating system. I looked at a bit javax.comm and RxTx.
    Firstly do i have to use RxTx for my project because of i am using Windows operating system?And;
    Where should i began to start simply send and receive data via RS232?
    Edited by: furkankamaci on Feb 14, 2009 8:05 AM

    Use RxTx and follow its examples.

  • KM2M serial port not working in Linux

    I noticed a few Linux postings so I thought I'd give this a shot. I'm running Fedora Core and for some strange reason I can't seem to send any communications out to the ttyS0 (COM 1) or ttyS1 (COM 2) ports.
    Does anyone have any suggestions on making it work?
    Thank you.

    No, your code had no termination characters at all - automatic or not. The enable termination character for the VISA Configure Serial Port is only for reads. Just like the help explains.
    And while you should check the download page for updates, LabVIEW comes with the 34401 driver.
    Message Edited by Dennis Knutson on 12-19-2009 05:49 PM

Maybe you are looking for