NI4882 equivalent command for the IVI formatted488IO ReadList command.

I need an NI4882 equivalent command for the IVI formatted488IO ReadList command.
This is what I have:
using Ivi.Visa.Interop;
using Ivi.Driver.Interop;
formatted488Class = new FormattedIO488();
formatted488Class.WriteString("LDATA");
object response = formatted488Class.ReadList();
What I need is an equivalent when instead of the IVI DLLs (Ivi.Visa.Interop and Ivi.Driver.Interop), I want to use NationalInstruments.Common, NationalInstruments.NI4882 and NationalInstruments.VisaNS.
I.e.:
NI4882.Device.Write("LDATA");
and then call:
NI4882.Device.ReadString() or NI4882.Device.ReadByteArray()
Problem is I don't know how many bytes or strings are to be read, and even if i knew it would not help because it would still not behave the same way as IVI's Readlist.
Can anyone point me in the right direction?
Thanks,
Cris

Yes, I was using ReadString. Unfortunately, it only returns 128 values of 1000, which is what I need. If you do not specify the number of values to read, i.e,. ReadString(int numberOfBytes), it assumes a default number of 128. However, I found a solution which is more of a workaround. I read the first 128 values, and it so happens that the instrument returns as a first value the number of values to be read (1000). So I read the rest of the values in a loop. Not elegant, but it seems to work for me.

