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

Similar Messages

  • 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 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.

  • 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 (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.

  • 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

  • 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.

  • 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).

  • In Max, click Test Panel - Get Executable version (7.1.1) doesn't match resource file (7.1)

    Hi,
    I haven't used LabVIEW for a while.
    I plugged in a USB-6251 and ran Measurment and Automation explorer and saw that the USB-6251 was in the NI-DAQmx Device and was green.
    I clicked on the Test Panels button and got a window with the message:
    Get Executable version (7.1.1) doesn't match resource file (7.1)
    When I clicked OK  MAX was locked up.
    I found this:
    http://digital.ni.com/public.nsf/websearch/680E61A4D02158A186256F7A0073C228?OpenDocument
    which told me to repair the LabVIEW Runtime thingy.  I did that and it's still broken.
    My MAX version is 4.2.0.3001
    I assume that's a pretty old version but I would have thought it should have been updated when I upgraded to LabVIEW 8.2.1.  But I don't see a MAX folder in the 8.2.1 install.

    I thought I had replied to this but somehow it didn't get there.  In answer to the question about running the device driver CD after installing LV 8.2 I don't know the answer. 
    Anyway I installed LV8.6.1 and now it goes into test panels OK so I should be able to progress.

  • How does the "Read Status Byte" work in the VISA test panel?

    I'm currently trying to replace an HP-85 with a modern computer running VB.NET, which will communicate with an HP 3421A. Unfortunately the 3421A was created before SCPI was created, so I believe the commands I am able to send are dictated by what the 3421A lists in the manual (http://exodus.poly.edu/~kurt/manuals/manuals/HP%20Agilent/HP%203421A%20Operation,%20Programming%20%20&%20Configuration.pdf).
    The commands I'm trying to use to troubleshoot are "DCV", which reads a voltage, and "SR", which returns 24 different registers, with register 1 being the status byte. When I write "DCV" and then read, it returns a correct voltage. When I write "DCV" and click "Read Status Byte" in the VISA panel, it lets me know that data is available to be read and when I read it returns a correct voltage. When I write "DCV", then "SR" and then read, it returns 24 different bytes, with the first byte being the status register, but it doesn't recognize the "DCV" command from before and the status byte is now 0, which leads me to believe that it's overwriting the "DCV" command from before.
    How can I mimic the functionality of the "Read Status Byte" button in the VISA panel? How does this work on instruments created before SCPI was implemented? Sending "*STB?\n" doesn't work. I am new to instrumentation so if I left out some necessary information please let me know. 

    Thank you for the suggestion. I found a solution by adding NationalInstruments.NI4882.dll and using the SerialPoll function.

  • MAX 3 locks up when using test panels

    I am using MXI-3 fiber link to connect to PXI-1000B chassis from my win XP PC. I have a PXI-6115 and PXI-6533 in slot 3 and 5 respectively.
    Both devices shows up in max and window device manager.
    But when I try to check the properties test resources on PXI-6115 then nothing happens.If I run test panel on max or in virtual channel, its locks up the MAX.
    Runing the test resouces in MAX on PXI-6533, I get the message that "This device is not responding to selected base address.
    I have also tried this setup with windows 2000. When I runs MAX the TEst Panels and Test Resources buttons are grayed out.
    I have changing diffrent setting for IRQ's and DMA without ant results.

    When you install a MXI-3 card in the PC and the PXI chassis, there is a MXI Initialization disk that you get which installs the MXI-3 Optimization program on your PC, which must run on bootup of the PC.
    Also, your PXI chassis must be powered on FIRST before your PC is powered up.
    Have you done both of these tasks first?
    Mark

  • Simulated device in MAX, self tests without error and has working Test Panels, but doesn't show up in DAQ assistant.

    I'm trying to create a development machine where we can test new code without using our physical hardware. I've followed this guide in setting up a simulated device. I can get to step 3.2b, but the device does not show up in the DAQ assistant. In MAX, the device self tests and self calibrates successfully, and when I open the test panels, I see some sort of signal. I assume this is a default simulated input since I haven't told the device to look for anything? Note that the two devices I'm trying to create show up in the Devices and Interfaces section, but that even after running Self-Calibrate, the Self-Calibration date is still unspecified.
    When I try to test the device and create a voltage input according to the guide, I am unable to see either device in the DAQ task creator.
    Steps 1 and 2 of this guide are obviously satisfied. Step 3 is not, but this is unsurprising since a simulated device wouldn't be found in the Device Manager anyways. Also, I am not running RT, so step 4 is satisfied.
    Does anyone have any ideas?
    Solved!
    Go to Solution.

    That would be because the PXI 5124 is a digitizer not a analog input device.  You need to use the NI SCOPE driver not NI DAQmx
    Jeff

  • 5450 Test Panel error

    Hello,
    I am trying to execute a vi using PXIe 1065 with NI 5673 RFSG and NI 5663 RFSA. When I try to test NI 5450, using MAX, it passes self test but upon clicking the Test Panel and running it using start, the sine wave isn't running and I donot get an amber light on the device's LED? Also after some time i get the timeout error!
    Please help.
    Regards,
    prads 

    Hi Prads,
    First, make sure you have configured the PXIe-5611 Properties page, setting the PXI-5652 as the LO source and the PXIe-5450 as the baseband arb.
    Next, make sure there is a cable running from the PXI-5652 REF IN/OUT to the PXIe-5450 CLK IN, assuming you are not trying to lock the PXIe-5673 to an external 10 MHz reference.
    Also try running self teston each of the three individual modules, and try Test Panels on the PXI-5652 and PXIe-5450 individually to see what happens.
    Let us know what you find. Also, if you can post a screenshot of the error if you are still receiving one that would help.
     Thanks,
    Andy Hinde, MBA
    Systems Engineering - RF
    National Instruments

  • CAN 8473 Not working with Test Panel in Max

    Hello all.  I am working with a USB-8473s CAN unit.  I have it connected to the bus and can see the can traffic through the bus monitor. So everything is working properly there.  I am trying to send a certain message so I set up a message and channel in MAX but when I go to the test panel I get an error saying that the "Test Panel cannot run since no CAN ports are available. Make sure you have at least one NI CAN card inserted into your computer".  What is going on? I thought that the USB can unit was the CAN card?  I'm on Win XP.

    You're not going to like the answer.  The 8473 only supports the frame API and not the channel API.  No messages in MAX.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/203​384  >> specification tab >> API Support
    I ran into this same problem.
    You'll either have to use the frame API or purchase a different unit that supports the Channel API.
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

  • Errore -200016 Test Panel

    Salve a tutti.
    Quando apro il Test Panel della mia scheda DAQPAD 6015 Usb e provo a testare il segnale di output con una forma d'onda sinusoidale ho l'errore -200016 che riporta le seguenti parole: Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate. Reduce your sample rate, alter the data transfer method (from interrupts to DMA), use a product with more onboard memory, or reduce the number of programs your computer is executing concurrently.
    Vorrei capire come posso risolvere questo problema. Grazie. 

    Ciao Zlatan91,
    hai provato le soluzioni descritte nell'errore?
    Reduce your sample rate
    Alter the data transfer method (from interrupts to DMA)
    Reduce the number of programs your computer is executing concurrently
    Output Characteristics
    Max update rate
    Software timed ........................... 300 S/s,
    system dependent
    Hardware timed .......................... 50 S/s, system dependent
    Il self test con la scheda funziona correttamente? e il reset?
    Hai provato con la riparazione del driver?
    Fammi sapere ***** ti serve.
    Ciao

Maybe you are looking for