IVI_Scope Read more than 32767 points

Hi TestStand Developers,
I need to perform a read measurement with TestStand / IVI_Scope Read and a PXI-5922 /32 Mbytes but when I ask for more than 32767 "min num points" I encounter the following error :
Error, Error executing substep 'Post'. An exception occurred calling 'RunStep' in 'ISubstep' of 'TestStand Ivi Step Types' An error occurred while executing the step. VB Error: The IVI Read operation failed on channel 'CH0' for logical name 'ScopeDiff'. Details: An error occurred while attempting to save measurement data to property 'Step.Result.Reading'. Source: TSIviStepTypes [Error Code: -2146828282, User-defined error code.
I don't have such a problem when I'm using LabVIEW.
Is it possible to push the IVI/TestStand limit of 32767 point or is there any solution to by-pass it.
I have tryed to use several niscope_32.dll functions like "niScope_Read" or "niScope_ReadWaveform" but it seems not very easy to get the data array back.
Could you please help me to avoid using only LabVIEW libraries ?
Thanks in advance,
      Emmanuel

Emmanuel -
This appears to be a bug in the IVI step types code. There is code that attempts to normalize the array dimensions for the array in the TestStand result and it uses a VB CInt() macro instead of CLng() macro when determining the upper array bound from the string returned from GetDimensions API call.  What version of TestStand are you using?
Scott Richardson
National Instruments

Similar Messages

  • Show more than 10 points in iOS Maps Api?

    Does someone know how i can show more than 10 points in the iOS Maps Api?
    I am searching for some shop´s in the user´s location. 10 points are not enough.
    Has somebody an idea?

    Does this have anything to do with Adobe Air?

  • Simultaneously read more than one input and generate output

    Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM

    Hi,
    You should look at the synchronized examples for analog input and output that can be found in the example finder under:
    Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
    These will get you started to being able to handle multiple tasks at the same time.
    I hope this helps. Have a Great Day!
    George

  • When I read a pdf document using Safari I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    When I read a pdf document using Safari on my IPad  I'm unable to read more than one page of a file. A padlock icon is locked on the tab. Please help.

    Hi snoreaustralia,
    It sounds like you just need to associate the PDF filename extension with Acrobat, rather than Preview. Please see this document from the Microsoft Help for instructions on choosing the default program for opening a particular file type (in your case, PDF): Change which programs Windows uses by default - Windows Help
    Best,
    Sara

  • Writing all the rows in one line but cannot write more than 32767 character

    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /

    user577300 wrote:
    Dear All,
    i am trying to write the column of a table to a file with the '||' seperators. i want to write all the rows in one line of the file.
    for E.g
    Column1 Column2
    A B
    C D
    in the file the output needs to be gone like
    A||B||C||D
    but after 32767 character it gives a write error. could please someone let me know what is wrong with my function below or how can i write more than 32767 character in one one.
    CREATE OR REPLACE FUNCTION CORP_IB_DUMP_FILE (
    P_QUERY IN VARCHAR2,
    P_SEPARATOR IN VARCHAR2 DEFAULT '',
    P_DIR IN VARCHAR2,
    P_FILENAME IN VARCHAR2
    RETURN NUMBER AUTHID CURRENT_USER
    IS
    L_OUTPUT UTL_FILE.FILE_TYPE;
    L_THECURSOR INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_THECURSOR2 INTEGER DEFAULT DBMS_SQL.OPEN_CURSOR;
    L_COLUMNVALUE VARCHAR2 (4000);
    L_STATUS INTEGER;
    L_COLCNT NUMBER DEFAULT 0;
    L_SEPARATOR VARCHAR2 (10) DEFAULT '';
    L_CNT NUMBER DEFAULT 0;
    BEGIN
    L_OUTPUT := UTL_FILE.FOPEN (P_DIR, P_FILENAME, 'w', 32767);
    DBMS_SQL.PARSE (L_THECURSOR, P_QUERY, DBMS_SQL.NATIVE);
    FOR I IN 1 .. 255
    LOOP
    BEGIN
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, I, L_COLUMNVALUE, 4000);
    L_COLCNT := I;
    EXCEPTION
    WHEN OTHERS
    THEN
    IF (SQLCODE = -1007)
    THEN
    EXIT;
    ELSE
    RAISE;
    END IF;
    END;
    END LOOP;
    DBMS_SQL.DEFINE_COLUMN (L_THECURSOR, 1, L_COLUMNVALUE, 4000);
    L_STATUS := DBMS_SQL.EXECUTE (L_THECURSOR);
    LOOP
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (L_THECURSOR) <= 0);
    L_SEPARATOR := '';
    FOR I IN 1 .. L_COLCNT
    LOOP
    DBMS_SQL.COLUMN_VALUE (L_THECURSOR, I, L_COLUMNVALUE);
    UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
    L_SEPARATOR := P_SEPARATOR;
    UTL_FILE.FFLUSH (L_OUTPUT);
    END LOOP;
    UTL_FILE.FFLUSH (L_OUTPUT);
    L_CNT := L_CNT + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR (L_THECURSOR);
    UTL_FILE.FCLOSE (L_OUTPUT);
    RETURN L_CNT;
    END CORP_IB_DUMP_FILE;
    /Check your logic very carefully. You are using UTL_FILE.PUT() which should not automatically put end-of-line characters i n your file but you are reassigning l_seperator with p_seprator after the first time.
    What value are you pasising in as p_seperator?
    UTL_FILE.PUT() should allow you to write a string of bytes without newlines as long as its arguments are less than 32K, and you can control when the newlines get written. If your arguments are > 32K can you split them up without writing the newlines until you need to do so? Try something like (untested)
    --         UTL_FILE.PUT (L_OUTPUT, L_SEPARATOR || L_COLUMNVALUE);
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE,1,32767));
               UTL_FILE.PUT (L_OUTPUT, substr(L_SEPARATOR || L_COLUMNVALUE),32767*2-1,32767));Edited by: riedelme on Sep 10, 2012 6:11 AM

  • Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Hi, I need help with my iphone four bought in England but I live in Italy, I upgraded IOS six and now I can not read more than the Italian card, how can I contact a service center via email?

    Only the carrier it is locked to can authorize unlocking it. Sounds like the phone was hacked to unlock it originally. Find out what carrier it is locked to, and look up their contact information using google or the search engine of your choice.

  • DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record

    Hi,
    Please read this message in the [ABAP Performance and Tuning|DOI - I_OI_SPREADSHEET, poor performance when reading more than 9999 record; section and see if you have any advise.
    Best Regards,
    Marjo

    Hi,
    I met this issue when I tried to write vaule to massive fields of excel range.
    And I solve this issue by using CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_EXPORT.
    So, I think you may fix it in the same way.
    1. Select range in by the I_OI_SPREADSHEET
    2. Call method I_OI_DOCUMENT_PROXY->COPY_SELECTION
    3. Call method CL_GUI_FRONTEND_SERVICES=>CLIPBOARD_IMPORT
    Cheers,

  • Error reading more than 200 samples

    I get an error trying to read more than 200 samples using the DAQ Assist express VI in case 2 of the attached VI,
    The error reads:
    DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1<append>
    <B>Property: </B>RelativeTo
    <B>Corresponding Value: </B>Current Read Position
    <B>Property: </B>Offset
    <B>Corresponding Value: </B>
    <B>Task Name: </B>_unnamedTask<4>
    Kinda new so not really sure were to start.
    Thanks for the help.
    Attachments:
    set and read.vi ‏243 KB

    Ok, there is some math here.  You are sampling at 20Hz.  200 Samples at 20Hz gives us 10 seconds.  If you go to the Advanced Timing tab of the DAQ Assistant, you will see a timeout setting.  It is currently 10 seconds.  So if you try to sample more than 200 samples (10 seconds worth), you will timeout.  If you want 400 samples, you need the timeout to be at least 20 seconds or sample faster.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Difficulty getting Sound input configure and sound input to read more than 2 channels

    I need multichannel audio input for my project. I can't seem to read more than 2 channels of my audio interface.
    The interface Im using is an Alesis Multimix8 USB 2 mixer and and audio interface. This supports 10 channels in and 2 out. With other software I can read all input channels simultaneously without any difficulty. When I specify the sound input configure and sound input read, to read more than 2 channels any extra channel is a blank signal. Im using Labview 8.5 here.
    Solved!
    Go to Solution.

    Take a look here
    http://forums.ni.com/t5/LabVIEW/Play-waveform-express-vi-list-devices-on-front-panel/td-p/1559336
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How to read more than 132 char using Read_Text Fn. Module

    Hi,
    I am using Fn. Module <b>Read_Text</b> in my program, but the fn. module is only retrieving 132char data and remaining data is getting truncated. In my case Text size is more than 132char...pls, let me Know, how can i get entire text or i have to use any other Fn. Module

    Hi,
    In READ_TEXT function module, TLINE structure has the component TDLINE with 132 characters. So, u can't read more than 132 characters. If u want to read more than that, u have to write FM of ur own which can read more than 132 characters.

  • Can not print more than 32767 pages

    Post Author: JVega
    CA Forum: .NET
    We have develop an application using vb.net 2005 using Crystal Reports for .Net that is used to print returns with very large amount of pages. For some reason when the program generates a report with more that 32767 pages it displays ok in the ReportViewer but whe you try to print all the pages it just sends an error. I try using the PrintToPrinter method of the ReportDocument and it does the same thing, once I specify in the parameters to print a page greater than 32767 it just does not do it.
    I don't know if it has to do with the fact that a small integer or Short data type (int16) has a max value of 32767, but the specifications of the paramaters of the function PrintToPrinter are set as Integer not as Short...Help please!!!

    what do you mean by "stops to cool"?
    Are you referring to energy saving mode?
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • How to export more than 100 points from waveform to excel

    Hi everyone. Novice here. 
    I'm pretty sure other people had my problem, but I don't know how to word it... and can't find a solution for it... Maybe I just don't understand Labview enough to know what's going on.
    Here's what I'm doing: I have a waveform, and I'm trying to save the data to the spreadsheet.
    Problem: The cap is at 100 data plots (only what's shown on the graph). In other words, I only get data for what the graph holds at the present moment.
    Want: I want more than that - EVERYTHING. If it begins from 0s to 50s, I want all the points (10ms increments, which is done already) on the excel file.
    Can you guys help me? How do I get suck that history out of the graph?
    I attached my labview file (a really simple one), so you guys know where I am.
    Thanks guys!
    Solved!
    Go to Solution.
    Attachments:
    Save to spreadsheet.vi ‏17 KB

    If you are not in a hurry, another option is to save the data as a delimited text file. This will allow you to open it in almost any analysis program, since a delimited text file is the universal file type. A delimited text file is one in which data is stored in columns, separated by delimiters, and rows, separated by lines of text. The delimiter is usually a tab character (file extension .txt), but a comma is common in some industries (file extension .csv). Note that using a comma separator can get you into trouble if using European numbering styles, which use the comma instead of the period as the decimal indicator.
    LabVIEW has several VIs that make this easy for you.
    If you have a single set of homogeneous data and are only writing once (NOT in a loop), then use Write to Spreadsheet File.vi. This VI formats your data into rows and columns, opens the file, writes the data, then closes the file. Since it opens and closes the file, it is not suitable for use in a loop.
    If you are writing homogeneous data in a loop, use the Array to Spreadsheet String function at each iteration to format your array of data to rows and columns, then write using either of the file write primitives.
    If you have inhomogeneous data, such as a timestamp and a few doubles, format the data on a line by line basis and write to disk. The attached example, SImpleLowLevelWriteSpreadsheetFile.vi shows how to do this.
    If you need more speed, you can buffer your data so the blocks of data you send to disk are more optimized. This is a bit more complex, but the attached example, BufferedLowLevelWriteSpreadsheetFile.vi shows how to do it. This will usually give you at least 2X and could be 10X or more speed improvement.
    Have fun!
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    SimpleLowLevelWriteSpreadsheetFile.vi ‏22 KB
    BufferedLowLevelWriteSpreadsheetFile.vi ‏34 KB

  • Can I expand notifications to read more than 3 lines of text?

    Is there any way to expand the notification center's text to read out more than 3 lines of message text?

    Could you post a screenshot showing what you've got in design mode? That should help us isolate the problem...

  • Modbus, having trouble reading more than one register.

    I think my issue may be something simple. I am able to read exactly one modbus register correctly. If I try to increase the registers to any more than one I get a timeout 6101 error at the Modbus read module. So far I've tried a number of different layouts, and even two different Modbus slaves from different vendors with the same results. I'm using a USB-RS485 converter with the FTDI232 chip. Again, a single register read always returns the correct data - so I'm almost there. The register divide routine on the right had side is rudimentary for now until I can get data from multiple registers. Any help is appreciated.
    Attachments:
    Modbus test.vi ‏37 KB

    I have solved the issue. On my RS485 converter (I'm using one from bb-electronics), I had "Echo on" enabled. This caused the written command to re-appear on the read buffer. The modbus read function will accept this configuration - but only when reading one register! So, for anyone with this issue in the future - check your echo setting.
    Someone more familiar with the modbus protocol's working and the internals of the read function could probably explain why this situation would manifest.
    I understand the timed loop is bad practice - I should loop while no error, but I was trying to fix my core issue before making any improvements.
    Thanks for your help.

  • To read more than one line...

    I 've this code but it can read from keyboard only one line
    (when I type enter after the first line an EOF is raised )>
    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
          String sql = "";
          System.out.println("Enter your JDBC/SQL query: ");
          try {
             sql = buf.readLine(); Someone can help me so that I can enter more than a line ?
    Thanks a lot.

    Do you want the user to entry two queries, one per line, or do you want to allow a single query to
    be entered on two lines?
    What happens when the query is only one line long?
    What happens when the user wants to use more than two lines to enter the text?
    Suggestion: use a loop and use something simple like a blank line to signal
    end of input. It's not hard:
    import java.io.*;
    public class MultilineInputExample {
        public static void main(String[] args) throws IOException {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            for(int i=0; i < 2; ++i) {
                System.out.println("Enter multiline input. End with a blank line");
                String input = readMultilineInput(in);
                System.out.println("input = [" + input + "]");
        //uses a blank (white space) line to signal the end
        public static String readMultilineInput(BufferedReader in) throws IOException {
            StringBuilder b = new StringBuilder();
            String line;
            boolean notDone = true;
            while (notDone && (line = in.readLine()) != null) {
                if ((notDone = !line.trim().isEmpty()))
                    b.append(line).append(' ');
            return b.toString();
    }

Maybe you are looking for

  • Accounting entries

    Hi All I have a problem while doing excise invoicing. At the time of GR incoming excise invoice is captured amd posted. The BED and SED accounts are deitted and CENVAT clearance account is credited.. During MIRO when i refer same PO and do , the acco

  • The publisher in the uploaded package does not match the expected publisher x2

    I spent an hour with a very helpful MS tech support guy today to try and resolve this issue to no avail.  He ensured it wasn't on their end within the Dev Center which means it would lie in the App Studio Beta team's end. So I have double and tripled

  • Why using workarea for internal table is better in performance

    Please tell me why using workarea for internal table is better in performance

  • MSS team overview.

    Hello Gurus, When a manager log in to the portal in MSS under team overview he/she will able to view all the employees in his and all the subordinate unit employees. If I want to limit this to only his own organization unit and not any other subordin

  • Word files imported to Lion

    I have just upgraded my MacBookPro from 10.6.8 to 10.7.4 (Lion). When I try to open Word documents I get the message: You cannot open the application Microsoft Word because PowerPC applications are no longer Supported. So what to do? And when I try t