How do I program Instrument I/O Assistant to read a variable in the input string?

How do I program the Instrument I/O Assistant to read a variable in the input string? I can manually type in the string using the Instrument I/O Assistant using the "Write" or "Query" tools but I do not know how to send a variable input to the Instrument I/O Assistant so that variable can be used inside the "Write" string. For example, I have a power supply whose current I want to set to X Amps. I can type the command "PC10" to program the current to 10 Amps, however I want to be able to program it at any arbitrary current. How do I feed the value X into the code for this purpose?

You can't. The assistant was designed to be a quick and dirty way to do some basic communication with an instrument. You can turn it into a VI (right click and select Open Front Panel) and modify it so that your write string is an input to the VI or use it as a template and create your own code with VISA Read and Write primatives.

Similar Messages

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

  • How to pick up the last value of the input string

    Hi there,
    I have a requirement in which I have to pick up the last value of the input string.
    I don't know the field length, it could be 10 line, it could be 4 line and it could be even 1 line.
    Another problem is that the field contains all the alphanumeric values so the sort function is not working.
    I believe I need to write a UDF but not sure exact what and how.
    Can some body please help me solving this issue.
    Input.
    1.Abc
    2.abc123atxx.com
    3.(980)771-2341
    4.
    5.518VR50V58AD10DSAYBDSAFDSIEGHA:1
    In that case I only need to pickup the last value i.e. 518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Output
    518VR50V58AD10DSAYBDSAFDSIEGHA:1
    Note:
    1. Length is unknown
    2. Alphanumeric data
    Thanks,

    Hi karthick Lakkar,
    Thanks for your quick response but unfortunately I am getting mapping exception.
    What I did is create a UDF with 2 input
    INPUT
    a string
    b string
    and then this code
    int Length=Integer.parseInt(a);
    int requiredLength=Integer.parseInt(b);
    if(Length<=requiredLength)
    return(a);
    else
    return a.substring((Length-requiredLength),Length);
    I am wondering about the input as well.
    At present I am doing
    KTEXT + KTEXT --- UDF
    + does represent concat, means same input will go to the UDF
    This is the error which I am getting
    Exception:[java.lang.NumberFormatException: For input string: "Kevin Farrar"] in class com.sap.xi.tf._MM_XXXXXXXXXXXXXX_ method calculate[Kevin Farrar, Kevin Farrar, com.sap.aii.mappingtool.tf7.rt.Context@6dbf19db]

  • My previous laptop has broken and I want to copy my tunes from my ipod classic to me new laptop, how do I do that, each guide I've read refers to needing the old laptop which isn't an option?

    My previous laptop has broken and I want to copy my tunes from my ipod classic to me new laptop, how do I do that, each guide I've read refers to needing the old laptop which isn't an option?

    You are not going to be able to recover the music from your iPod to you new laptop.
    It doesn't work that way. It only move music from you iOS device to your computer.
    You can download what you purchased from Apple. Anything else is lost.
    Hence the reason we are always harping on backups.
    Allan

  • Instrument I/O Assistant only reading the first command

    I am very, very new to LabVIEW and I am trying to program a device using ASCII codes.  When using the VI Instrument I/O Assistant only the first command is executed. So I am wondering if there is something obvious I am missing to make all the commands executed or a way to write multiple ASCII codes in one Write command?  Any help would be much appreciated. Thanks. 

    Rach_77 wrote:
    I am very, very new to LabVIEW and I am trying to program a device using ASCII codes.  When using the VI Instrument I/O Assistant only the first command is executed. So I am wondering if there is something obvious I am missing to make all the commands executed or a way to write multiple ASCII codes in one Write command?  Any help would be much appreciated. Thanks. 
    We could help (most likely anyway) and yes, If you are new to LabVIEW it may be obvious to those of us that can look at what you've done so far, (think: attach your code) and know what device you are trying to communicate with. (make and model at least - best Link to the manual as we may need it as a reference ) 
    Jeff

  • How to use return value from TestComplete ( using COM) as a variable in the conditional statement (e.g. while loop) in TestStand

    Hi,
    I have setup a COM interface for TestStand(TS) to run certain scripts in TestComplete (TC).  Normally, when TestComplete finishes executing the script, it returns a 0 or 1 to denote pass/fail in the TestStand step (e.g String value test step).  This worked fine.
    However, now I need TestComplete to return a vaule( e.g 32) to TS, and TS need to evalue this value in a while statement. So if TC return value is 32, I'd have some statement in TS ike :                                                                                                 
    While (return value != 30)
    Do something..
    Thanks,
    Solved!
    Go to Solution.

    There are a hundred ways to implement what you are asking.  The hard part is deciding which one would be the best for you.
    What adapter are you using to communicate with TestComplete?  ActiveX?  Is TestComplete running asynchronously (in parallel)?  If so then how is the data getting back to TestStand?
    So here are some options:
    1. You can use the While Step type.  It's in the Flow Control folder in your Step Types pallette.  Look in your examples under UsingFlowControlSteps.seq in the SequenceFlow
    2. You can loop on a step and have the termination for the loop be (return value == 30).  Look in the Step Properties under Looping.  Also in the TestStand help
    3. You could do Post Actions based on a condition and have it jump to another step.  Read about it in the TestStand Reference Manual.
    4. You could use a GoTo step.  I don't really recommend this one.  It makes code hard to maintain.  Also an example in SequenceFlow called gotobeep.seq.
    Hopefully this gets you thinking.  Let me know if you have specific questions about any of these methods.
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to convert special characters like #, &, etc occuring in the input string

    Hi,
              I am using method 'Get' to submit a form . When ever there is any
              special character like '#' in my input For example "033#Test", nothing
              gets posted beyond 033.
              Can any one please let me know how do I overcome this problem.
              Thanks in advance.
              Regards,
              Moin
              

    Moinuddin:
              It seems possible your browser may be confused by the fact that 033 is
              the octal representation for an ESCape character (Hex 1B). Try dropping
              the leading zero. In addition, it is usually better to represent special
              characters like the hash mark "#" using HTML character entities instead
              of literals, i.e. &#35; = hash mark
              Regards,
              Jim Brown
              Moinuddin Ahmed wrote:
              >
              > Hi,
              > I am using method 'Get' to submit a form . When ever there is any
              > special character like '#' in my input For example "033#Test", nothing
              > gets posted beyond 033.
              >
              > Can any one please let me know how do I overcome this problem.
              >
              > Thanks in advance.
              > Regards,
              > Moin
              Jim Brown
              Developer Relations Engineer
              BEA Support
              

  • How can I assgin a master feild value in combobox bind variable in the detail

    Hi All,
    I'm working on a MD-Form in portal.
    I want to pass a master block value in the dynamic combobox where clause.
    Combo box is in the detail Block. Can anyone please give a solution for this?
    This a very urgent Requirement for me. I really appreciate.
    Thanks
    Murali

    Does this help?
    Dreamweaver Dynamic Master List with link to Detail - YouTube

  • Instrument I/O Assistant installation incomplete...Student Edition 7.1

    I'm using LabVIEW 7.1 Student Edition, and I can't seem to get the Instrument I/O Assistant to work. The student edition doesn't come with the Drivers CD, so I got the I/O Asst from ni.com. After reading some other posts I uninstalled the I/O Asst from the Add/Remove programs, then reinstalled, but it still didn't work.
    Am I running into the limited functionality of the student edition?

    The Instrument I/O Assistant vis are only installed from the Driver CD, within the Driver CD, you will see a separate installer for the Instrument I/O Assistant(iioa), run the installer from there.
    For more details, check the KnowledgeBelow:
    http://digital.ni.com/public.nsf/websearch/AA99FA8704D5E22686256D6A004464ED?OpenDocument

  • Instrument i/o assistance

    How can I use instrument i/o assistance for a current vs potential graphic using 2400 , a resistance and GPIB?

    duplicate post

  • Instrument I/O Assistant Crash

    I am using Instrument I/O Assistant to read data from a scale through a Serial->USB conversion, using LV2012 SP1 (I've also tried this on LV2010 with the same results).
    I configure the baud rate, parity bits etc, and that seems to work fine.  
    I add the "Read and Parse" step or a "Query and Parse" step, and then try to run the Instrument I/O Assistant.  The Instrument I/O Assistant window closes.  It doesn't throw an error, or a warning or anything.  
    Needless to say, the vi where I use the I/O Assistant does not run either.
    Any thoughts as to why this is happening?
    Attachments:
    Scale.vi ‏39 KB

    Personally, I think not having the assistant is not such a bad thing. What happens when you use the simple serial example? What sort of converter are you using (ftdi, etc.)? What os and version of VISA?

  • How do I open a web page in Adobe Reader from ipad2?  I don't see any buttons to click. I'm new user

    How do I open  a web page in Adobe Reader? I got the app for ipad2, but when a page says I need a certain version of AR, I don't know what to do. I'm a new user and don't know if I have to "open" AR and it automatically reads whatever doc I have up on the web, or is it always running and any web page I'm on should show a button to click in order to open the page in AR?

    If a website says that you need a certain version of Adobe Reader, it is probably attempting to detect whether or not you have the Adobe Reader browser plugin installed. This is something that only works on desktop systems where browser plugins exist. Since browser plugins don't exist on mobile, website developers should take care to present different messages and provide different options for downloading PDF's when visited by mobile browsers. I recommend contacting the website owner and requesting that they implement access for mobile devices.

  • What program do I use to install Reader under Ubuntu

    I am trying to install a later version of Adobe Reader than comes from the Ubuntu repository. When I use Adobe's download Reader page, I get the typical download box that asks if I want to open the file or save it. The default opening program on my system is VLC media player, which can't be right. What program should I select so Adobe Reader installs properly? (The Adobe site says if I get a "run or save" option I should pick "run".

    There is one and only one player available on the Adobe website. Use this URL:
    http://get.adobe.com/reader/otherversions/
    It will give you a few choices for Linuix. I have not clue what would be appropriate for your version of Ubuntu.

  • How do you get a trial version of Adobe Reader Xi to test pdf conversion

    how can I download a trial version of adobe Reader XI to try the conversion feature??

    Reader itself is free. The PDF Pack service that you can use through Reader does not have a trial. The only thing they have that converts pdf files and has a trial is Acrobat Pro.

  • How to use DB toolkit to input string 255 into ACCESS Database

    I am converting an existing LV-Application from LV5.1.1 w/SQL toolkit to LV7.1 with DB-Conn. Toolkit.  One of the tables in my MS-Access database has a field of TYPE=memo (allows string lengths > 255 characters).  I can't seem to find how to insert this field in the DB-table using the "DB Tools Insert Data.VI" without getting an error.  I have tried converting the input string to a [U8] array, but that also doesn't work.  Just inputing the long string (390-chrs) also gives an error.  Reducing the string length to < 255 allows the new record to be input into the table without errors.  However, I need to be able to input the longer strings for the application to work.
    Does anyone have a solution to this problem.
    Thanks,
    Jim Cardinal

    Something like this
    David
    Message Edited by David Crawford on 01-12-2006 11:53 AM
    Attachments:
    Insert Text to Memo Using DBT.jpg ‏14 KB

Maybe you are looking for