Timeout error (Hex 0xBFFF0015) in NI VISA test panel when attempting to read from device

Hello,
I am attempting to control the set position of three daisy chained four-way actuator valves. They are VICI Valco and model # EUHA. I have them connected via RS-232 to USB into my computer. I was able to communicate with them when I sent some simple commands through hyperterminal and when I open MAX the devices appear and the panel says the devices are functioning properly. However, when I go into the test panel and try to run some default commands, I get the timeout error, 0xBFFF0015, when reading the command. Thank you for any help you can provide.
Solved!
Go to Solution.

Okay I'm running it again today and I'm noticing that its displaying results when I attempt to read from the valve but still tells me it timed out. Aside from the timeout error, both hyperterminal and visa are providing comparable results. The two commands I have been trying to read from the valves are AM (to check what mode the actuator is set to) and CP (to check what position the valve is at).

Similar Messages

  • MAX visa test panel viread error 0xBFFF0015

    I am running labview 8.5 and VISA 4.2. When I go to MAX and open the VISA test panel, the viread malfuctions. When I test it, it returns a timeout error (Hex= 0xBFFF0015). The viwrite tab also gives me the same timeout error sometimes. What can I do to correct this error?
    Also, In the labview program, we are using an RS232 serial port to collect data. Using the visa configure serial port function, we have set the timeout to 10 seconds, and we have set the VISA read byte count to 1. In our code, we have three subVIs in a visa session. The first one works fine, the second and third malfunction, because the bytes at the port show a value of 0.  Is there any relation between this problem and the previous one? Thanks for any help!

    I do not know if you are familiar with the instrument, it is a CSAT3 3D sonic anemometer. I have attached the three subVIs, since I am not sure exactly what the command is. I am very new to labview, so I am not too familiar with the commands.
    The initialize VI is the first one executed, the second is the SA sync, and the read anemometer is the third one.
    Message Edited by Ning123 on 06-20-2008 10:22 AM
    Attachments:
    Read_Anemometer_steve.vi ‏153 KB
    Initialize_SA_Comm.vi ‏136 KB
    SA_sync_steve.vi ‏39 KB

  • Visa test panel in NI MAX ver 5.4.0 read timeout

    I am using the visa test panel in NI MAX ver 5.4.0 and I connect to a CVI application I currently have a server socket up and running. My server accepts the connection form the visa test panel ok, and when I write from the visa my application sees it immediately. Then I try to read and the visa will timeout, at which point the visa displays what I sent in the 'send' command. I cannot determine why the visa writes to my application ok but the send is not received until the timeout occurs in the visa tool. In my application I am doing a simple 'send' on a valid socket. I am not sure why, but if anyone has any answers I would appreciate it. Here is a snippet of my code in my main:
      char sendbuf[64];
      strcpy (sendbuf, "ACK\n");
      /* Initialize WINSOCK before any socket calls are made */
      iResult = WSAStartup(MAKEWORD(2,2), &WSAData);
      if ( iResult != 0 )
       return SOCKET_ERROR;
      if ((ServerSock = SockOpenServer(SERVER_PORT_NUMBER_TCP)) == SOCKET_ERROR)
       return SOCKET_ERROR;
      /* By now the socket should be successfully bound.                */
      /* Wait for clients to connect. As each client connects,          */
      AcceptedSock = SockWaitForAccept(ServerSock);
      /* Indicate the socket has been initialized and a client has been accepted */
      if (AcceptedSock > 0)
       isServerInitComplete = TRUE;
      else if (AcceptedSock == SOCKET_ERROR)
       runRDPServer = FALSE;
      while (runRDPServer)
       BytesReceived = recv(AcceptedSock, ptrCh, BytesToRead, 0);
       if (BytesReceived > 0)
        /* for now just send back an ACK to ackknowledge the receipt of data */
        if (strncmp(ptrCh, "*IDN", 4) == 0)
         BytesSent = send(AcceptedSock, sendbuf, (int)strlen(sendbuf), 0 );
        if (strncmp(ptrCh, "*ESE", 4) == 0)
         runRDPServer = FALSE;

    Stephanie, I did go look at the link you provided this morning. That particular paper seem to deal with serial connections. The app I have is for TCP/IP and that's where my problem is. I did find out today, that when talking to my app using a LabView app for TCP there is no timeout in the receipt of data in the LabView TCP app, where as the Visa connection timeouts but still reads the buffer after the timeout occurs. So there is something in that Visa connection to my app, which is a server in 'C' creating the socket. We are currently going to continue with an interface with a LabView TCP connection to my app. Thanks for your input.

  • BK Precision device works in VISA test panel but fails when using driver

    I am trying to control a BK Precision XLN power supply.  I have set it up as a TCPIP VISA instrument using sockets (port 5025).  It validates fine in NI MAX, and when using the VISA test panels I can write to and read from it (although I get a timeout error on the read if I specify too many bytes).  When I use the supplied instrument driver blocks in LV, VISA read commands always timeout and fail to return anything, regardless of how many bytes are specified.

    I don't think it is a VXI-11/LXI instrument, it did not autodetect and I had to use the 'Manual Entry of Raw Socket' option to set up the device.  I am sending  a termination on the write (\n), if I don't send a termination on the read it captures the read but then gives a timeout error if waiting for more bytes, if I use a termination cahracter on the read it functions as you would expect, except that it returns multiple termination characters (line or carriage feeds) in some messages so you would have to perform multiple reads to get the whole message.  (this is all in the test panels, I haven't gotten anything back using the VISA blocks in a VI)
    Given that behaviour it seems more like what you would get using a telnet terminal interface but even given that I still am confused why I can talk to it with the test panel and not using the VISA blocks in a VI. 
    Thanks,
    Stearns

  • Can not send command via VISA test panel in MAX

    Hello all,
    I am having a small issue using the VISA test panel in MAX.  I am trying to send a simple command to a device and then retrieve the response data.  I am able to do this successfully via Labview, but for whatever reason I can not get a good response in MAX.  The command that I am sending is simply a letter (address of the device) followed by an end of line character (\r\n in ascii).  In MAX, I simply append the \r\n onto the string sent in the buffer (Send End on Writes == FALSE).  All serial settings are the same as what I have in LV (19.2, 8-n-1).  Does anyone have any thoughts?  This is kind of frustrating as I just want to do something simple and don't want to have to build a whole routine in LV to do this.
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC
    Solved!
    Go to Solution.

    Thanks, Broken.  I am getting a time out error.  Clearing the buffers doesn't seem to be making a difference. This is baffling to me.  I must be missing something fundamental.
    Something that I didn't add before is that I seem to be able to send the command via labview without a read, and then read it via MAX.  This must have something to do with way it is sending the command.  Arrrrgh!
    Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

  • VISA (Serial port) commands fail in the VI, but work in VISA test panel

    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Solved!
    Go to Solution.
    Attachments:
    problem_vi.JPG ‏24 KB

    SysB1 wrote:
    Hi, I have an instrument which has a usb connection. When I connect it to a Windows 7 PC, it automatically picks up the driver and shows up as a "USB Serial Port (COM7) (Manufacturer is FTDI). 
    When I open up NI MAX, this device shows up as COM7 (ASRL7::INSTR) under "Serial and Parallel". And, when I click on Open VISA Test Panel, and try the "*IDN?" command, it works OK.
    However, the VI (which just sends a VISA command "*IDN?") gives me a time out error (0XBFF0015) or a device/resource not present error ( 0XBFFF0011). Attached is a screenshot of the VI. 
    Any ideas why?
    Thanks. 
    PS: I went through the process to create the VISA-USB driver, but that has some other issue, but I am trying to understand why this occurs. This device also has a GPIB port and when I use a USB-GPIB adapter, it works very well. 
    Look up the examples that ship with LabVIEW.  What you have there isn't quite complete - for serial VISA.  While GPIB will work great with what you have, serial VISA requires you to configure your serial port and is a little more complicated to read.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Has to type each character twice while supplying command in Open VISA test panel

    has a set of commands to work witha system connected to the MS windows PC. when I trype the commands in Hyperterminal (with/without ) they are yielding the expected results.
    in LabVIEW, to get the expected results I MUST has to type 'each character' in the command Twice(except blank space) in the Open VISA test panel (viWrite/viRead). If I give the command  is given the usual way(with each character typed only once), the result always is 'illegal command'.....the same works fine in the Hyperterminal.

    What confused Ashwin is that you said "In LabVIEW". OK, so you're using the MAX test panel. There's one thing that's not clear. You said "when I trype the commands in Hyperterminal (with/without )". With/without what? How is your Hyperterminal session configured? Have you tried something like PortMon to see what's actually being sent from the serial port driver?

  • VISA Test Panel doesn't work on Non-Developer Environment

    I'm trying to make an executable to be installed on other machines. I have included VISA support and NI MAX along with the runtime environment software. In order to see how flexible my code needs to be, I'm trying to use NI MAX to see how to read/write to the different instruments. However, the VISA Test Panel button is completely grayed out and cannot be clicked. While it is not working, I've been using Hyperterminal, but I need more details than Hyperterminal can provide (but NI MAX can). I can see the COM Ports correctly and they can be written to/read from using LabVIEW (it's the output format that I need to know).
    I'm using LabVIEW 2013, but it also happened with LabVIEW 2012 SP1 f4.
    Thanks,
    Quevvy

    LabVIEW is definitely relevant in this case: it was installed using an installer BUILT IN LabVIEW.
    But installing the full version of NI-VISA worked.

  • Zen Xtra (Nomad) - Unable to read from device error (have tried everythi

    Recently, I've been having problems with my Creative Zen Xtra Nomad mp3 player. One day it started freezing and lagging massi'vely when I would enter nomad explorer. Now it's virtually impossible to drag and drop something from nomad explorer to my computer or vise versa (keep getting the unable to read from device error). However, sometimes I am able to get an mp3 or two after about 5 minutes of transfer time.
    I have no idea why it is doing this. One day I'm transferring my data back and forth with no problem, and the very next day I am getting this freezing, lagging, and errors when trying to transfer. The only thing that changed was me formatting my computer in between it working and it not working, but I did reinstall the driver and nomad explorer once I formatted (I'm also using the same USB 2.0 cable, but it worked fine the day before, so I am pretty sure that's not part of the problem). I was using the mp3 player to store about 0 GB worth of data for when I formatted, and now I'm unable to retrieve virtually any of it. I've tried everything under the PC Connectivity link short of formatting the mp3 hard dri've (and that is not an option because I need the files). I took it to a friends house to try on his computer, but it acted the same way. I'm completely stumped. Is there anything I haven't ruled out? Also, I'm running Windows XP Pro SP2, and I was using SP2 before the format as well if that has any relevance.
    Please let me know if I've left out any important information relevant to this issue. Any help would be very much appreciated.
    Thanks in advance.
    -Noah Patterson
    Edit: I'm having the exact problem as this guy, but I didn't seem to find any answers on his thread.
    http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=6459&query.id=3264 5#M6459
    Message Edited by talzok on 09-20-2005 08:03 AMMessage Edited by talzok on 09-20-2005 08:09 AM

    Never use MP3 players to store important data, or as a single point of storage for any data (that includes keeping a backup of the player's audio tracks). You can have problems like this with accessing the data, as well as simply dropping the player and losing the lot.
    There are a couple of methods I've seen that have worked to retrieve data:
    . Driver update - either update to the latest drivers, or nonsensically downgrade to the drivers that come on the install CD.
    2. Notmad Explorer - use the Xtreamer function in Notmad Explorer's trial version (which is free) to access the data and download it. It will be tedious, because I assume you have to download one file at a time.
    As for your general problem, I would try using Creative's MediaSource instead of Nomad Explorer to access the player (people generally don't have good experiences with Nomad Explorer).
    Also make sure you download the latest versions of the drivers (taking above into account), MediaSource, and the MediaSource plugin from Nomadworld.com downloads.
    Once you have the data off (hopefully!) you might simply want to reformat it if none of the above hel
    ps.

  • Cannot delete itunes from pc,message states. a network error occurred while attempting to read from the file C:\windows\installer\itunes.msi

    ITUNES WILL NOT DELETE FROM ADD @ REMOVE PROGRAMS,
    MESSAGE, READS  a network error occured while attempting to read from the file  C:WINDOWS\installer\iTunes.msi

    All sorted now just needed to repair itunes from control panel

  • While updating the older version iTunes to latest one it shows "a network error occurred while attempting to read from the file: C:\windows\installer\iTunes64.msi. pls help on this matter to connect my i5 to PC. Thanks in advance

    while updating the older version iTunes to latest one it shows "a network error occurred while attempting to read from the file: C:\windows\installer\iTunes64.msi. pls help on this matter to connect my i5 to PC. Thanks in advance

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page): 
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I am getting "a network error occurred while attempting to read from the file c:\windows\installer\itunes.msi" when I attempt to download itunes, can someone help me with this?

    I am getting "a network error occurred while attempting to read from the file c:\windows\installer\itunes.msi" when I attempt to install itunes.  Can anybody help me to resolve this issue?

    You can try disabling the computer's antivirus and firewall during the download the iTunes installation
    Also try posting in the iTunes forum since it is not an iPod touch problem.

  • "error occured while reading from device"

    when trying to sync our itouches the device is initailly recongnized in itunes and will begin to sync , but never gets through the whole proccess - each time it gets to a different step, but always ends with error message "ipod cannot sync as an error occured while reading from device" or something close to that...any ideas or help please....
    i have checked the usb drivers...uninstalled and reinstalled itunes and removed the security software that I can find....

    It could be to either a problem with a "file" that is either one the iPod or on the computer that is trying to be read for syncing. I would in order:
    - Reset the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore the iPod via iTunes. First from backup then to factory defaults/new iPod.

  • Trying to update to iTunes 10.4.1 and I get a message "A network error occured while attempting to read from the file C:|Windows|Installer|iTunes.msi"  Running WIndows 7 with all updates done.  I  have never had an issue with iTunes updating before.  Anyo

    iTunes has tried to update itself and runs into an error and tells me to manually install.  When I d/l and run the iTunesSetup.exe file I always encounter the following error message...
    "A network error occured while attempting to read from the file C;|Windows|Installer|iTunes.msi" and iTunes does not update to iTunes 10.4.1.
    Anyone know what is creating this error message?  Thanks for the help...

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page): 
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Web Service; Error attempting to read from file

    I'm trying to connect to a web service as outlined by the book "Creating Dynamic Forms with Adobe LiveCycle Designer" which is an excellent book by the way.
    I'm receiving the following error "Error attempting to read from file. http://www.webservicex.net/BibleWebservice.asmx"
    I've successfully created the Data Connection to
    http://www.webservicex.net/BibleWebservice.asmx?wsdl
    I dragged and dropped the bookTitle, chapter & Versie onto the form. I also dragged and dropped the GetBibleWordsByChapterAndVerseResult and the GetBibleWordsByChapterAndVerseBtn.
    I Preview PDF and click the button I get the above error.
    Does anyone have experience using Web Services with Adobe LiveCycle ES and have advice on how to resolve this. Any Suggestions would be greatly appreciated.
    -Todd

    Well, I have more news on the error I'm getting. - NO I didn't find the problem. Yet
    I checked and made sure that web.config had "None" selected " in authentication mode. I.E. <authentication mode="None" /> This should eliminate any authentication problems since that turns off IIS's authentication checking.
    At first I was thinking the form was generating the error trying to read the result coming back from the web service, but I put in some code that writes the result to a log file when the method fires off.
    I noticed that when I clicked on the button on the form, the error message would pop up from Acrobat, but when I check the log file, there was NO entry. This means that Acrobat failed before it could execute the method.
    Here is the web method:
    [WebMethod(CacheDuration = 30,
    Description="Returns the String 'True' or 'False' whether or
    not you entered a 'T' or 't'.")]
    public string TF(string Tf)
    string result="False";
    if(Tf.Substring(0,1).ToLower()=="t"){
    result= "True";}
    LogFile.Write("Sent: "+result);
    return result;

Maybe you are looking for