VISA RS232 read gel-> LV stuck on "reset vi"-> VISA resource inaccessi

I have a simple vi (attached) that reads from a serial port (in fact, a USB to Serial converter) in a timed loop (in case you're wondering why the vi is written the way it is, the instrument that I'm reading sends status messages every 20 ms, but I want only to read an every 2 econds or more) (, so I can safely ignore the rest).

The vi starts fine, but after a number of randmom reads as follows (can be dozens, hundreds or even thousands), it freezes, and nor the button 'stop' programmed in the vi or "leave" button can be terminated. However, LabView is always sensitive to this point, and I can close the VI, which translates into a message "reset VI: [name of vi]" being displayied by LV indefinitely. The only alternative is to force close LV using the Task Manager. Unfortunately, when I then try to access the resource VISA help LV or NI MAX, I get an error message:

Error opening resource:
ASRL3::INSTR

VISA: (Hex 0xBFFF0072) the resource is valid, but the VISA cannot currently access.

The only way to access the resource again is to restart the system completely (even to disconnect and reconnect the adapter USB seems to have no effect).

I found a number of similar positions in the forums, but none contained a solution. I tried to implement some suggestions which is there found (like turning off the power on the USB controller and inserting a delay between subsequent read operations) unsuccessfully (although since I inserted the delay, the problem seems to appear after a longer time).

I also captured a trace of the VISA communication, that I join you. You can see at line 138 that the read operation has not returned. This is the point where the vi freezes. The following messages are the result of me close the vi, force closure LV and then try to access the resource again.

Any idea?

Thank you

Giacomo

Hi Giacomociani,

You can be a problem is the uncertainty in bytes contained in the read buffer when you decide to read. If the buffer is empty, it can always expect the playback function, resulting in your "hanging" program. Something you can try is a business structure that reads only if a certain number of bytes is in the buffer. That give it a try and see if you still experience the problem.

Tags: NI Hardware

