in VISA READ timeout

Hello everyone,

I am in training course of end of study and my mission to carry out an automatic test bench.

Not being an expert in Labview and ASCII language and that no one in the company is now capable of answering my question, I turn to you because you're the only who can help me please.

United Nations instrument of I Doi to communicate en RS232C with SEFELEC DMG50 + not the DATASCHEET (page 85) is attached via Labview program that I found in the examples of the United Nations and works not bad (as an attachment also), EXCEPT THAT at the time or I send a request with a response to return like e.g. IDN (* IDN?) Application solutions), the referral program an error timeout-1073807339.

As I understand it he tells me that he doesn't have enough time pour answer. But he wrote the answer in almost all still...

The question I ask myself.

1 - Why he answers while it displays a Timeout

2. is this a problem of parameters (for me everything should be fine)

3 - Can you tell me if I have chosen my flow control and the character XON and XOFF parameters

I will be very grateful if someone can help me solve this problem because I galley not bad on this thing

Thank you

solved

Thank you very much, because both of you (Albert.geven & SAMUEL_NIF) has been essential to clear the timeout error. For this I have

1. I separated VI Write and Read VI and made a VI wait... because VI Read needs time to respond as you said

2 - I also used a property of node (VISA bytes to the Serial Port)... because it gives a necessary shot for reading

the new program is attached to understand more

Thank you

Auto

Tags: NI Hardware

