VISA, envoi automatique de commandes à la suite...

Bonjour à tous,
Je souhaite envoyer des commandes en VISA les unes à la suite des autres avec une attente de réponse ( quasi immédiate ) d'un nombre d'octets indéfini. Auriez vous une idée de la façon de faire ? 
Ma façon de faire ne fais passer la seconde commande qu'une fois sur 100.... 
Merci de votre aide.

Bonjour,
et merci d'avoir posté sur nos forums.
Quel moyen de programmation utilisez-vous pour automatiser vos écritures/lectures ?
Est-ce que vos commandes envoyées sont identiques ? Si c'est le cas, vous pouvez simplement cadencer vos fonctions VISA Write et VISA Write dans une boucle while.
Dans le cas contraire, vous pouvez gérer l'envoi de vos diverses commandes par une séquence, ou par une machine à état. Je vous renvoie ici pour cette dernière méthode, supposant que vous développez sous LabVIEW.
Par ailleurs, concernant le nombre d'octets à lire, il peut être indéfini en détectant par exemple la fin de la lecture sur un caractère de terminaison (\r ou \n).
Cordialement,
Eric M. - Application Engineering Specialist
Certified LabVIEW Architect
Certified LabWindows™/CVI Developer

Similar Messages

  • Automate: The command is not currently available

    I keep getting this every time I record a action and try and play it back in automate:
    automate the command is not currently available
    tried google not getting anything
    im using 64bit photoshop cs4 adn win xp x64
    thanks for your help
    Jamie

    I'm having the exact same problem, I am working in cs4, and any of my batches I try to run even the default batches, when I try to batch I get
    (The command "                  " is not currently available),
    and I just can't figure it out, and I'm on a deadline with these its a very large launch.  Any batch I try to run does the same thing that's why in between the quotes are empty.
    I'm running TIFF's but it doesn't matter because I've done this before over and over for 3 years now and I have been working with Photoshop since its birth in 1990,
    I'm sweatin bullets please help.
    J0hNNy D

  • Is it possible to automate the command enabling?

    Is it possible to automate the command enabling in acrobat 9 through SDK.
    If so kindly advice me.

    Hi Pradubass,
    By "command enabling" I assume you mean the usage rights for commenting, saving, etc in the free Adobe Reader? No, there is no way to automate that process via JavaScript. Adobe sells a server product that does that called Adobe LiveCycle Reader Extension Server ES.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.pdfscripting.com
    www.windjack.com

  • How can i disable the automatic move command?

    how can i disable the automatic move command?  when i choose the move command it automatically moves whatever element that's selected, using the previous dimension used to move something.  Big Problem.

    went back to see if Preview was checked - it isn't.
    It happens when we double-click on the arrow to open the move dialouge box, but the box doesn't open - instead the selected item is automatically moved #!@**
    that's what we need to stop... any ideas?

  • Dell Command | Integration Suite for System Center Warranty Status integration to SCCM database

    So does anyone know if the new Dell Command | Integration Suite for System Center 4.0 has the same capability as DCIP 3.1 to add the warranty status to the SCCM DB? I can't seem to find any info on it.
    http://www.techygeekshome.co.uk/2014/01/report-on-dell-warranty-statuses-for.html

    delltechcenter.com may be a better place to ask this question.
    Jason | http://blog.configmgrftw.com | @jasonsandys

  • Automatic shutdown command does not show warning message

    I'm trying to automatically shutdown a computer remotely and I'm sending the following command:
    shutdown -h +2 "Shutting down in 2 minutes."
    I want users to be able to have a warning before the system shuts down.
    The machine is shutting down, but my message is not popping up.

    shutdown is a Unix shutdown command and it sends its shutdown message to terminal sessions.  Are you users using the terminal?
    Otherwise maybe you want to try getting help for an Applescript popup, or maybe using Growl which has a command line utility for generating growl messages on screen.

  • Automate a command

    I have a command that I run in terminal every time I reboot/start my iMac.
    I need to run "sudo pmset halfdim 0". Apple Support has been unable to figure this out why this setting isn't remembered after rebooting/starting. The last thing they ask me to do was to re-install the operating system which I do not want to do at this time.
    If possible I would like to automate this task but I'm new to the Mac platform and am not sure how or if I can do this.
    If this is possible, can one of you point me in the right direction?
    Thank you.

    rongreen
    Welcome to discussions. In the GUI world, energy saving configurations are saved in /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist. Trashing it and restarting may help.

  • Can't select files when using Automate batch command

    Hi all,
    I'm having a huge problem here.
    I am working with CS3 on a mac (leopard).
    I batch process (when applying actions) all the time using the Automate/Batch process command.
    I have been doing this for years on my computer but all of a sudden it has developed a problem. When I bring up the batch command and select a source folder, I am not able to select any of the files (jpgs/tiffs) . They are not highlighted for me to select them.
    So far I have deactivated and re-installed CS3 on my computer. Still not working. So, I have downloaded CS3 onto my laptop and taken the files from my desktop onto the laptop and the problem is the same. Like I said, this has just started happening for no reason after years of working fine.
    Please, please, can anyone help.
    Thx.
    Richard.

    I hardly use the feature, so I may have missed some change, but »Folder« seems to indicate that You are to select a Folder, not Files.

  • Automate Terminal command for Adobe Update Server

    Hi all,
    I'm using and internal Adobe Server to distribute the applications updates to all the clients.
    The internal server need to be updated via Terminal, using this command
    sudo /Applications/Utilities/Adobe\ Application\ Manager/CCP/utilities/AUSST/AdobeUpdateServerSetupTool --root="Volumes/Backup_Interno/AdobeServer" --incremetal
    I would like to use Automator to launch this command every sunday at 8AM, possibly without manually insert the admin password.
    Can someone help with this?
    Thanks

    hi ned
    thanks for answer
    i setup adobe update server with IIS (AUSST), when i start downloading the updates for the inhouse server it automatic creates 2 dirctories (MAC and WIN) and download the whole adobe updates for MAC and WIN together, the question is if i can download the updates only for Windows without MAC
    Sharoni

  • Automate terminal command

    I figured out how to run multiple copies of skype by launching the .app file from different osx user accounts in terminal.  What I'm trying to do now is script this or automate opening terminal and typing the line with automator.  The following is the line that I use.
    su user2 -c "/Applications/Skype.app/Contents/MacOS/Skype && exit"
    And I just change user2 to user3 for a third instance of skype and so on.  Can someone show me how ot automate this process?  Thanks.? Thanks.

    i want to keep the password though,  I'm thinking about just using keystroke to have it put the password in each time.  something like:
    This is doable, but is also an incredibly bad idea. You see, for the most part, keystroke is blind - it doesn't care (or know) where it's typing and you'd be blindly typing each user's password with no idea of where it's going. Is it going to Terminal.app? maybe, maybe not. Even if it is there's no guarantee that it's typing in the right window, or that the window is even expecting a password.
    It's also entirely reasonable (probable, even) that you're not in Terminal.app. Nothing in the script activates Terminal.app, so you could be in another application at the time, or the user could have switched applications while the script is running - the script will continue to launch Terminal.app windows and scripts in the background while keystroke happily types the password into whatever frontmost app is around.
    OK, this is over-simplified, because it is possible to target an application to receive the keystrokes, but my aim is to illustrate the point.
    In either case, I wouldn't use keystroke at all. It would be better to use a second do script command - remember, do script does little more than type the text into a terminal window.... the difference is that at least you know you're in Terminal.app. The trick is getting to know where you're typing. The trick here is that do script will return a reference to the window/tab where the command was executed, so you can capture this after your first command (to launch Skype) and use that as the target for subsequent commands/typing in the same window, e.g. (untested):
    set theUsers to {"user2", "user3", "user8", "user11", "user4", "user5", "user6", "user7", "user9"}
    set thePWs to {"aaaa", "bbbb", "cccc", "dddd", "eeee", "ffff", "gggg", "hhhh", "iiii"}
    repeat with i from 1 to count theUsers
              set eachUser to item i of theUsers
              set eachPW to item i of thePWs
              tell application "Terminal"
                        set myWindow to do script "su " & eachUser & " -c /Applications/Skype.app/Contents/MacOS/Skype"
      delay 1 -- optional - allow time for Terminal.app to do its thing
      do script eachPW in myWindow
                        do script "exit" in myWindow
              end tell
    end repeat
    In thie way, do script has the command to launch skype and passes back the window/tab reference. After a short delay the password is typed in that window/tab, followed by the 'exit' to close the window.
    Incidentally, the use of sudo, as suggested above, obviates the need to type each user's password in a shell and avoids this issue altogether.

  • Open PDF in Fullscreen mode automatically via command line.

    Good afternoon,
    I need to open a PDF file in Reader 11 via Command Prompt. We are using a PDF in kiosk mode and I need to know the /a argument to run in Full Screen.  Thanks.

    Try setting that in the Initial View settings of the PDF Document.

  • Is it possible to add a single Entry Point menu item to a LabVIEW OI menu?

    Using the "TestStand - Insert Commands in Menu (Application Manager).vi" library VI, I can add all Configure menu items to a menu with the "CommandKind_ConfigurationEntryPoints_Set" option for the "Commands" input.  But the VI is missing an "Index" input to specify a single item from the collection.  (UnlikeThe "AplicationMgr.ConnectCommand()" function, which allows you to specify a single item with an index.)
    The issue is the same for Execution Entry Points and Tools as it is for Configuration Entry Point--I can create a menu containing the entire collection, but not a single item.  I tried to delve into the VI to change it to allow specification of individual commands using an index using the Commands.Insert() function instead of the Commands.InsertKind() function, but without success.
    As an aside, even when I add all Tools to a menu (using CommandKind_Tools_Set), TestStand exits with a warning that 12 "RunTimeMenuItem" objects were not released.  I'm wondering if I should be using the Engine.GetRunTimeToolMenuItems interface instead.  But if that's the case, I think I have to build the menu myself and can't use the TestStand library VIs to automatically run commands when their corresponding menu items are selected.  Maybe this is just a bug in the TestStand VIs?
    I am using TestStand 2010 SP1 with LabVIEW 2014.
    Any advice would be appreciated.  Thanks.
    -Jeff

    I am closing the TestStand Engine, VI Refnum, Quit Application event, and Event Callback, just like in the example.  I get the TestStand unreleased reference error only if I call that VI to include the Tools menu.  The fact that the unreleased objects are "RunTimeMenuItem" objects also implies to me that the problem is specific to the Tools menu items.  Since Tools menus seem to have their own API (which involves RunTimeMenuItems), it seems to me that the VI (or the TestStand Engine?) is doing something with RunTimeMenuItems that I can't see, and is somehow losing track of them (because that VI gives me no visibility to any RunTimeMenuItem objects).  Is it possible that one should explicitly use RunTimeMenuItem objects instead of the menu VI when dealing with Tools menus?  (Maybe the error is due to my using TestStand 2010 SP1 on Windows 8.1, for which TestStand 2010 SP1 is not officially supported?)

  • How to avoid that vis written in LV7.1 automatically open in LV8.5.1

    Hello,
    I have newly installed LV8.5.1 which also have LV7.1 installed. I noticed that the older vis now automatically open in LV8.5.1. If I save them accidentally, I will no longer be able to execute them with the older LV version. How can I avoid that Windows associates those vis with the new LV version?
    Thanks.
    Peter

    Hi Peter,
    Unfortunately windows does not allow you to specify different executing programs between files with the same extension. The link provided above explains how if you have the older version open, it will open in that version, however once you open it in the newer version and save it, you can no longer open it in the older version. Sorry for the inconvenience.
    Sappster

  • Batch command not closing files automatically

    Hi,
    Photoshop CS6
    Windows 7
    How do you make Photoshop automatically save and close a batch of raw files during batch runs?
    I'm just now trying the File>Automate>Batch command. I want to run an action on a bunch of .NEF raw files.
    How do you get rid of all the dialogs and just make the thing do the action? i.e., just OpenTheRawFile>RunTheAction>SaveAndClose>DoTheNextFile
    First it opened them all up one by one in Camera Raw and the ACR window stayed open until I clicked Open Image. So I checked Suppress File Open Options Dialog in the Batch command. That fixed that problem. But Batch left all the files open in Photoshop, didn't close any of them.
    So I went back into my action and added a file close. While recording the action I clicked Yes to save changes before closing the file.
    However, the batch now pops up that same dialog box after each file asking me if I want to save the file before exiting. This defeats the whole purpose of the Batch command.

    Do not use Batch, use one of the available Image Processor scripts instead.  If your RAW files have been converted before and have associated ACR setting, The RAW files will be converted  using these settings by ACR and ACR will bypass displaying its dialog. If the RAW files have no associated ACR settings the Image Processor scripts have an option that you can use to have the Image Processor open the first RAW file via ACR  where ACR will open its dialog. The settings you set will be used to convert all the RAW files processed in the current run of the Image Processor.
    Image Processor Pro is available on the web for downloading and is more flexible and powerful then the Image Processor that is shipped with Photoshop. You can set it up to save as many Image File for each file processed. The size and File Type you need.
    You can have the Image Processor Pro include in its process an action you create for file that are saved. It can be the same action or different action for each of the file save you set up.

  • How to let SOA Suite automatically start Oracle Database services if necess

    It occurs from time to time that I forget to start Oracle database services
    before I start Soa Suite. Can I somehow let SOa Suite startup script check in advance
    if Oracle database services need to be started (and start them automatically if necessary)?
    Peter

    Hi,
    This is a familiar issue. I've come up with the following solutions.
    1) On my linux machine, I start the database (EE) and soa suite at boot time using /etc/oratab.
    2) On my windows machine, I start the database (XE) at boot time, as a service that automatically starts. The soa suite is started manually. I could start the suite automatically as a service also, but because it takes up so much memory and I do not always want to run the suite, I prefer to start manually. In any way, the database is started automatically before the soa suite.
    Hope this will help you.
    Kind regards,
    H

Maybe you are looking for