Similar Questions

  • My ipod 5th generation is stuck by resetting the settings and I tried holding the power and the "home" button but has just the same. Also, I tried to sync it upward, so I tunes but it has not been recognized and I can't answer on my ipod. Help, please!

    My iPod 5th generation is stuck by resetting the settings and I tried holding the power and the "home" button but has just the same. Also, I tried to sync it upward, so I tunes but it has not been recognized and I can't answer on my iPod. Help, please!

    Try the remaining shares of:

    - iOS: do not respond or does not light

    -Also try DFU mode recovery mode post-test

    How to put iPod touch / iPhone in DFU "Karthik doodles."

    -If failed and that you cannot completely turn completely the iOS device, leave the battery to drain completely. After loading a hour repeat the foregoing.

    -Try a different cable

    -Try on another computer

    S ' there is still not successful that usually indicates a hardware problem and an appointment at an Apple store Genius Bar is in order.

    Shop Apple Store - Genius Bar

  • visa resource name function

    Hi good day to everyone!

    I am a beginner to LabVIEW, and currently I'm testing on a single project.

    Store device data in Server series of STS (which has 16 com ports).

    But I need to use 7 series STS server com ports. I need to read that data 7 com ports and save in a file.

    Each com port has a different function (for example the reading of data or display).

    My question is,

    (1) VISA resource name operation function for 7 com ports at the same time to a VI?

    (2) how can I choose different com ports to different functions?

    Kind regards

    Control of resources of e/s of VISA will show you all the com ports you have on your computer.

    So you just need to make 7 copies of that control and the value of each of them to another com port and use for each VISA entry and read the series of functions that you do.  (Have you looked in the example Finder to get examples of serial port?)

  • Find VISA resources

    I have trouble finding VISA resources properly. I have no problem detection instruments that are connected on the GPIB, but after that they have detected once LabVIEW is convinced that they are there for ever more, even if I unplug and disconnect the device! The only way that the list of the connected instruments is reset completely out LabVIEW and restart it. Why is this?

    I'm using LabVIEW 6.1 (but who can not make a difference) and I attach a VI with two ways to detect if one of the four possible instruments are connected. The Subvi is used to give a command to one of the instrument, and it is able to return an error if the instrument is not connected, regardless of the situation. How can it detect the instrument as expected, but the other methods not?

    In this VI, I need detect how much, if any, and that out of four possible instruments are connected. Simple, but amazingly difficult!

    Any help please?

    James

    Well, now that you say is starting to make a little more sense. I misunderstood what you were asking before.

    Jeff Bohrer wrote: what is the selection if you look at "tools > Options > various... > automatically close VISA sessions?

    Help: "automatically close your left VISA open sessions by the application when the first level VI becomes idle. This check box is cleared by default. "This was added at some point (don't remember when), and the default value is True. It caused a lot of sorrow and complaining from users (I was a), so NEITHER changed the default value false.

    As Dennis has pointed out, there is a distinction between the resource and the instrument. When you perform an initial analysis resources will be created. There is no mechanism that automatically detects that an instrument is no longer there. In fact, when you scan for instruments of MAX, she sends * IDN? queries to find instruments. So, you must check for the presence of an instrument by actually trying to talk to her.

  • visa resources Finder will find PXI-4070

    Hello

    I use LV 2015, 32-bit on windows 7 x 64.  I have an SMU-1065 OR connected to the PCI computer bus.  I have several instruments in the PXI chassis included some switch cards, a scope and a PXI-4070 DMM.

    When I run the VISA resource finder, the result will show me all PXI cards in the chassis (as well as the serial port of the computer), but it won't find the PXI-4070 module.

    MAX shows the map I can run self test and open the interactive panels in MAX I saved (no alias) NAME of the PXI-4070 as "PXI-4070.

    I can also use the DMM OR-DMM pilots very well.

    the PXI - 4070 Max address is: PXI24::15:INSTR

    I must be able to detect programmatically PXI/SMU cards are in my frame so that I can put them up as system in the configuration it is in.  can someone help me understand why the finder resources VISA see the PXI-4070 module and report?

    Hey Reece,

    Have you tried to use the Configuration API of the system NOR? It allows you to programmatically query the hardware on your system. Here is some additional information on the API:

    http://zone.NI.com/reference/en-XX/help/373107J-01/nisyscfg/introduction

    https://decibel.NI.com/content/docs/doc-13216

    https://decibel.NI.com/content/docs/doc-29606

  • How a cRIO can access remote systems VISA resources?

    I have a NI 9871 RS485 module on an ethernet 9148 RIO.

    I have also a laptop and a cRIO 9073.

    I can access each of the 9871 serial ports on the computer but not the 9073.

    When you try to access it from the cRIO, I get error:-1073807192, VISA: (Hex 0xBFFF00A8) is denied access to the resource or to the remote machine. This is due to the lack of sufficient privileges for the current user or the machine.

    How the cRIO can access the serial ports of the module 9871 on the ethernetRIO?

    Or how a remote access cRIO visa resources?

    Or how a cRIO can have sufficient privileges to access remote resources from visa?

    Thank you for your help.

    LabVIEW 2010 & VISA 5.1 on pc

    NOR-RIO 4.0 and 5.1 VISA & NI 9871 SERIES scan engine support on cRIO and eRIO

    Hi Woss,

    It is possible that your RIO Ethernet has some parameters of active access which is to prohibit the connection to serial ports.  You can change these settings in a position and Automation Explorer (MAX) for your device by going to the device under remote systems, expanding the category of software under it and choosing NI-VISA.  There will be a tab in the right pane of MAX called Options of VISA.  In this tab, select Server VISA > security to access these settings.

    From there, you should be able to add the IP address of the RIO device that needs to access the VISA on the RIO Ethernet server.  Once you have changed these settings, just click on register at the top of the window and allow the unit to restart.  Let me know if that helps!

  • How to create names for VISA resources

    Create a VI to interface with a Tektronix Oscilloscope. Tek drivers all use and transmit handles instrument VISA Resource Name to the format.

    Yesterday, I simply plugged a text string with the characters of text on the Tek pilot and it's happy. String = "GPIB::12:INSTR".

    Today, LabVIEW dislikes this incompatibility of format, and I get an error of the pilot.

    My format of the string looks OK, but I have to do something wrong. None of the tools VISA simplty interrogate the device for his VISA resource name. How to do it?

    Thank you.


  • VISA resources between the loops with the queue

    Hi all

    I am just be familiar with the queues and the producer/consumer model, and I am facing difficulties to pass data between the loops using queues, including data of the type "VISA Resource Name.

    Indeed, it seems impossible to cable "VISA Resource Name" as an entry of the item in the queue, as an output of the Dequeue item.

    These screws can I always try to convert something of this type can accept? Or should I take a different approach and that one?

    Thank you very much for your help.

    Florian


  • VISA resource name strings

    Hello

    I have a control "VISA Resource Name" on my front, according to the guidelines of the attached screenshot, which should automatically fill with the names of all the VISA resources that the PC can see.

    Is it possible to get a picture of these names as strings (via a property node, or other) programmatically?

    Thank you very much

    Dan

    In the schema click Instrument of e/s > VISA > VISA advanced > VISA find resources. This VI returns an array of strings. You can type cast the string in a resource VISA type.

  • A control "VISA Resource Name.

    In LabVIEW, there is a control "VISA Resource Name" which lists all the VISA resources, is automatically updated when devices are plugged or not plugged in and has a navigation feature.

    With CVI, you can use NIDAQmx_NewDeviceCtrl () on a control of the chain, but it lists only the DAQmx resources.

    There is another function that I can use to have all resources VISA listed?

    Hey Vix,

    It seems to be the only solution. Here you will also find an example.

    I hope that helps!

    Bye,.

    Licia

  • RS232 read series with COM1

    Hello.  I am hoping there is a simple answer to a problem I have.

    I had previously been using the 30 day trial of LabView to begin to create an application for reading data from an output to RS232 instrument via the serial port on my laptop.  I have this based on the base series reading and writing example and it worked great.

    Now, I have purchased the software Labview base, had downloaded the software and activated.  When I open the VI that worked before, he now won't read data from the instruments. -There is nothing appears in the window of indicator text 'string of reading. '

    I checked that the instrument and the connection is fine by the acquisition of data in HyperTerminal - I use the same settings for data transfer in LabVIEW.

    The instrument automatically prints / sends data at specified intervals (I got this game to 1 sec).  Some commands must be written to the instrument.

    I wonder if there is something with the LabView installation that requires the computer to configure ports?  The resource name of Visa in the VISA run configuration is "COM1", as it had been previously.  LabVIEW should be advised as to which means "COM1"?  No, I had to do before, so I doubt little.

    I have attached the VI.  Note that it is rather messy in the deal for the reading series function structure, because I have been playing with how to manage the data.

    Thanks for any advice.

    Indeed I do a repair from cd and be sure that also max is installed correctly.

    Good luck.

  • RS232 read and compare

    Hi all, first post so please, be gentle.

    I created a VI that will send an order for and then read in, and a RS232 connection. It then compares the data read with a channel known to give a true or false result. First, it checks the length of the matching strings and then compares the actual string with the known string.

    It's OK, but I can't always guarantee the length of the string and all text will match, so what I really want to do is send the command and then navigate the returned text and look for a specific line in the text. Is it possible, there he prepared everything in advance screw? I looked but miserably failed to find one so far.

    Thanks in advance for any help.

    Jim.

    Use the match pattern or chain of research/Split to search a string for a smaller chain.  They return-1 for the offset is that the string was not found.

  • GPIB read gel when running vi without light debugging... (it works with light)

    I have a gpib read that spits out two values to an offset. It is in a loop which is defined by the initial report final and the size of the stage settings. My question is, why don't him freezes reading gpib (or don't disable; whenever I turn on the light of debugging (once it's been run), it "lights" only until the gpib read and nothing else). I replaced the gpib read with visa read, it freezes over, but it saves only zeros (when I can clearly see my system out certain values). Any help would be appreciated.

    * There is a similar topic on the light of debugging and reasoning has been designed to be a race condition. but I don't see how my situation is a race condition.

    Thank you

    Ko.

    It is resolved. It has nothing to do with the program. There was a problem of interference with another parallel machine. Once I got rid of this connection, everything worked like a charm.

    Thank you all for your valuable contributions.

    -Ko.

  • DVD drive don't read the software after factory reset

    I did a reset to factory my laptop (XPS L502X) to return to Windows 7 from Windows 10 (due to some incompatibilities).

    Subsequently, the reader will read software.

    But fortunately, it will burn on a blank disc (using Roxio). It will not however then read the content.

    He'll play pre-recorded DVD movie

    I tried the suggestions on these forums such as the removal of the driver then re-flashing the BIOS (BIOS is the latest version).

    I tried Microsoft Fixit

    Drive is an optiarc dvd +-rw ad - 7717 h

    Device Manager he describes as a CD-ROM

    Any ideas please? Need a Christmas Miracle!

    I have it

    I ran "Launch the Dell Support Centre" of the center support Dell Dell/tous programs, and as soon as he ran that he recognized the drive.

    Thank you

  • Windows 8 stuck while resetting my laptop

    I tried to reset my laptop (windows 8.1 for windows 8) but it stuck at 5% for 30 minutes. I pushed the on/off switch and forced to close. When I rebooted my laptop it does not continue the reset process. It says "Prepare the automatic repair", but it does not at all. A blue screen pop up. It is said that "restart your PC on a problem and needs. We collect some error information, and then we'll restart it for you". It does not restart, but this process continues forever. Help, please!

    This can take several hours to complete the reset, but given that you pressed the power button the installation is not corrupted. You will need to use your repair CD or USB key to fix the computer.  If you do not have one, you can create one by using this: creating installation media for Windows 8

Maybe you are looking for

  • Tecra S1 not dΘmarre?

    Hi you all. I get crazy about my new Tecra S1. Now it only starts after disconnecting the battery and the power cord. After replacing them that it will start up, otherwise the screen remains black. XP - sp2 als removed processor and registry modified

  • cRIO FTP transfer file size limit

    Hello I generated a data file on my cRIO which is about 2.1 GB in size. I can't transfer this file to the cRIO via FTP. I tried windows FTP Explorer, the built in MAX file transfer utility, coreFTP and WinSCP. I am able to transfer other files on the

  • why I can't add a new folder under windows 7 windows explorer, but I cannot add a new compressed folder?

    When I right click and select 'New' there is no option to select a new folder, just a new compressed folder. It is in the Windows7 windows Explorer. So I can't create a new folder.

  • Cisco ASA 5510 - Cisco Client can connect to the VPN but cannot Ping!

    Hello I have an ASA 5510 with the configuration below. I have configure the ASA as vpn server for remote access with cisco vpn client, now my problem is that I can connect but I can not ping. Config ciscoasa # sh run : Saved : ASA Version 8.0 (3) ! c

  • The effectiveness of the query is not stable.

    HelloI create an index on a field, then I execute a query operation that goes from 155 seconds by the table API.A few minutes later, I run the same operation with the same query conditions, passing 6 seconds!If I continue to run the same query operat