Similar Questions

  • VISA READ timeout error - several GPIB resources

    Hello

    I'm working on a network 3 GPIB instruments (Optical Attenuator, amplifier in fiber, spectrum analyser), controlled using VISA sessions in Labview. When it is run separately, the three corresponding screws (which are located in three different Labview projects) works as expected. However, when they ran at the same time, one gives them timeout-1073807339 VISA READ errors. These errors seem to occur when another instrument is sending / receiving data / instructions at the same time that she is.

    The exact context of the error is either:

    -an another VI is running, which includes sending several requests and responses every 100 ms, reading

    -by failing VI starts, I get an error of waiting time among the first Subvi containing a VISA READ operation to perform (sometimes initialize.vi (in situation 1), sometimes one of the subVIs connected the rest State (State 0) on the time-out of the structure of the event).

    or:

    -the default VI is running,

    -by starting another VI, which includes repeatedly sending requests and reading the responses, the failing VI up a mistake among the first Subvi containing a VISA READ operation to run (one of the subVIs linked the State of rest (0) on the time-out of the structure of the event).

    What I tried:

    -gradually increasing the delay between the VISA WRITE and READ operations to the relevant instrument (from 10 ms to 10 s), without success. More surprising are my observations which, by operating this single VI, increasing WRITE it / READ delay results in the same timeout errors. I have found no mention of such behavior through research google and forum. I hope that this may point to a solution to the main issue,

    -switching between synchronous and asynchronous VISA WRITE / READ operations.

    -reorganization of the network GPIB to a star to a linear topology topology (three instruments have different GPIB addresses in case anyone is wondering).

    My thoughts:

    It seems to me that the error is related to a delay introduced between a VISA request and its read operation by the transmission of another query associated another instrument in the same network GPIB. But I have no idea why pass a query to another instrument would introduce such a delay, or why this delay would result in a timeout error (and only an instrument, while writing / reading in each pilot screws are basically the same). Hopefully a more experienced Labview-er will be able to shed some light on my problem.

    Included is the project that contains the default VI (main.vi) and the driver custom made use of.

    There are a number of ways. If you want to keep separate projects for instruments, you can use semaphores often slandered around calls for screws in each project. Locking is not expected or predictable, but it would give controlled access to the GPIB resource.

  • VISA read timeout

    I don't know why the function of reading im getting an error of timeout to the VISA (error that says "timeout expired before the operation is over"). I made sure the serial port of Labview and my cameras are serial port configured exactly the same. I even tested hyperterminal with the same port as in labview settings and it works perfectly, but my labview program gives me an error. My device ends each order he sent with a carriage return, then I mounted VISA READ to stop playback of data when he meets the CR character. I also made sure the carriage return was infact sent by my camera. Any thoughts?


  • VISA Read Timeout error when using stream protocol BUS

    Hello

    I currently use the BUS Flow for a MFC Protocol and I get a time-out error VISA Read:

    Error 1073807339 occurred at VISA read in Send Setpoint.VI-> test.vi

    Possible reasons:

    VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    I extracted the part of the code and it attached to this message. Basically, whenever I hit OK to send a VISA just read set value times out. I tried to use the sub VI who is responsible to send the set value and it was fine (when manually, I copied and pasted the ASCII codes) but when I run the global function it times out.

    Any help is appreciated

    Thank you

    If you have a command string or a constant you enter a \r\n in, you MUST have '-' Codes view turned on in order to enter the actual control characters. If you enable "\" Codes to display and see \\r\\n, then you have used Normal display to enter the characters.

  • VISA read timeout error - Keithley 2400

    I am using LabView 2010 to control a Keithley 2400 Sourcemeter on an RS-232 Interface. I want to set up a measure and take a reading (e.g. ground voltage / time)

    I took an example of "Keithley ReadOnly" library code, but the 1073807346 error to retrieve box "initialize". Then I looked in 'Initialize. VI"and found there is a VISA (timeout error?) reading error. I have attached two screenshots that shows errors. Can someone tell me how to solve the problem? Moreover, I am very new to labview, if someone could suggest a solution that is not too 'Advanced '? Thank you very much.


  • How to run vi continuous when the VISA read timeout happens

    Hello

    I'm using LabView 2010 through a series of Agilent 6000 Oscilloscope. The Oscilloscope reads data from another experimental machine which will occasionally fail due to failure of the sample. When the machine breaks down, it ceases to send signals to the oscilloscope and leads to the error timeout of read VISA and the vi It is over.  Is it possible that I can run the vi permanently when the error occurs? For example, when the error occurs, it stores the error in the thread of the error. When the vi read the error code of the wire, it sends a command to stop my experimental machine then stop the vi.

    So far, it stops simply during the execution of the visa, playback function. In that case, why do we mistake in and out? Vi stop just when the error occurs.

    Thank you

    Laurent


  • Interactive Control VISA & VISA Read timeout expired

    VISA control gurus,

    I am trying to contact my wireless AGILENT N8300A Test set.

    I am able to do the same thing via NI VISA Interactive Control...

    (Attached is the captain)

    But if I tried to do the same thing with a sample program.

    (Also attached below)... program shows a

    VISA: (Hex 0xBFFF0015) timeout expired before the operation is complete.

    I tried to use Async mode and synchronization in the VI... Reading VISA.

    But it always shows error timeout.

    I'm not able to understand what could be the difference, if it works well

    in an interactive control NI VISA, but not in my program

    Any help or pointers would be appreciated...

    Kind regards

    Diakité

    Hello

    very good that you have added the vi.

    You add a CR instead of a line break.

    You can do that in the string by selecting "------" mode for the string constant, you can use any string appearing in your comment as the display string constant.

    Good luck

  • Possible timeout in VISA read/write in While loop

    As the title says, I have a while loop that is constantly written followed by reading using VISA read/write.  I'm waiting for buffer correspond to a certain one, which the true value would end the loop.  In this loop, I have an indicator showing how many times he runs. All of this is repeated in another while loop.

    My problem comes the counter arrives at 10, then stops at the "write" command.  Do not know why.  I tried to increase the time-out of the instruments, but nothing has changed.  I added a delay of 10ms in loop, which also has not changed anything.

    For reference, I use a tektronix scope series 3000 of the MDGS and checking its state of relaxation.

    You said chill to read earlier!

    But it is not supposed to have to write it either.  Experimentally, access all VISA nodes, right-click and choose the Mode of synchronous i/o.  Make it synchronous instead of asynchronous.  The watch symbol will disappear from the top right corner.  See if that changes anything.

    What kind of serial port are you using?  What is an integrated in the PC?  A USB to serial port adapter?  Makes the chips on that, Prolific and FTDI?  You can try with a different serial port or a brand of adapter?  A lot of people have had problems with prolific chips.  And I have also heard of people having problems using adapters who had fake chips in them.

  • VISA read lose characters beyond the end of the output string

    Hello

    I wrote a VI to take a string of output data of an ardunio Uno and analysand. I use the vi read Visa to enter the output channel of the unit. In the end I will connect a device that actually gives the value in this type of format string: (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0 *).

    So after a large number of loops, the program starts to drop the last characters of the string that it generates. If the string of Visa Read output reads something like (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,). The only way to solve this problem, once it has occurred must completely close labview (completely). Once I open again and start the program running, all is well in the world.

    Has anyone had this problem? I tried to debug it in different ways and the only weird symptom I have other Visa Read function lose a few characters of the string is the fact that by looking at the bytes to the Port after I read visa, is that she starts showing five bytes instead of zero.

    my last attempt at resolving this issue is attached.

    Note: The Ardunio outputs a string of this format every 2 seconds with the values being incrimental on a specified range. (80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0 # *)

    You can configure the * your character of termination if your Arduino does not send the carriage return or line feed.  Use the configure a Serial Port to ensure that your settings are correct.  You can also use this VI to increase your timeout so that you no longer need your waiting.

  • VISA Read blocks. Download dialogue VI reset on abandonment.

    Windows 7 SP1 64 bit

    LabVIEW version 2011 SP1 32-bit

    Version 5.1 of the VISA

    NOR-488. 2 version 2.80

    When you try to communicate with a GPIB instrument (currently a Keithley 2400 source counter), sometimes the VISA Read VI will hang and never come back.  (Timeout value is set to 10 seconds).  Once this happens the VI THAT VISA read call ignores the button cancel in the toolbar.  Close the front panel of this VI will VI resetting: dialogue of the "appeal of VI name.

    Does anyone know what causes this or how to avoid it?


  • VISA read very slow communication

    Hello

    IM using serial communications VISA in my project and I noticed that the reading block works very slowly.
    I have the microcontroller that connected to my laptop through XBee modules.
    Baud rate is 9600 due as a change factor in each component in the line won't make a difference at all.
    Also, I checked that it work with terminal XCTU and its working fine (very fast). so his can not be something else except read VISA.
    Please see VI attached file.

    Thanks for any help,

    If you do not use a stop character, then the read VISA will sit and wait that 100 characters have been received by the COM port or the timeout elapsed (which is probably something like 5-10 seconds long). You can change the time-out period (using a property node) or reduce the number of characters you read each time that the loop runs.

    Without a termination character, you will need to build your own string using a shift register buffer - whenever you make a VISA read, add it to the chain on the shift register and then do some analysis to take control of your microcontroller (e.g. alarm, coordinated) and remove all the foregoing orders of the string buffer (for example if you have started the VI in the middle of a command) ", then you don't want to throw these data).

  • want to use visa read only when the pieces is in port

    Hi all

    I do a lot of serial data communications and visa read doesn't have an undo feature.  Heres so the question.  If I'm in the middle of the read visa, set up the picture picture and block, and I press the stop button, I have to wait for the visa reading for timeout, in this case 2 seconds, before I can move to the next step in the shutdown sequence.  Now, I know, there is a way to use the events of specefic bus, but I have yet to find a good example.  Any help or advice for a workarond for that matter?

    Thank you

    Matt


  • VISA Read.vi time-out

    Hello

    Recently I happened to use Labview drivers of NewPort (ESP301) and Lakeshore (Lsci218) and I encountered the same problem of "time out" every time that a Subvi driver called VISA Read.vi for serial communication.

    I first thought has problems with driver Labview provided by the manufacturers, but after trying the pilot different LV from different companies, I started to think that the problem might be the Read.vi VISA itself.

    I use LV2010-spring, also tested with LV2011SP1. Both give the same timeout problem.

    I asked businesses about the problem, they have not found answers, nor they have LV2010 or LV2011.

    Someone had the same problem?

    Screw joint are FYI for what I tested.

    'test initialize.vi 218' is 218 Lakeshore pilot, with a change of the addition of "\r\n" in the "* IDN? the Subvi called VISA Read.vi. and a timeout error.

    "test initialize 218 - md2.vi ' has the same function, but call VISAWriteRead.vi instead of VISA Read.vi. and works OK.

    How can I know that the VISA Read.vi in LV2010 or LV2011 works correctly? or can I replace the VISA Read.vi with LV8.6 one?

    It seems to me that Newport and pilot LV lakeshore have been developed under version LV does not exceed 8.6. and I think that they tried their driver before release or I hope.

    any suggestion is appreciated.

    Xiaofeng

    The version of LabVIEW is not relevant.

    In the read/write, you add the LF/CR. In the other, you add CR/LF.

    Avoid platform dependent end consistent line in the communication of the instrument.

  • VISA Read (error BFF0015)

    Hi all

    I use COM VISA library and c# communication with my instrument via TCP/IP.

    I add the reference "VISA COM 3.0 Type Library ' to my c# project and try to establish communication using the following codes:

    *********************************

    Ivi.Visa.Interop.ResourceManager ResMsg = new Ivi.Visa.Interop.ResourceManager ();
    Ivi.Visa.Interop.FormattedIO488Class ioClass = new Ivi.Visa.Interop.FormattedIO488Class ();

    Imsg = Ivi.Visa.Interop.IMessage (ResMsg.Open ("TCPIP0::192.168.0.170::10001:OCKET", Ivi.Visa.Interop.AccessMode.NO_LOCK, 8000, "") as IMessage);
    ioClass.IO = Imsg;

    ioClass.WriteString ("* RST", true);

    ioClass.WriteString ("* IDN?", true);

    String ret = ioClass.ReadString ();

    Console.WriteLine ("ID:" + ret);

    **********************************

    I could write "* RST ' command to the device without errors. And I could see that the device really do a reset of the command.

    But when I send "* IDN?" and read the answer, I still get a TIME_OUT error. Even if I add "\r\n" at the end of the command and increase the value of the time-out period, can I still the same error. Not only "* IDN?" but also another order of reading as "* STB? ', they all can the same timeout error.

    But when I use the VISA-ReadSTB function, it returns the correct data.

    I also tried to use Labview VISA-open, entry VISA, VISA-read for the same test. I also have an error (BFF0015) after VISA-read.

    I also use a programm IO monitor to view the data. I find that I have seen the answer, but I still have a time-out error. Currently, I could only read the answer by Agilent IO control successfully.

    I'm using c# 2008, Labview 8.2.1, VISA 5.0.3

    Any notice will be really appreciated!

    Kind regards

    Please take a look at this KB. Maybe this can help you solve your problem.

    Why should I receive Timeout error-1073807339 on VISA Read or Write?

    http://digital.NI.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0?OpenDocument

    See you soon

  • What does Visa Read.vi? with a number of zero bytes

    If I use the bytes to property node Port to entry VISA Read.vi number of bytes, and the value is zero, what happens?

    VISA will Read.vi return immediately with zero byte?

    VISA Read.vi returns immediately with however the number of bytes may have shown in the buffer in the meantime?

    VISA Read.vi expects bytes or characters of termination?

    VISA is Read.vi waiting for timeout?

    The documentation does not say, and I need to know.

    Thank you.

    WARNING 1073676294 was held at VISA Read in Untitled 1

    Possible reasons:

    VISA: (Hex 0x3FFF0006) the number of bytes transferred is equal to the number of entries requested. More data may be available.

Maybe you are looking for

  • Annoying "feature": strings with a space - format update failure

    All, It's something that has bugged me for some time. Did someone came up with a solution? Create a digital control by a space in the string format, so you can have a space before the units (in this case, 'A' for 'Amp'): Highlight the digital part of

  • Windows Password Unlocker Professional is associated with Microsoft

    I want to know if it is a valid program and will run without fear of viruses or hacking, if I use it.

  • system is not booting

    When proses m restore my system after all it does not start correctly and gives an error this incomplete restoration and gives three option which is to save the newspaper, details and retry. No option does not work, what can I pls help me

  • Foglight v7 trial install?

    HI -. Where can I find instructions for installation step by step (or video) v7 Foglight installation? In addition, is VMware v 5.5 supported? Type r Björn.

  • Windows Media Player not showing not ripped or downloaded music

    Until there are a few days, torn CD and downloaded music from web sources automatically and permanently would appear in my Windows Media Player.  Now the files only go to the location of Windows 7 library/music and I can't get the files appear in WMP