SCPI commands and Variables

Hello

I write software where I test 58 orders at 35 different States (decimal 0 to 34 decimal).  Instead of writing the commands to set the State the value of the port over and over again for each switch, is possible to use a loop for change the decimal value (0) in the sub section of code 1, 2, 3 and so on?  I have not found any means to insert a variable evolution in a command of the SCPI.

    Private Sub btnSwitchTest_Click (sender As Object, e As EventArgs) Handles btnSwitchTest.Click
Dim port As Integer

DAQ = li.ibdev (0, 9, NO_SECONDARY_ADDR, TIMEOUT, EOTMODE, EOSMODE) "' addressing GPIB.

Port = 0-34

"' affects all switches to 0
wrtbuf = "SAFE: DIG: DATA: BYTE 0, (@201)" "---> > value 0 is the variable that I want to change."
Li.ilwrt (data acquisition, wrtbuf, Len (wrtbuf))
System.Threading.Thread.Sleep (1000)

"' save tensions here/nai not yet written this code.

Next port

Any suggestion would be great!

Thank you!

You must have the String.Format function inside the loop for because for now, it just writes the string once and then the loop it does not change the string at all. It is more what you are looking for.

Port = 0-34
wrtbuf = String.Format ("SAFE: DIG: DATA: BYTE {0}, (@201)", Port ")
Li.ilwrt (data acquisition, wrtbuf, Len (wrtbuf))
System.Threading.Thread.Sleep (1000)
Next port

Tags: NI Software

Similar Questions

  • Agilent SCPI commands

    Hi guys,.

    I'm working on the SCPI commands to control my instrument which Agilent B2901A in this case.

    Now, I'm able to control most of the settings via SCPI commands. But I can't get the model of the IMPULSE to 'OFF' to 'ON '. I also want to pass the model TRIGGER of the 'MANUAL' on 'AUTO '. I have read the manual and did some research online but still can not find

    I know is not a question of LV directly, but since nobody answer me Agilent Forum, this is my last hope.

    Could someone tell me what commands I need?

    Thank you very much

    huskerli wrote:

    I'm not quite understanding what to say. Is that need others evoke a kind of node?

    BTW, I have a pilot plant exactly? I am a continuous work with a project that someone left, looks that Agilent 34401 installed instead B2901A, he is so far works. I'm not sure, that could be a reason?

    Thank you

    Hello:

    There are a few things that should be addressed.  First of all, noting that the installed driver is a different model of the instrument being used wasa GREAT omission of information about your problem.  Even if ot has nothing explicitly to do with the code you have presented, it means that, perhaps, this code was written with the wrong instrument in mind...

    I strongly suggest you read the guide of the programmer for this instrument before proceeding further.  He will tell you no doubt exactly what you need to know.

  • Control of SCPI commands

    Hi guys,.

    I want to send orders from SCPI in BT in order to communicate with Agilent B2901 make the pulse of sweep.

    I have already read the Agilent 2900 SCPI command manual and find the Figure 2-2 is what I want. But I'm not sure that all the commands I've written is nessary?

    In addition, I don't know how I can check my orders or not is fair? Spy NOR can help, but I don't know how he's going to work.

    Thank you

    Agilent has provided the list of commands. Ask them if they provided a blacklist. Place orders. If the measure does not work, these commands are needed.

    Please enjoy your troubleshooting basic skills and knowledge of the communication of the instrument. You can send a command and display menus of instrument to see if it has changed as expected. You can issue the query error after each order or more.

  • How to display a value constant and variable

    Hello
    I'm trying to display a variable in sql the line of command and oracle xe object browser. Here is a small code to assign a value to a variable of an existing column name id that has value 4567 plane of the table. I'm a newbie, so forgive my ignorance:

    Report the number of new_num;
    Start
    Select code in new_num of aircraft where id = 4567;
    end;
    /

    Issues related to the:
    1. something wrong with the code?
    2. How can I he discovers via sql more command line?
    3. can I see it in Oracle XE gui object browser?

    Kind regards
    Valerie

    Dbms_output.put_line ();

    declare new_num number;
    begin
    select id into new_num from airplane where id=4567;
    dbms_output.put_line('new_num:'||new_num);
    end;
    /
    
  • I can't erase unnecessary files on my Mac Pro by pressing option, command, and then J.  Help, please.  Thank you

    I can't erase useless files more pressing option, command, and then J.  Help, please.  Thank you

    option, command, and then J is not listed as a shortcut KB

    here:

    Keyboard shortcuts in Mac - Apple Support

  • 31.1.0 and 31.1.2 drop down menu commands and commands "right button" very slow... what to do?

    My TB version 31.1.0 and 31.1.2 drop-down menu commands and commands "right button" very slow... All other menu programs bars will work perfectly. Tried disabling McAfee, no diff. TB collects e-mails, wrote e-mails to a normal speed without problem. Control S, V, P, etc work but slow... what to do?

    To diagnose problems with Thunderbird, try one of the following:

    • Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
    • Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
    If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
  • Satellite series A turn off for the game Command and Conquer 3

    Hi all

    This happened to me twice. While I was relax play skirmish Command and Conquer 3, computer laptop turns off suddenly. I was running an external power supply and the battery was full. What is even more strange, it was impossible to next turn to the until I removed the battery and plugged in.

    I bought this game around March and was able to beat the 3 campaigns without these attractions.
    I suspect that this may be caused by overheating, because after the laptop is pretty hot. What do you think? I bought it in January.

    In my Office I occasionally removed the fan and radiator vacuum, there accumulates a lot of dust sometimes. It is not easy in the case of laptops. Any suggestions? See you soon.

    Hello

    You should do a bios update, because I had a similar problem with my A100 and after updating the bios to the version the most recent (5.60) I had no problem more. Maybe it helps.
    The other thing is, if you have a ventilation system which is clobbed with dust, then you should take a container with compressed air (you can get it in every electronic market/store) and gently lead some air to breath through the ventilation holes. (like 2 seconds. Wait, then wait 2 seconds and so on; just make short sounds :))
    Then, ventilation must be clear.
    Otherwise bring your machine to a service partner for a checkup of material because some loose cables inside the machine could probably be a reason that the machine feeds not correctly on...

    Welcome them

  • Command and Conquer Zero Hour does not

    There's this game: Command and Conquer Zero Hour

    He used to work on windows XP but now on windows 7, it does not work I do not know why...?

    This is the same version that worked on XP...

    I FOUND THIS POSTED BY SOME GENIUS CALLED DARKRAJIN AND IT WORKS ON THE GENERALS AND THE GENERALS ZERO HOUR

    This I found on another page and thought I'd share it here as long as it worked for me.

    I have a core i5 laptop running windows 7 Home premium 64-bit with an ATI graphics card and I had exactly the same problems to make C & C Generals and zero hour to work.

    Good news - just managed managed to make it work, and it IS Windows 7 that causes the problem, specifically, it is to do with permissions to access the folders - Windows 7 blocks access to the folders that uses General to run.

    The way I fixed it was:

    In 'My Documents' (usually to the C:\users\YOURNAME\documents), there should be a folder named "Command and Conquer Generals data" or "Command and Conquer Generals Zero Hour data", which was put there when you installed the game.  You must create a text file in Notepad, and then save it in that folder.  However, you need to click on ' Save as ' and change the drop-down list box as text (.txt) file type to "all files".  Then save the file as "options.ini."

    Before you register, paste this text into the file to start:

    Anti-aliasing = 1
    BuildingOcclusion = yes
    DrawScrollAnchor =
    DynamicLOD = no
    ExtraAnimations = yes
    GameSpyIPAddress = 0.0.0.0
    Gamma = 50
    IPAddress = 0.0.0.0
    IdealStaticGameLOD = high
    LanguageFilter = true
    MaxParticleCount = 5000
    MoveScrollAnchor =
    MusicVolume = 55
    Resolution = 1024 768
    Retaliation = yes
    SFX3DVolume = 79
    SFXVolume = 71
    ScrollFactor = 50
    SendDelay = no
    ShowSoftWaterEdge = yes
    ShowTrees = yes
    StaticGameLOD = custom
    TextureReduction = 0
    UseAlternateMouse = no
    UseCloudMap = yes
    UseDoubleClickAttackMove = no
    UseLightMap = yes
    UseShadowDecals = yes
    UseShadowVolumes = yes
    VoiceVolume = 100

    It's just how the game remembers what options you chose (the music volume, brightness and others) and you can change them once the game is running using the menu options.

    Now the bits of the key - first, make sure you have full read/write permissions for the folder Command and Conquer Generals data: to do this right click on the file, then properties then the Security tab and change the permissions for all users.  It could also be useful in making sure that no file is 'Read only' in this folder.

    Change the compatibility mode of the game by right-clicking on the game in the start menu, click Properties, click the Compatibility tab.  I used the "Change settings for all users" button down and changed to Windows XP (SP3), as well as to check the "run as Administrator box".

    Hey Presto! It worked, demystify the myth according to which C & C Generals will not work on 64 bit systems (as some people have said).  In all honesty, I have not tried online multiplayer yet, a few skirmishes.

    Good luck!

  • Command and Conquer: Generals will not work

    Original title: Hello, I am trying to get my command and conquer Generals game to play, but he won't play I am running windows 7 ultimate.

    programs have problems with windows 7

    Hello p55gd65,

    Thank you for visiting the Microsoft answers community.

    I found a thread on the Forum to conquer and control that well that is not the exact error you receive, is very similar in nature. After reading the steps found that these should be followed by you as well as to start troubleshooting.

    http://forums.commandandconquer.com/JForum/posts/list/27136.page

    Hope this helps

    Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Command and Conquer: red alert on Windows 7 (Windows 95 game on Windows 7?)

    Hello

    I am currently trying to install Command and Conquer: red alert on my computer, which is running Windows 7. I have scoured the internet for answers and found the following two sites which, although not specifically designed to Windows 7, I thought may help: http://www.ehow.com/how_4852443_conquer-red-alert-windows-xp.html and http://www.ntcompatible.com/compatdb/details/command_and_conquer_red_alert_windows.html. From the second link, I downloaded the compatibility tools kit which, I suppose, has allowed me to get to step 10 on the first link.

    Which means that I did everything up to actually be able to install the game. When I try to install the game I get the following error: "the version of this file is not compatible with the version of Windows you are using. Check your computer's system information to see if you need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. "I looked at the system information and Windows 7 is a 64-bit program (which many of you probably already know, I'm not very tech savy). In any case, I wonder if there is a way in which I can get this Windows 95 (32 bit of sense game I guess) to run on Windows 7. Any help is appreciated thank you.

    Command and Conquer: red alert is not at all compatible with windows 7. Red Alert 3 is good.

    teengeek.freehostingcloud.com

  • How can I install Command and Conquer: Red Alert (Windows 95) on Windows 7?

    Hello!  I tried to install Command and Conquer on my new computer that is running Windows 7, but it not even will let me install it, much less play.  I insert the disc, click on 'Install Red Alert' and it gives me a progress bar indicating "Preparing Install Wizard" then the page install red alert rises, but a windows message said "this game is intended to be run from Windows 95." Whethee I click the X or 'OK' it just cancel the whole process.

    I searched the database "Help and Support" (from the start menu of windows 7) "Installation old games.  I clikced on the result "make older programs run in this version of windows" from there, I clicked on the link to open the document "program Compatability Troubleshooter."  The program I want to run (red alert) did not appear, so I clicked "unregistered". It prompted me to enter the location of the file, so I typed in the location "" E:\setup95\SETUP. "» EXE"was from there, I clicked on the"Try recommended settings"as my troubleshooting option. He gave me the "Compatibility of the test settings" page, so I clicked on the button "Start the program" (at this point, the default compatibility selection is Windows XP). From there on, a 'user account control' shield appears, so I type my user name and password.  The same thing happens as before: preparing to install the shield, and then cancel it.  So from there I click 'next' on the compatibility of the program window.  He said "Troubleshooting is complete, is solved the problem?  I say, "No test using different settings."  This gives 4 options to select, and one applies, so I will select "the program worked in earlier versions of windows but won't install or run now."  Then it takes me to a list where I can choose windows 95 and one host of others.  I selcet Windows 95 and click Next.  I was excited, but exactly the same thing happened as when I tried with the XP settings applied.  I give myself a user account control screen, I type the name and the password, but the same thing happens.  'Windows 6.1 is running.  It is a single product from windows 95. "And then I have to close it.   Any suggestions?

    Hi xPEZZx,

    What version of Command and Conquer you trying to install?

    Follow the link to the Windows 7 Compatibility Center that provides information on the different versions of the game.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?type=software&s=command%20and%20Conquer%20red%20alert

    You can try to copy the configuration file for the game on your computer and so it works in compatibility mode and check if that helps. Execution of convenience store compatibility is just a workaround solution, if this does not help, you might need go to the new version of the game.

    You can also contact the Publisher of the game and check if they can help you in the installation.

    http://www.EA.com/

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error indicating: "failure Naming or remove file C:/Program Files (x 86) \EA Games\ Command and Conquer Generals\English.big" on Windows 7

    Install the game itself works fine, but when I try to download the patch I get this error stating: "failure Naming or remove file C:/Program Files (x 86) \EA Games\ command and Conquer Generals\English.big" does anyone know how can I fix? I want to because I want to install zero hour as well and run mods.

    Thank you

    Hello AaronS.,.

    The question you have, are related to the game and should be better in the EA forums, I suggest that you post your question on the EA forums. You can check out the link below to ask your question:

    http://Forum.EA.com/eaforum/categories/list.page

    Thank you
    Irfan H, Engineer Support Microsoft Answers.

  • Cannot play command and conquer the first decade

    Original title: does not load in entriely

    Hi all

    I command and conquer the first decade on my computer, so about 4 days ago. If the disk loads up in the game selection menu, I click on red alert 2 with the file of the revenge of yuri. My computer screen everything turns black and acts as his charge, when all the brough sudden im back to the selection menu... help?

    Hello

    ·        What operating system do you use?

    ·        Were you able to play forward on the system?

    Try the game CD in another computer and check if you are able to play the game or not.

    If you use Windows 7, then the game is not compatible. Click on the link below.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/details.aspx?type=software&p=command%20%26%20Conquer%3A%20The%20First%20Decade&v=EA&UID=&PF=9&PI=5&c=PC%20Gaming&SC=strategy&OS=32-bit

    The game is not compatible with Windows Vista.

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/details.aspx?type=software&p=command%20%26%20Conquer%3A%20The%20First%20Decade&v=EA&UID=&PF=1&PI=0&c=PC%20Gaming&SC=strategy&OS=64-bit

    Step 1:

    I suggest you to uninstall the game and reinstall in compatibility mode and check if you're able to play the game or not. Follow the steps mentioned in the articles given below to uninstall the game from the system and install compatibility mode.

    Uninstall or change a program

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thanks and regards.

    Thahaseena M
    Microsoft Answers Support Engineer.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • 1V - 5v linear output using power supply 5v, voltage divider, and variable resistance

    How can I get 1v - 5v output linear using power supply 5v, voltage divider, and variable resistance?

    Have the you wired as an attachment?  Using my schema, you can calculate the current flowing through the pot based on the fall of the tension in the pot

    4V / 10Kohm = 0.0004

    Kirchhoff's current law, we know that the same current flows through the circuit so now we can calculate the leg below the wall, based on the current and the fall of desired voltage across the resistance

    1V / 0.0004 A = 2.5 K Ohm

    My scheme maintains the current flowing through the circuit of constant, so the voltage divider must never change.  Assuming a linear pot, you will get a swing of such linear voltage as measured at the wiper.  If you wired the pot, a different way, then more then likely, you change the total resistance of 5V ground that would have the common effect that would effect the tensions.

  • Error - Sorry, a serious error has occurred for the installation of the game Command and Conquer Generals.

    Original title: Command and Conquer Generals error? Some one care to help?

    So now I'm a little disappointed in how things are going right now.

    I had Command and Conquer Generals before and I used to read. Bug of the game problems are forcing me to remove it. To make things worse, my PC has been infected with malware/spyware that sneak their way inside my C & C Generals App. I did a full scan using Spy Bot Search & Destroy alongside with MalwareBytes Anti-Malware.

    Then, I tried to re - download and installed a CLEAN one. However, when it loads the classic C & C Splash Screen(the loading page that appears before the game turns into a full screen app), another windows appears and displays this:

    "TECHNICAL PROBLEMS".
    "Sorry, a serious error has occurred."

    After the application closes, and happens whenever I start the game.

    Can someone help me?

    I don't know what's happened since she was working before.

    I do weekly maintenance using Auslogics Boost Speed 5 and Systweak Advanced System Optimizer 3.

    System Specs:
    Microsoft Windows XP SP3
    Intel Pentium IV CPU 2.00 GHZ
    256 RAM
    Radeon 7000 / Radeon VE Family (Microsoft Corporation)

    Every effort to answer my question will be much, much, much appreciated!

    I'll make sure that you have all the patches that are underway for the game Command and Conquer Generals.
    http://www.GameSpot.com/PC/strategy/commandconquergenerals/downloads.html

    If you have access to a library and a flash drive, you can download Microsoft Security Essentials or any other antivirus disk analysis software and then install on your computer even if you do not have access to the internet.
    This will help make sure that you have cleaned your computer properly.

    A system restore back to a point in time so if you have installed all new programs since the date of the restoration of the system, you won't have any more of these programs installed.

    I don't know any other software in system restore, but you can do a search on the internet, however, they can only restore from when their software is installed.

    I hope this helps.

Maybe you are looking for

  • PSC2355 All in One on Windows 7

    When I try to install the latest drivers for this printer under Windows 7 32 bit, I get an error message as below. I bet that there is nothing wrong with the driver itself, just that Win7 does not like the installation routine. (Needless to say that

  • Satellite L500 is unbootable

    Hey everybody my laptop is satellite L500-1UU.When I tried to start today on battery it gives me white screen and I heard the fan works quickly and only the captain led is lit and refuses the pc shuts off when I press the power button until I have to

  • Cannot delete the partition C on Satellite A60

    I have a problem with Satellite A60 during formatting, I can't delete the C partition and still get this message 'this partition contains files of temporary facility that are required to complete the installation'. What should I do?

  • Really, how much space is used on my Macintosh HD partition?

    Hello Here is what I get when I want to know how much of my Macintosh HD partition is used: Why disk utility say that GB 218,6 is used, but 695 GB for apps + 7.05 GB for photos + 16,07 GB of the 12.37 GB for video music = 730,62 GB is used? How come

  • OfficeJet 8500 cyan quit printint quo a ink clean print head does nothing

    Cartage cyan has ink but evem multiple "clean print head" still no cyan