series of commands by visa



Tags: NI Software

Similar Questions

  • Conversion of vi series Lv5.1 of VISA

    The question: is there a simple routine or a utility that will allow me to put to port vi series day in LV 5.1 wrote to the current version of LV?

    We use LabView 5.1 series vi (no VISA) to pass requests and data between an instrument and a PC. Series vi communication were easy to use and have been widely used in several legacy programs that have continued to evolve (and use) over the past 6 years (probably not the best code).

    I want to upgrade to a recent version of Labview, and in my first test (using a version 8.2) could open the old 5.1 VI with only minimal errors. However, none of the communications series void IA function. Change series vi in a subroutine for versions of the series VISA write / read / bytes to the Port / etc. as well as the works of appropriate but c‰blage to do it for all occurrences of these series vi leaves me quite cold to the idea of "redevelopment".

    I've looked through the boards, but have not found something that seems to meet my need. Any help would be greatly appreciated.

    First of all, these are not errors and warnings. Second, if you do not see the VISA features in LabVIEW 8.2, so what could happen is that someone made the mistake of creating a Bachelor's degree in law and Economics vi.lib functions in the llb. If the location of the series functions is in a Bachelor's degree in law, you really, really want to remove them from the llb (as well as all other functions of vi.lib). Registration of the vi.lib in a just llb functions makes very difficult upgrade process. You should also really, really thinking about giving up a total of llb. They have no use and must be used for the distribution of the code. A VI corrupt in a llb will damage the whole llb. A Bachelor's degree in law does not work with source code control. Use separate screw or the new lvlib folders.

    Here is the block diagram of the pilot series Open. And Yes, VISA uses another way to select ports. the 'ASRL1::INSTR' is the more formal way to use com1, but normally, people use the alias VISA "COM1". It is much better than the old way where Com1 is port '0'.

  • "Arduino TTL series for Windows (LabVIEW VISA).

    Quick Q to the forum.

    I guess that the TTL output series of Arduino can be read and written directly by LabVIEW but I don't know if this is the case when you use the TTL series on the arduino.

    I realize that it is possible to talk to arduino via its serial port secondary (or primary), one who sets himself up as a port virtual com how a USB serial Converter and use a USB cable. It is very good.

    But what speaks directly to the Council?

    If I want to configure Arduino, a wait loop to pronounce on its input series ttl line how to connect to it from my Windows and LabVIEW?

    I have to worry not about levels of the PC serial port interface? Can I just connect TX RX and ground of the serial port directly at the entrance of serial Arduino TTL?

    Thanks in advance.

    Easiest thing, in my humble OPINION, would be to use a USB-serial to TTL level adapter. Something like this: http://www.mouser.com/Search/Refine.aspx?Keyword=RS-232-WE.

    If not, a search for RS-232 level, removal of the circuits should show a number of options, ranging from IC meant for the task to the discrete component simple circuits.

  • series PIX command authorization

    Hi all

    can someone tell me please the use of GBA pix command authorization. I understand the use of a shell command authorization.

    I'm sorry if the question is too dumb. I am completely new to this sector.

    Thanks in advance.

    concerning

    Kirti.

    Pix command authorization set was designed to set up approval order with PIX/FWSM, as shell pix did not differ for IOS, but at the launch the actual code, PIX/FWSM seems to work correctly with the auth command sets the shell.

    So no one is really interested in using shell Pix more, more to watch new codes of pix it seems that developers are more likely making Pix Shell same shell IOS, so even if they stop PIX command sets in the next version of ACS I will not be surprised.

    ~ Rohit

  • How to automate the SSH connection/commands on a series of switches PowerConnect 3400 3500 and 6200 series.

    I'm trying to find a way to automate the commands to send a series of switches (about 20) showing some configs and save the output to a file. The way I was trying to do was using plink and creation of a batch of files for her.

    Essentially, it would be something similar to the following.

    ECHO

    for /f % in (devices.txt) plink % l word of PAST of USERNAME-pw-v - m C:\Batch\commands.txt > output.txt

    To split the above command, looking for my ips in the devices.txt and made a "plink pw - username PASSWORD - v IP-l m - COMMANDS > OUTPUT" for each. The problem, I'm running is that the switches do not accept logins, they constantly ask for the user and the password again. Even when you try to put them in the commands.txt he will not accept the entry. I googled using plink with dell switches but there is nothing to talk about this problem.

    So my question is, is it possible to automate this sort of thing in a batch file? Or some way to automate a series of commands to a switch via SSH? I'm just not wan't do manually connect to each of them, carry out my orders, out, reconnect and repeat. I did it on cisco switches so I thought the process would be similar but I don't understand what obstacle I'm running in here. Ideally, I'd like to see how to do this via SSH but at this point, I am ready to accept almost any alternative (secure) to automate the sending of orders for my switches.

    I hope that all makes sense.

    Sorry, I haven't used before plink, so I'm not sure what to change to get this to work. In the past, there was another Member of the community who has been able to use expect to establish connections to switches and save configs.

    Linux.Die.net/.../expect

    It may be somewhat more than installation, but you can be able to make it work for your needs.

    http://Dell.to/1RONL3D

    Let us know

  • Create .bat file to launch a series of specific commands

    I need to create a batch file to run a series of commands for a specific task.

    I'll send someone that a certificate encrypted PDF along with the public key (.pfx file) because I want only this part to be able to view the pdf file. But this does send the PDF and the public key to a third party, enabling them to see also.

    That's why I want to write a batch file to allow the first part install the public key, and once the installation is done, I want to delete the .pfx so.

    I have zero knowledge in the writing of scripts and commands, and all I was able to make browsing through forums is to create 2 batch files single line code: one that runs the .pfx and one to remove the file. But that's only if I know the location of the file on the hard drive. So, how can I combine these 2 commands in a single batch file, allowing him to detect where the other party has saved the file and run it after installation, remove the file.

    Please, any advice would help me greatly!

    This issue is beyond the scope of this site and must be placed on Technet or MSDN
  • Delay between two operations in the same visa write buffer

    Hello

    I'm new to labview and have tried to find a way to introduce some delay in milliseconds between two operations in the same buffer of writing a block of single entry visa. Here's what I want it to be like:

    CURR: LEV 1.5

    wait about 50 ms

    CURR: LEV 2.0

    wait once again

    In fact, I must apply an alternating signal to a coil with a certain frequency through a source of supply of power e3631a Agilent. So if there is another alternative for her, so please let me know.

    Thank you

    Concerning

    Here are two approaches. First being the easiest, simply put a delay between written VISA. The second being a more robust because it allows you to develop a series of commands by simply adding the string array. You might forget the case of the loop if you don't mind the 50mS delay before e first command is sent.

  • Communication through MAX with equipment series

    I use a converter RS 232 to USB to communicate with a gas Analyzer. I want to communicate using the C-link protocol to communcate with the Analyzer, but I cannot do this through Labview and MAX. In the manual of the machine, it is said that control of the aircraft have first the ASCII, code 128 character and its id to the instrument, which, in my case, is 43, which means that the command should start with ASCII character code 171. Then, each statement must end with a carriage return. I tried several different ways to send these commands but in MAX, I get an error in time-out for the series in Labview and VISA Communicater, I get an error on the property node (I used the basic series write read provided vi).

    Can someone help me on? I'm not really sure how to send these commands properly to the analysers.

    You send the characters 'C' and 'R '. This isn't at all the same that the CR control code. You might have used the cast to send hexagonal 0d, you can use the constant CR on the palette of the chain, you could set the string to display hexadecimal constant and send D 0, you can use the constant string defined for '-' display the Codes and \r to send.

  • How to automatically run an order of series

    Hello

    I'm brand new on Labiew. I did a vi as attaché to the reader one shoot-syringe and rotary valve, and it worked fine. what it does is send command whenever I click on the button "pump" or "valve".

    But now I want to run a series of commands automatically, for example, #1 à #2 valve, #3, and #4 to pump, pump pump of order total orders etc. will be around 10. I wonder what is the best way to carry it out.

    Thank you very much

    Make a (a typedef) cluster that contains for example information on the time and the type of order (I assumed you don't want different time controls)

    Make an array of these "clusters of command" (or a queue, find out more about QMH) and stream to a state machine that emits orders at the right time.

    If you are new to any of these concepts, learn about the documentation free before you start:

    https://www.NI.com/getting-started/LabVIEW-Basics/

    Moreover, you don't need the outside while loop. Instead, perform the shutdown affects a case in the structure of your event and the stop wire terminal to be true in the case of stop button.

  • Communication Serial Port without a VISA

    Is it possible to connect to the serial port without a VISA?

    The thing is that the VISA is required to be installed on the deployed machine. It is not for my client.

    Thanks for any help.

    You can find driver series placed in Non-VISA:

    http://www.MHST.de/downloads.htm

    Benefits:

    • you need not install DURATION VISA on a deployed machine. Place a dll (dll is included) in the system folder - that's enough.
    • There are several additional features that has no VISA
    • works reliably

    Disadvantages:

    • Works for serial port only
    • uses the WinAPI functions
  • VISA VI requirements

    Hi all

    What are the requirements for the use of the NI VISA vi?
    all series cards are required for the use of this vi?
    I want to use VISA vi for communication with NI 6251 or 6509 series.
    Is THAT VISA driver vi is available with these cards of NOR.
    What all the other necessary software drivers for the use of the vi of this VISA?

    Thank you & best regards
    Techiess


  • ACS - configure the authorization of shell commands to work under the configuration mode (conf t)

    Hello world

    I'm trying to set up a shell commnds set orders (including t conf mode) will be allowed, with the exception of administrative commands, such as writing, copy, admin, format etc.

    He worked for the commands in privileged mode (most) (such as writing and copy), but did not order t conf mode. It is important to prevent users to perform the ' write for the "and" copy run start "commands, for example.

    Here is the entry in the series of command shell (Partial_access) approval:

    Unmatched orders: permit

    List of commands:

    Admin

    copy

    delete

    do

    format

    To write

    (Relevant) group settings:

    V - shell (exec)

    Privilege level of V - 15

    Shell command authorization set

    Assign permission to command Shell Set to any device network - Partial_access (group name)

    I use CiscoSecure ACS version 4.2 (0)

    Thank you

    Lior

    Hi Lior,

    Please make sure you typed in the AAA client, the following commands: -.

    AAA authorization config-commands

    Thanks for posting your AAA client configuration via "run sh |" I have aaa "and if possible your configuration of privilege"

    HTH

  • CLI command (or script) to determine if a resource pool has enough resources to a virtual machine

    Is there if a VMS resource pool has enough resources available to start the virtual machine WITHOUT triggering an error of vSphere PowerCLI script - or a series of commands - which can be used to determine?

    For reasons of performance test, we use a pool of resources with maximum rates for RAM and CPU.  Each virtual machine in the pool has a reservation for CPU and RAM.  Test automation will try to start VMs as much as possible in the pool during the test.  The CLI will return an error when you start the virtual machine may exceed the amount of allowed resources.  When this happens, an error on the console vSphere "insufficient resources".  Instead of constantly from the virtual machine, fault and generates error - is there a way to check to see if there is enough space?

    Thank you

    Jason

    Hi Jason,

    You can try if the following PowerCLI function is what you need. The function does not resemble stretch bookings.

    function Get-VmStartPossible {
      param($VM)
    
      $VM = Get-VM $VM
      $ResourcePool = $VM | Get-ResourcePool
    
      $CpuReservationUsed = $ResourcePool.ExtensionData.Runtime.Cpu.ReservationUsed
      $VMCpuReservation = $VM.ExtensionData.ResourceConfig.CpuAllocation.Reservation
      $ResourcePoolCpuLimit = $ResourcePool.ExtensionData.Config.CpuAllocation.Limit
    
      $MemoryReservationUsed = $ResourcePool.ExtensionData.Runtime.Memory.ReservationUsed
      $VMMemoryReservation = $VM.ExtensionData.ResourceConfig.MemoryAllocation.Reservation
      $ResourcePoolMemoryLimit = $ResourcePool.ExtensionData.Config.MemoryAllocation.Limit*1MB
    
      if (($CpuReservationUsed + $VMCpuReservation -gt $ResourcePoolCpuLimit) -or ($MemoryReservationUsed + $VMMemoryReservation -gt $ResourcePoolMemoryLimit))
      {
        $false
      }
      else
      {
        $true
      }
    }
    

    You can call the function with:

    Get-VmStartPossible -VM MyVM
    
  • Newport ESP300 GPIB communication stops after query

    Hello

    I'm trying to control a Newport ESP300 via GPIB controller with labview and I encountered a problem that I saw in the forums.  I can tell the controller to move to different positions, to wait, to change speeds, etc., without error.  However, when I ask the device, it stops all communications with Labview.

    Example of

    1 MB //axis 1 on

    1pa2 //move axis 1 absolute in position 2

    wait for stop 1WS

    1AP?     absolute position of query

    2 response //ESP300

    1pa3 //NOTHING ARRIVES

    1MF NOTHING HAPPENS

    GPIB READ.vi a mode = 2 (to end the LF character) to terminate the operation of reading as specified by newport, but the communication stops everytime I interrogate the device.

    I tried to do what this last newport mentions, without effect.  FTP://download.Newport.com/MotionControl/archive/motion%20Controllers/ESP300/software/ESP300%20GPIB%...

    I should mention that I couldn't disable autopolling (the box is grayed out).  Although I don't think that's the problem.  I also tried to replace the GPIB READ.vi with code on VISAS, but this has no effect.

    Sending of the same series of commands through NOR-MAX does not show this strange behavior.  I tried to ask about it in Newport, but they were not able to help.  Anyone has any advice on how to reliably read/write by GPIB with the ESP300 controller?

    Thank you.

    I found the problem.  It turns out that when you use the GPIB READ.vi, I had put the number of bytes to a value that was too small.  Thus, reading finished early, leaving the rest of the message in the buffer.  I don't know exactly why it resulted in a 'freeze' of communications, but he did.  Increase the number of bytes to 255 has solved the problem.

  • Communication with the niVisa (GPIB) do not work next to a serial interface

    Hello

    I programmed an application in C++ (Visual C++ with MFC, running on XP). On the one hand, I control devices of different measure (also from different suppliers). All communication is done with niVisa (Version 4.6). On the other side, I send remote commands to a generator via the serial interface. To do this, I use CSerialPort, it's a Wrapper MFC of the Windows API. Thus, niVisa is not used for the serial connection.

    It works without any problem until I connect the measurement equipment (any type of) via Ethernet.

    When I now connect the scope via GPIB (I use a NI PCI-GPIB), communication works without any problem as long as I wouldn't send anything on RS232. After I send something to my generator (and close the com-port), the next Commander of VISA will give me an error (VI_ERROR_ABORT). Now, I can log in again and everything works normally again (until I have again send something on the com-port).

    For me, it's a really strange question. Any ideas? Any help?

    Best regards

    Michael

    OK, I finally found the problem.

    When you use the serial port, you can write data with normal writing (WriteFile()) function or with the tip (WriteFileEx()). Do not now ask me for more details on the difference, it's something with the mode "" overlap...

    After I send all the data with WriteFileEx, VISA-connection via GPIB produces an error. So I went to the basis of WriteFile() and everything works. Don't ask my consistency betwenn VISA (with GPIB and just GBIB) and the connection series. I'm just happy right now...

    Michael

Maybe you are looking for