Similar Messages

  • NI4882 equivalent command for the IVI formatted4​88IO ReadSTB command (AQ6317B instrument)

    I cannot find in the AQ6317B optical spectrum analyzer manual the GPIB command that reads the status byte. The service command SRQ? only returns 0 or 1 meaning that the service is ON or OFF. Also SRMSK does not help. I need to read the status byte using (a) GPIB command(s) in order to find out when a longer operations such as sweep is done.
    Can anyone help?
    Thank you,
    Cristian

    After researching this problem I have found that I should use NI4882.Device.SerialPoll and read the flag returned by this operation. However, in the latest version of NationalInstruments.NI4882.dll, v13.0.45.159, which I got a week ago from the NI website, this enum has the following values:
        [Flags]
        public enum SerialPollFlags
            // Summary:
            //     Device that is requesting service has a message available.
            MessageAvailable = 16,
            // Summary:
            //     At least one bit in the Event Status Register (ESR) is set.
            EventStatusRegister = 32,
            // Summary:
            //     Device that asserted the service request is requesting service.
            RequestingService = 64,
    which as you can see, does not contain the values that I need: 1 !!!! It starts at 16, meaning b4 (the fourth least significant bit), and it's missing all the other values 1, 2, 4 and 8.
    Anyone hit this problem? It seems very strange to miss these values. I need the value 1 because it is the bit that is set when an long operation like sweep finishes.
    Thanks in advance,
    Cristian

  • Using a Variable in SSIS - Error - "Command text was not set for the command object.".

    Hi All,
    I am using a OLE DB Source in my dataflow component and want to select SQL Query from the master table  I have created variables v_Archivequery
    String packageLevel (to store the query).
    <Variable Name="V_Archivequery" DataType="String">
         SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
         FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
         ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
         Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)
        </Variable>
    I am assigning this query to the v_Archivequery variable, "SELECT a.*, b.BBxKey as Archive_BBxKey, b.RowChecksum as Archive_RowChecksum
    FROM dbo.ImportBBxFbcci a LEFT OUTER JOIN Archive.dbo.ArchiveBBxFbcci b
     ON (SUBSTRING(a.Col001,1,4) + SUBSTRING(a.Col002,1,10)) = b.BBxKey
    Where (b.LatestVersion = 1 OR b.LatestVersion IS NULL)"
    Now in the OLE Db source, I have selected as Sql Command from Variable, and I am getting the variable, v_Archivequery .
    But when I am generating the package and when running I am getting bewlo errror
     Error at Data Flow Task [OLE DB Source [1]]: An OLE DB error has occurred. Error code: 0x80040E0C.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80040E0C  Description: "Command text was not set for the command object.".
    Can Someone guide me whr am going wrong?
    Please let me know where am going wrong?
    Thanks in advance.
    Thankx & regards, Vipin jha MCP

    What happens if you hit Preview button in OLE DB Source Editor? Also you can use the same query by selecting SQL Command option and test.
    Could you try set the Delay Validation = True at Package and re-run ?
    If set the query in variable expression (not in value), then Set Evaluate As Expression = True.
    -Vaibhav Chaudhari

  • I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content)

    I just statred Flash CC for the first time and it seems that the text within the pop-up window (dialog box) is mis-aligned and not allowing me access to the command buttons, nor all the text. (ie: the NEW Template Box, can't see but 2/3 of the content) is there a fix to this problem? using 8.1, Monitor is a high res.2560x1440.

    Another View.
    the GUI is so hard to read (so small) I enlarge my Ps UI by the instructions below...which helped a lot.

  • What is the default key command for the COMMAND key?I seem to have changed it somehow along the way and now when I push the command key it hides all windows or shows desk top I need to correct this as soon as possible-.any ideas?

    What is the default key command for THE COMMAND (apple) key? I seem to have changed it somehow along the way and now when I push the command key (only) it hides all open windows and shows the desk top and when I push it again it shows all windows again...I need to return to default A.S.A.P. just this one key...Any ideas? Thanks in advance...

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • Command to see host and static nat for the same object together

    I have researched this but cannot find an answer.  ASA running version 8.5.
    When you create the config using object NAT you enter the commands as follows
    object network <object name>
       host x.x.x.x
       nat (inside,outside) static y.y.y.y
    When the config is displayed it separates the host and nat commands in two different sections of the config as follows
    object network <object name>
       host x.x.x.x
    object network <object name>
       nat (inside,outside) static y.y.y.y
    Is there a command that will display it all together (like it was typed in)?  Show NAT is something like what I am after but without all of the extra info such as translate_hits, untranslate_hits etc. I need this information but cleaning up the output of a show nat is going to be tough.
    Any suggestions?  
    Thanks.

    Sorry, show nat detail is what I meant in the original post in place of show nat.   Show nat detail still has all of the extra info I was trying to avoid.  Guess I will be editing a text file.
    Thanks for the reply.

  • The Imap command UID copy (to deleted messages) failed for the mailbox "bulk mail" with server error UID copy mailbox in use.  PLease try again later

    The Imap command UID copy (to deleted messages) failed for the mailbox "bulk mail" with server error UID copy mailbox in use.  PLease try again later

    What program are you using?  And what version?

  • You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    Forced me to do a little research.
    DBCC SQLPERF(logspace)
    See also
    http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Using commands for the web template in WAD

    Hi Experts,
            I have designed a web template for a scenario. As it contains lots of data, I have to give some filters such as drop-down etc to avoid the scrolling. In this case, while executing first time, the drop-down select the 'Show All Values' option.
           So , i try to use some commands, so that I can select the default values.
    PROCEDURE USED TO SELECT THE DEFAULT VALUES :
    -> In the drop-down, I used the command called " Set Filter Value for a characteristic[SET_SELECTION_STATE_SIMPLE].
    ->In the selection type, I choose the member name option so that I can able to select the values that are present in the characteristic.
          But while executing the template, the filter is taking the different value(single value only) irrespective to the given value in the command.
            So pls give me the solution for the problem. Also Give me a reply if there is any other possibility to restrict the data.
    With Regards,
    Yokesh Kumar.

    hi all,
    sorry to update you so late, because I can't log on SDN from time to time.
    the weird thing is that my peer can upload the picture successfully while I still can't see it in the list.
    I am handful, I'll do a research and update you guys later.
    thanks.
    Jennifer

  • USER COMMAND CODE for the ICON "Back"

    Hello All,
                 I wanted to know if there is any command code for the user-command icon "back" that i can use while programming.
    e.g. as for the icon "save" there is '&data_save' code which we can use.
    I have used the code "&F03" for 'back" but it does not call the routine i have written for the same.
    So if in case no other code for "Back" icon is available, what is the procedure to implement the "back" command through programming?
    as when i click the icon,the code written inside the report should be executed along with the normal "back" function.
    Thanks

    Hi..
    you do one thing..put /h. then click on back.At the bottom pART of the debugging screen u find
    Field names section..There type sy-ucomm and press enter. The value of sy-ucomm can be seen...
    Thats the value u need...Which u can use the same in case statement
    and its case sensitive.chk the same.. and  write it in quotes( ''). that is 'BACK' or 'F03'
    Edited by: Rudra Prasanna Mohapatra on Jun 21, 2008 7:48 AM

  • The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    If the mouse clicks something on its own then it looks like you have a hardware problem with the trackpad or possibly the battery that is right underneath the trackpad.
    I have read that the battery can swell and that would put pressure on the trackpad.

  • Looking for the oracle equivalent of T-SQL 'SELECT TOP n'

    Hi,
    I'm looking for the Oracle equivalent of T-SQL 'SELECT TOP n'
    and can't find any. There is SAMPLE(n) function but it supposed
    to pick up random values and I'm not sure if it's possible to
    make it select top values. Please help 8-)
    Thanx

    Hi Marina.
    Oracle does not have a functionality like SQL Server for TOP
    selection. The ROWNUM option should be used with great care and
    you may get unreliable results.
    Try looking at Metalink
    Doc ID: 291065.999
    Doc ID: 267329.999
    - They discuss this issue, and solutions.

  • Where do I get a list of the commands for the MSO 4104 USB port (*STB? for example)

    I am trying to use the Tektronix MSO 4104 scope as part of an instrumentation setup.  I have installed the Labview drivers and everything works great except for one thing.  I am using the trigger mode.  The MSO4104.lvib: Wait for Operation Complete.vi only waits for the the scope to finish setting the parameters that I have sent to it.  The Wait for Operation Complete.vi sends the *STB? command and looks for bit 5 of the return message to see if the scope has finished setting up its parameters (the scope returns a decimal 96).  If the scope hasn't triggered and stored the waveform, I don't get usable data back.  What command do I send to see if the scope has been triggered and the waveform is ready for transfer to the Labview application?
    Where do I find a listing for the commands and status messages for the scope?  I can see the use of *CLS, *OPC, *STB? and other commands, but where can I get a listing?  I am going to put in a query on the Tektronix site also.  If I had a listing of commands and status formats, I could get things done.

    I think that your best bet for finding that information is going to be the programming guide for your scope, so asking Tektronix will likely be more helpful than asking NI.  If the scope is programmable, it should have come with a guide listing all of the commands and queries.  Can you look on the Tektronix website for your scope and see if they have the programmer's guide available for download?  I think they often do.
    Good luck!

  • The equivalent code for dbms_output.put_line on DB2

    Its very urgent, plz tell me the equivalent code for dbms_output.put_line on DB2
    thank u,
    Abhilasha.

    And on Sybase ?
    You can perhaps ask this one into the good forum.
    Nicolas.Hallo Nicolas,
    I can imagine the reaction on DB2 forum "dbms_output ? put_line ?
    What is this ?" No way :-))
    Regards
    Dmytro

  • [svn:osmf:] 14412: Added the Syndication. swc to the command line build config file for the AkamaiPluginSample project .

    Revision: 14412
    Revision: 14412
    Author:   [email protected]
    Date:     2010-02-24 17:48:22 -0800 (Wed, 24 Feb 2010)
    Log Message:
    Added the Syndication.swc to the command line build config file for the AkamaiPluginSample project.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/AkamaiPluginSample-build-config.xml

    I think it is not supported through ant script and you may have to contact Oracle Support. Please go through below thread (hisaak's reply) -
    Re: Export OSB configuration jar file using Ant
    Regards,
    Anuj

Maybe you are looking for

  • Connecting Samsung 5500 TV to WI42WR router

    I bought a Samsung UN48H5500AF television. I am trying to connect wirelessly to my MI42WR verison router. The TV sees my wireless network, however when I attempt to join the network I am unable. The setup asks for the router PW, but the error message

  • Paragraph Format - "Top of Right Page" not working

    I have set a Paragraph tag called "Chapter" to "Top of Right Page" so that I can start each chapter at the top of a right page. When I apply the paragraph tag, the text just goes to the top of the next page, left or right. I have checked and checked

  • When trying to create a new album my iphoto crashes...Help!

    I've had this problem ever since I downloaded Lion

  • Select Printer Tray.

    How do I print my report on a specific tray on a specific printer? I need to print a report which is 11x17 printed on one printer in which pre printed stationery is loaded in on Tray #4. Using Oracle reports 6i.

  • OS X 10.10.1 (Yosemite) CP3525dn driver and software

    After the OS update the printing process is very slow, at least 4 minutes between the print command and the output of the sheet (tried USB connection and LAN). In the site are not updated drivers and software. In the Apple Store nothing is found. Som