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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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

  • I am trying to run my registered CS6 Design Standard programs for the first time after install. InDesign runs OK, but Illustrator and Photoshop will only run in trail mode. How do I activate those two?

    I can't get my registered versions of CS6 Photoshop and Illustrator to run in full mode. I installed CS6 Design Standard online end of June (an upgrade from CS5.5), on my old MacBook Pro. I didn't run the programs then as I was waiting on arrival of new MacBook Pro. I migrated the programs from my old MacBook to the new, and today tried to run those programs for the first time. InDesign work OK (after an initial hiccup) but Illustrator and Photoshop will only run in trial mode, and won't let me save files. My CS6 Design Standard shows with it's registration in my Adobe Account. All seems in order, but Illustrator and Photoshop won't run in registered mode. Can you please help?

    Demons1 in the future please only migrate your documents and settings.
    Please use the uninstallers to remove your current installation.  They are located in the Applications/Utilities/Adobe Installers folder.  Once the uninstall is complete you will also want to run the CC Cleaner Tool.  You can find more details at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html.
    If you need to download a fresh copy of the installation files for Creative Suite 6 you can do so at Download CS6 products.

  • My iPhone was stolen and I have the IMEI and serial number. Will I still be able to find it?

    My iPhone was stolen and I have the IMEI and serial number. Will I still be able to find it?

    Thanks. Yes. But somehow it's already turned off by the thief. I am just hoping he goes to an area with free wifi to transmit the lost phone mode. I'm giving it a few weeks and i hope that the new iOS 7 function will work. That they won't be able to reset my phone without my apple id & password. I just wish I downloaded the app iHound before.
    Oh and I called up our national telecommunications commission and they'll be able to disable my phone's function through my IMEI.

  • I connected the rocketfish mini display port but am only able to have audio through my computer.  I was able to successfully drag the video to the tv.  What can I do to hear through the tv?

    I connected the rocketfish mini display port but am only able to have audio through my computer.  I was able to successfully drag the video to the tv.  What can I do to hear through the tv?

    I HAVE T.V VOLUME!!!   Thank you sooooo much eww.  I was on my way thinking I would have to buy yet another type of cable.  : )  Again thanks!!!

Maybe you are looking for