Visa OR written closing serial port

Hi all

Currently in collaboration with LV2011 and NOR visa 2014.  In my application, I have 7 open including 4 serial ports I write for devices, 3 are simply listening.  Now, I write to 4 of these devices, alternating between them, the second time I try to write to a device, the writing is not received, but when I exit the application and close the port, the message is received. I saw this on 2 similar devices and it is a bit random. Possible, it is a matter of the unit, but I don't see this problem when you use the tera term.  We never seen it before?

I can post code, but it is a great application and I use the AMC add on.

Thank you

Matt

Using native serial or USB-to-serial adapters ports?  USB adapters often behave in certain circumstances wrong with LabVIEW.

If he can be a bit of work around the problem, is it possible you can close the reference in LabVIEW just after writing of visa for 'forcing' the message, and then open again the serial port reference?

Tags: NI Software

Similar Questions

  • Error: The property node (arg 1) in .vi VISA set up a Serial Port (Instr)

    Hello

    I've seen people once they have gotten this error, but none of them really apply to my situation.

    Right now I use LabVIEW example code to read from a device manufacturer. This device is connected using a Tripp Lite USB adapter series (http://www.tripplite.com/en/products/model.cfm?txtSeriesID=782&txtModelID=2430) for the connection from the PC to device with RS232. The adapter works fine when using the software prepared in advance (not LabVIEW) given by the manufacturer and the COM port is seen by LabVIEW. When I run the program, I get the property node (arg 1) visa set up a Serial Port (Instr) .vi (I've also attached the VI but it's a standard VI I got of LabVIEW). I get this error despite the fact that I use the same COM port, who has worked with the manufacturer's software.

    I have attached manual of Protocol RS232/debit BUS (not sure if this applies) that requires the device. The device is a mass flow controller whose operating instructions is: (http://nemu.web.psi.ch/doc/manuals/device_manuals/Bronkhorst/917023--Operation%20instructions%20digi...

    I'm using LabVIEW 10.0.1

    Any help is appreciated

    Try to restart the PC and then try the LV version before trying other software.

    I have seen thrid party serial interfaces work on the first try but fail when you switch to another application. It was as if the pilot did not know that it was no longer the first process.

    Ben

  • Property node (arg 1) visa set up a Serial Port (Instr) .vi-> Untitled 1. VI

    Hello

    I'm trying to connect an instrument stahl ER-300 with labview. The Stahl is connected to my laptop via a serial port/USB converter.

    When I run the program, I get this error property node (arg 1) visa set up a Serial Port (Instr) .vi-> Untitled 1. VI

    the driver of the converter is set up and my phone is read as a COM4 and I Don t understand why I get this error.

    The program is attached.

    I need your help

    The error indicates that an input parameter is not valid to configure serial port VI... have you checked that you had wired up to this node correctly?

    Down VI serial port configuration and...

    It is not wired! Thread resource name VISA through the VI.

  • Error: The property node (arg 8) visa to configure the Serial Port

    I'm trying to control 8 USB to R232 via a HUB of 10 ports Tripp-Lite (model U222-010-R) and do not have consistent results.  Just after rebooting my computer, I have no problem in running the following program: (I tried to download the VI directly but without success, so here's the extract)

    I made sure that the COM ports that I select are that one is available on both the Device Manager and in the NOT-MAX.  But after awhile, it does not work or if the HUB is unplugged and replugged in (even if the names are correct and up-to-date in devices and NOR-MAX Manager) I get the error code "property Node (arg 8) visa set up a Serial Port (Instr) .vi" I want to be able to see these ports consistantly more without having to restart my computer all the time.  Is there a better Setup for this? The previous installation of the computer has a PCI card for it and we have not had any problems with the code, but are facing problems with our upgrade.  The old computer ran Windows XP and had cards PCI and the new computer that I am using a Windows 8 and the USB HUB.  Thanks for any help you can give!

    Mr says:

    Jeff,

    It is a one off lines from specifications Tripp-lite:

    -On bus power, 500mA from the USB 2.0 computer port is shared between hub ports

    This would be in support of what I need or not necessarily?

    -Mr

    No! That's the 50mA by port not 500mA.  an order of magnitude full powered USB (if you want reliable - if you want real problems which appears irratically each time only and is a headache to track down which would)

  • Visa to configure the serial port

    I'm trying .vi VISA set up a Serial Port (Instr) allows you to configure my serial port.

    Although the property of node baud rate is enabled, it does not appear in the block diagram. Please see attached.

    Would appreciate any help, thank you

    Figured out. Thank you

  • The VI "VISA set up the Serial Port" will only work at 9600 baud

    I wrote a Serial Port RS232 RW.vi monitor of ' "which works for most. The problem is that it will not meet the alternative port configuration settings... For example: the default RS232 serial port configuration is:

    (COM1, 9600 baud, 8 data bits, 1 stop bit, no without parity)

    As a test, I use a Null Modem cable to connect to my LabView Com1 port to another PC running RealTerm Serial Port Monitor... Using my "RW.vi RS232' newly designed with the port settings of (COM1, 9600 baud, 8 data bits, 1 stop bit, no without parity), I can send and cannot receive data back throughout the day no problem...

    However, if I configure the port "RW.vi RS232" all other configurations, such as (COM1, 2400 baud, 7 data, 1 stop bit, odd parity bits)... He will not take the expected risks and continues to operate @ 9600 baud rate etc.

    Then, I changed the settings default "RS232 RW.vi" (2400,7,1, Odd)

    He still refuses to derogate (COM1, 9600,8,1, no...)

    I also went in the Device Manager of Win XP on the system of LabView and configured manually Com1 2400,7,1, Odd

    and yet,... work at the "RS232 RW.vi" @ 9600,8,1, none

    Everyone can test my VI in the car and see if they have the same problem of not being able to see the new changes in the Port configuration settings... other than (COM1, 9600,8,1, no...)...?

    FYI... Unfortunately my LabView runs on Version 6.0, you may need to up-conversion of the attached vi

    Instead of simply appreciate the comments, you need to implement.

    Having closed VISA inside the loop is definitely the problem.  And Crossrulz is 100% correct about the problem being that the serial port gets zero to default baud rate after the closure of the port.  Here's the proof.

    Note that while may have set the port settings manually in the Device Manager, these parameters are reviewed by the pilot VISA.  If you look in the measurement and Automation Explorer under devices and Interfaces > serial and Parallel, you'll see the default settings using the VISA driver.  If you change this setting, your program will work as desired.  But this is not the appropriate fix.  The correct solution is to get the VISA close out of the while loop.

    The port settings are established in this order.

    1. by Windows device drivers.

    2. by the VISA driver as set in MAX.  Since you are using VISA, these settings will be automatically replace #1.

    3. by the port settings, you set programmatically in your LabVIEW program.

  • error of node (arg 1) .vi property VISA set up a Serial Port (Instr)

    Hi all

    I have a request, he had run on a machine well for months.  I use VISA to make the communication between PC and PIC.

    Suddenly at certain times, it reports error of node (arg 1) VISA property set up a Serial Port (Instr) .vi. Since then, it does not work.

    Œuvres of HyperTerminal.  I check MAX, the COM port it and looks very good.  What is the problem?

    Furthermore, I use VISA 4.2.  Maybe somehow it crashed?

    Many thanks for any help.

    Problem solved.

    The reason is that the hard disk was running out of space and there is error.  Somehow, causing accident DURATION VISA.

    We cleaned drive C: for free space and then repaired DURATION VISA.  Now, he runs with happiness.

    Thank you, everyone, for your help.

  • Time GPS, Position, Velocity.vi - error-1073807360 reading was held at node (arg 1) .vi property VISA set up a Serial Port (Instr)

    We receive information such as the Latitude and Longitude of a receiver Garmin GPS18xLVC via a serial port on our PC using LabView 7.1.  Successfully, I connected the GPS on the serial port and tested with HyperTerminal.  I tried reading GPS time, Position, Velocity.vi several times and still receive the following error message: error 1073807360 has occurred to the property node (arg 1) visa configure a Serial Port (Instr) .vi.  I think it has something to with the configuration of the VISA series under vi.  Any suggestions would be greatly appreciated.

    Thank you

    I understood the question, that I had with the time reading the GPS, the Position, the Velocity.vi.  The vi. "do not open" port com automatically and so I had to modify the NMEA GPS Subvi reading to first open the port (VISA open command) and then continue with other operations.  Once I did this it started to work very well.  I don't understand why this feature has been left out because it won't work without it.  I tested the code with a receiver Garmin 18xlvc and it seems to work fine.

  • Problem: read bytes to serial port

    Hello, I need to communicate with an external device with serial port. I have to write a command to my device string, and then it should play with 64 bytes of data. I built a function of READING-WRITING and I use it in a loop (I have to read a lot of 64-byte block)

    Sometimes, I have the following problem:

    (1) I have send the command string, I wait with "Bytes to the serial port" whereas I have more then 60 bytes, then I read.

    (2) sometimes happen that the read function cannot read all 64 bytes, so the net for cycle, I have in the receiver buffer mor than 64 and the program to stop working. (does not work well)

    I need to be sure that after writing the command I have 64 bytes, so I red all the 64 bytes so the next loop for, I have the buffer of the empty receiver.

    I enclose my writing reading function. Please refer to the block diagram (there are a few notes).

    Thank you

    In no place in your program see the VISA configure the Serial Port. It's always a good idea to include this that even if you use the default settings. I suspect this is one of the default settings which is wrong with you. By default, playback is set to end when a character is considered. This means that if you have a 10 hex (ASCII LF) in your stream, playback stops until the specified number of bytes is read. Put in a VISA set up the Serial Port and connect a constant False to the stop character allow entry.

  • whille prob get bytes to the serial port for serial communication

    Hi all

    I have one using the series write vi to send the command to the instrument. the answer I get is read NICU playback vi. I use between read and write the serial port bytes accumulate bytes. BU what I observed is quite strange. When I run the vi with the debugger, I could c the bytes to port series is 201 and what I get in buffer is only 133.

    any1 can guess at what the problem would be b?...

    You don't show the function of VISA set up a Serial Port, but I guess you have the active stop character. Playback will end automatically when the character is detected and you should never allow when you try to read hex.

  • Visa read byte at the port

    My visa to read, I feed in the bytes in the property node port as input for the number of bytes to read (it's 4 bytes).  However, the output of the read visa give only 2 bytes.  It seems that a few bytes have been lost during the read operation?  Why is this?  It is an easy to see what is in the buffer of the serial port?  Thank you!

    Yik

    You likely the session VISA set to end readings when he sees a stop character and VISA reading is to see the stop character, and ending the reading, regardless of the number of bytes you told to read. If you want that it explicitly read that much then you must disable the option "Activate the stop character" in VISA set up a Serial Port.

  • Communication serial port IRP_MJ_READ

    Hello, I would ask you serial port communication. I am currently apply for communication with my engine not to not (Microcon), but it does not work. If I try to connect with the original software, my serial port monitor gives me values

    IRP_MJ_WRITE when I write some values and

    IRP_MJ_READ when I try to read from the serial port

    But when I'm using LabView, I can only send IRP_MJ_WRITE function by using the component to write VISA (if this one works well), but when I use VISA component read my serial port monitor gives me only IRP_DEVICE_CONTROL. Do you have any sugestion where can be a problem? I don't know how to get this function IRP_MJ_READ using LabView VISA component.

    You watch the using PortMon software? The only thing I see here is that the order that you send, there could be a space that you could have made while typing,

    or

    You're still motor control software running step by step when running the labview? In this case, there will be conflict.

    When you use software original stepper motor and when you send the command wirte down the hexadecimal value (see portmon or any other monitoring software) and try to send back the same hex values using labview. Sending a command, sending of hex are the same but just give it a try,.

    Use bytes depending on the port before VISA to read all available data.

    Search for Microcon network drivers driver Instrument in the Web site OR if you want a quick and simple solution.

  • Serial Port problems - carriage return and use as an executable file

    Hello

    I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

    By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

    Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

    My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

    Thank you

    Gary Still

    Not immerse in the first issue. The Knight will probably be galloping until shortly.

    For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

    It may be useful

    -AK2DM

  • Another question on serial port communication

    Hi all!

    I started working with tools of communication series LV (actually, I'm a newbie in LV at all).

    The question is - how I effectively detect y at - he new data arrived in the read buffer VISA?

    I mean, in the examples I found, there is always a fixed delay between writing series and the read operation - it makes the instrument depends on the speed of communication and (worse) on the response time of the required device. I want to implement is a vi that writes a (or different applications) via a serial port and then check periodically (with the relatively small period, say, 1ms) series read buffer for the response data until new data stops arriving. For this I need to know the number of bytes of data into the buffer, or a property (if any) detecting the arrival of new data.

    As I read on this forum (and figured out from my own experience)-using VISA bytes to the Serial Port is ' t a good idea also I have found a solution without delay set by the user between the writing and the read operation in the recent previous topics.

    Can you give me an opinion?

    Thnx in advance.

    Use VISARead with a number of bytes to read and a timeout.

    When your data is received it will play instantly. When no data comes in, you will get a time-out error, which you can manage!

  • VISA (serial port) commands fail in VI, but working in the VISA test Panel

    Hi, I have an instrument that has a usb connection. When I connect it to a Windows 7 PC, it picks up the driver automatically and presents itself as a "USB Serial Port (COM7) (manufacturer's FTDI).»

    When I opened NI MAX, this feature appears as COM7 (ASRL7::INSTR) under "series and parallel. And when I click on open visa Test Panel and try it "* IDN?" command, it works OK.

    However, the VI (which sends just a command VISA "* IDN?") give me a timeout error (0XBFF0015) or a resource/device absent error (0XBFFF0011). A screenshot of VI is attached.

    No idea why?

    Thank you.

    PS: I went through the process to create the VISA-USB driver, who has another question, but I'm trying to understand why this happens. This device has also a GPIB port and when I use a USB-GPIB adapter, it works very well.

    N ° your first string to write sends a literal backslash and a literal n.  Your watch \n control, but it is in Normal display mode.  Change it to \codes mode and delete the extra backslash it.

    Your second string to write is set correctly for the mode \codes.

    Because the wrong string is written, the timeout error occurs and prevents the VI downstream on this same error running thread.

Maybe you are looking for

  • I use win2k, firefox invites me to upgrade. I can't. How to stop advice?

    Details: win2k Pro on a laptop. Stable for YEARS. 11 Firefox installed. Everything WORKS and works WELL. Now, I get an annoying message of upgrade on win2kpro unsupported and asking me to upgrade. So far so good. I think this thing is happening, but

  • First "Slide" crashes when exported in the form of film

    When I try to send a presentation Keynote to Quicktime or share on YouTube the first slide hangs and never advance to another even if I scroll to slide following progress very well. Not sure why I can't get anything beyond the first slide. Seems to m

  • Need help with upgrade memory on the Satellite A100-250

    Help me with upgrade memory on TOSHIBA Satellite A100-250 up to 1024 MB. I want to buy an another slat memory ddr2-533 512 MB, what model exactly I needed to research, they were working in a pair. Sorry for the bad English. From Russia with Love.PS.

  • software for logo drawn for watermark on my photos?

    Hey does anyone know some software for MAC, I use to design my logo to add a watermark to my photos?  Now that I have a watermark, I'm looking for a way to add my own logo drawn to my photos, instead of something printed.  I suppose I could take an i

  • My driver CD won't read CD or DVD what can I do?

    My CD driver on my laptop won't read CD or DVD what can I do? The drive will make noise but nothing happens and can not open the DVD to play or whatever it is there at - it an update I don't know everything? Sometimes on the CD and DVD. Help!