Send data using exel file to function generator

Hi all,
I have one function generator which I controll with LabVIEW, I attached here the simple code.
I would like that code read some data from exel file .
May you please help me?
Thanks
Attachments:
DG4000General.vi ‏43 KB

I used different example like the one that I attached but I can not connect with m device.
Now I can read my datas from Exel but how can I send to generator?
I really confused.
thanks in advance
Attachments:
Untitled 1.vi ‏34 KB

Similar Messages

  • Sending .arb files to function generator

    Hi
     i am  very  fresh to labview  programming.
     I have  created some  waveforms  using  HP BenchLink software(and saved in .arb file  format).  Can i send  these  wave forms  to  a  function generater  through Labview  program . if  possible   how  can i do that
    Thanks
    jith

    Hi
     Yes  i have  downloaded the driver ag3xxx and  installed .  and   also got  some  advise from [email protected]
      Their  comments  follows .
                    Yes you can read the values from the .arb file into LabVIEW and store
    the values in 1D array or text file and then send it to the function
    generator you are using.
         Basically you would have to use APIs such as read from binary
    file(there are examples present in LABVIEW example finder which shows an
    example of how you could read a binary file.) After reading from the file
    you could store its values in an array or a text file and the read from
    this array and send the data to the function generator you are using. If
    you are using a function generator which is not made by National
    instruments you have to install the device drivers for that instrument fro
    LABVIEW, you could install them from www.ni.com/idnet.
                 i have  used  some  eg:  programmes   given in LV to read binary files .
                 The  function name is  "read binary files vi " .  the  out  put  of "read binary files vi "
                 is  data .  I am trying  to store this  data  in an array  , but   got  stucked  ,  in finding
                 a sutable  function to send  this  array valuse  to  the  function generator. Can  i send
                  the  array out  put  directly to a  FG  ?
     Thanks
     jith

  • To read data from exel file into sap

    hi all,
    How to read data from exel file into the internal table in abap?
    Regards,
    sugeet.

    Hi Sugeet,
    Use the following code.
    DATA : BEGIN OF tbl_asset occurs 0,
             anlkl LIKE anla-anlkl,          " Asset Class
             bukrs LIKE anla-bukrs,          " Company Code
             ranl1 LIKE ra02s-ranl1,         " Asset #
             txt50 LIKE anla-txt50,          " Description 1
             txa50 LIKE anla-txa50,          " Description 2
             sernr LIKE anla-sernr,          " Serial #
             invnr LIKE anla-invnr,          " Inventory #
             menge LIKE anla-menge,          " Quantity
             meins LIKE anla-meins,          " Base UOM
             inken LIKE anla-inken,          " Inventory
    END OF tbl_asset.
    DATA : w_filename TYPE IBIPPARMS-path,
           w_file     TYPE string.
    start-of-selection.
    *popup for file path from user
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       PROGRAM_NAME        = SYST-CPROG
       DYNPRO_NUMBER       = SYST-DYNNR
    IMPORTING
       FILE_NAME           = w_filename          .
    MOVE w_filename TO w_file .
    * upload data
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      =  w_file
        FILETYPE                      = 'ASC'
        HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = tbl_asset
      EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    for HAS_FIELD_SEPARATOR Use
    'X': Fields are separated by tabs.
    SPACE: Fields are not separated by tabs. In this case, the table must contain only one column or all columns must be contained in the file in their entire length.
    Hope it helps...
    Lokesh
    Pls. reward appropriate points

  • How to create the Export Data and Import Data using flat file interface

    Hi,
    Request to let me know based on the requirement below on how to export and import data using flat file interface.....
    Please provide the steps involved for the same.......
    BW/BI - Recovery Process for SNP data. 
    For each SNP InfoProvider,
    create:
    1) Export Data:
    1.a)  Create an export data source, InfoPackage, comm structure, etc. necessary to create an ASCII fixed length flat file on the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider. 
    1.b)  All fields in each InfoProvider should be exported and included in the flat file. 
    1.c)  A process chain should be created for each InfoProvider with a start event. 
    1.d)  If the file exists on the target drive it should be overwritten. 
    1.e)  The exported data file name should include the InfoProvider technical name.
    1.f)  Include APO Planning Version, Date of Planning Run, APO Location, Calendar Year/Month, Material and BW Plant as selection criteria.
    2) Import Data:
    2.a) Create a flat file source system InfoPackage, comm structure, etc. necessary to import ASCII fixed length flat files from the XI
    ctnhsappdata\iface\SCPI063\Out folder for each SNP InfoProvider.
    2.b)  All fields for each InfoProvider should be mapped and imported from the flat file.
    2.c)  A process chain should be created for each InfoProvider with a start event. 
    2.d)  The file should be archived in the
    ctnhsappdata\iface\SCPI063\Archive directory.  Each file name should have the date appended in YYYYMMDD format.  Each file should be deleted from the \Out directory after it is archived. 
    Thanks in advance.
    Tyson

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • How to enter TEXT data using rules files

    Hi,
    How can i enter text data using rules files?
    Thanks,
    A

    If you are talking about planning members with a text data type then it is not possible to load the actual text string using a load rule,essbase just stores a numeric value and the text string relating to that numeric value is stored in the planning applications relational tables.
    If you want to load text directly then you can load data through the planning layer, more information available at - http://download.oracle.com/docs/cd/E17236_01/epm.1112/hp_admin/ch05s02s01.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Importing data- using xml file into HANA Table

    Hi,
    We are using (HDB STUDIO ) - revision 60.......
    Is it possible to import data using XML file into HANA table (Master,Fact tables)?
    (Without using any intermediate adapters for conversion of data.....)
    Can any one suggest us........
    Thank you.

    Hi user450616
    I am a bit confused about what you are trying to achieve.
    Are you:
    1. importing a CSV file into APEX
    2. adding an extra column to the Oracle Table
    3. populating the extra column with the CSV filename?
    Let us know if this is what you are trying to do.
    Cheers,
    Patrick Cimolini

  • Sending data from flat file or oracle table view to a IBM MQ

    Hi,
    We need a help in developing solution.
    We have a scenario, where data(multiple records) in source (table/file) needs to populated into a queue(JMS IBM MQ) as a single message. To achieve this we are trying a two step process.
    1)     We created a temp table to store multiple records from file, this temp table is having one column of *‘clob’* data-type which will store data from file into a single row. We are facing issue while loading data from file to staging area using LKM FILE TO ORACLE (SQLLDR)
    When we are executing interface, while creating C$ table it is going error out . Instead of taking clob (target write data type) it is taking varchar with +5000+ size whereas varchar supports only *4000*.
    create table SNPM.C$_0SINGLERECORD
    C1_C1 VARCHAR2(5000) NULL
    NOLOGGING
    Error message:
    910 : 42000 : java.sql.SQLException: ORA-00910: specified length too long for its datatype
    java.sql.SQLException: ORA-00910: specified length too long for its datatype
    Need help in sending data into destination table.
    2) After populating this data into destination(temp table) as a single record we need to send each row as a single message to JMS MQ. currently we are using LKM FILE to SQL to load into Staging area and IKM SQL TO JMS APPEND to put message in JMS MQ. We are succeeding in putting message of length < 4000 as these KMs are converting the data using varchar2, but we have data of large size+(>4K)+.
    Pointer/ solution will be of great help.
    Please let me know in case you need more description.

    The error message that is showing while using clob as datatype(which we created as user data type in data types section of respective technology)
    java.lang.NumberFormatException: For input string: "4294967295"
         at java.lang.NumberFormatException.forInputString(Unknown Source)
         at java.lang.Integer.parseInt(Unknown Source)
    while using varchar2 in creating C$ table following is the error:
    910 : 42000 : java.sql.SQLException: ORA-00910: specified length too long for its datatype
    java.sql.SQLException: ORA-00910: specified length too long for its datatype
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)

  • How to load data using Control File in BW 7

    Hi All,
    I have a requirement to load data in BW using control file. The development is done in in BW 7.0. In BW 3.5 in infopackage, there is an option of FILE IS ( Control File or Data File ). Please suggest how to simulate the same in BW 7.0
    Regards,
    Vikram

    Any suggestions?

  • How to send data using serial Communication

    I want to make serial communication using RXTXcomm.jar file.I was written the code.From this I got the list of serial ports avilable on pc but then after when I was tring to send command to machine which is attached to port it didn't gave any reply.
    Tell me that how to send command to port?

    This is how I do it:// open port, get ownership
    SerialPort serialPort= (SerialPort)portId.open(APPLICATIONNAME, timeout);
    // no framing and no threshold
    serialPort.disableReceiveFraming();
    serialPort.disableReceiveThreshold();
    // communication speed, parity, stopbits and databits
    serialPort.setSerialPortParams(BAUDRATE, SerialPort.DATABITS_8,
         SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
    // no handshaking or other flow control
    serialPort.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);
    // timer on any read of the serial port
    serialPort.enableReceiveTimeout(TIMEOUT);
    // open streams for reading and writing
    InputStream is= serialPort.getInputStream();
    OutputStream os= serialPort.getOutputStream();... then you use the 'os' stream for writing and the 'is' stream for reading.
    kind regards,
    Jos

  • Deleting master data after loading transactional data using flat file

    Dear All,
    I have loaded transaction data  into an infocube using a flat file . While loading DTP i have checked the  option "load  transactional data with out master data exists" . So transactional data is loaded even if no master data is there in BW.
    While loading the flat file, I made a mistake for DIVISION Characteristic  where original master data value is '04000' , but i loaded the transactional data with value '4000' .Then i later realized after seeing the data from the infocube and deleted the request. then i reloaded data with value '04000'. Till now every thing is fine.
    But when I see the master data for DIVISION , i can see a new entry  with value '4000'.
    My question is how to delete the entry value '4000' from DIVISION. I tried deleting manually this entry from 'maintaining masterdata' , but it is not allowing me to do so .
    I have also checked if any transactional data exists for that value '4000' , as i said earlier I have deleted the transactional data with that values. even tried to delete the entries from the master data table, but i donot see a option to delete entries there.
    Please suggest me on this.
    Regards,
    Veera

    Hi,
    Goto RSA1 right click on the Info object and select Delete Master data. This will delete the master data unused existing in the table.
    If this master data is not used any where else just delete the master data completely with SID option.
    If even this doesnt work you can delete the complete table entire in SE14. But this will wipe out the entire table. Be sure if you wanna do this.
    Hope this helps
    Akhan.

  • Can I script the changing of creation date, using the file name?

    Normally people are doing this in reverse, but let me paint the picture.
    I pulled 204 video files from an old HDD based JVC camera.  JVC records in .MOD format which iPhoto won't import.  I imported them into iMovie just fine, and iMovie even set the file name to clip-2007-11-04 04;42;29.mov which is great, but it now has a new creation date of whatever date I imported it.  Which then causes problem when I want the videos stored in iPhoto and sorted appropriately by creation date.
    I've used the application "A Better Finder Attributes 5" to individually edit the creation and modify, but I'm sure I don't want to do this 203 more times, as you can't just type in the date and time, you have to type in each part of the date/time, or select it on a calendar.
    I've used the application "Name Changer" to batch convert the file names to the format YYYYMMDDhhmm which would be helpful if I were going to use the terminal command touch -t, but again I don't want to have to type it in 203 more times, plus drag and drop the file into finder to populate the location.
    Now, if I were more handy with automator, or maybe some (any) scripting language this would be easy peasy.  I'd batch rename all the files to the YYYYMMDDhhmm.mov and then have a script that just took the file name, passed that to touch -t along with the file location, and a few seconds later, they would all be done!
    Anybody have any suggestions to how I can do this, and tips to what commands to use or ANY advice?  I'm more than happy to RTFM, but I have no idea which manual to read!
    Thanks

    If your file names are precisely as you have written, this script will do what you want.
    Copy the script into an AppleScript Editor document, select one or more files in a Finder window, return to the AS Editor and press Run.  Note: you will need to provide your password when the script runs.
    Make sure you have a backup of any files you are working on (try using duplicates first, perhaps). The script has no error handling.
    tell application "Finder"
              set FileList to selection
              repeat with theFile in FileList
                        set fileName to name of theFile
                        set filePath to quoted form of (POSIX path of (theFile as alias))
                        set crYear to text 6 thru 9 of fileName
                        set crMonth to text 11 thru 12 of fileName
                        set crDay to text 14 thru 15 of fileName
                        set crHour to text 17 thru 18 of fileName
                        set crMins to text 20 thru 21 of fileName
                        set crDate to crYear & crMonth & crDay & crHour & crMins
                        set shellString to "touch -t " & crDate & " " & filePath
      do shell script shellString with administrator privileges
              end repeat
    end tell

  • Problem Loading Data Using UTL File Package

    Hi Friends..
    My Database is Oracle 10gR2 and OS is WINDOWS.
    I have one excel file which contains 10 fields.
    My requirement is to Load data from 1 excel file into two tables..
    tables are master and detail
    Below are sample data and structure for it..
    Excel file format
    TEST.CSV
    Srno Empno Empname City Challanno challandate Materialno materialname Materialqty Materialcost
    1     232 raj      Hyderabad      533     20/04/2010     11     abc      34     10
    1     232 raj      Hyderabad      533     20/04/2010     12      aa      4     110
    1     231 ram Baroda      533     20/04/2010     14      abcd      33     210
    Master table
    empno
    Challanno
    challandate
    Detail table
    empno
    materialno
    materialname
    materialqty
    materialcost
    My question is ..While reading 1st line if its empno is new then record is entered in master table for the first time and remaining records of same empno is entered in detail table.. now when empno no changes then new entry is done in master table and associated records are entered in detail table..
    So in this case for empno 232 master table would have
    232,533,20/4/2010
    Detail table for empno 232 would now have 2 records..
    232,11,abc,34,10
    232,12,aa,4,110
    I am using UTL_FILE package to achieve this as the file is on server...
    Kindly please help me to proceed in this..
    Really appreciate your help...

    sai121 wrote:
    Its ok..if u dont wanna reply sir... but thats what i m told to do..and i have 4yrs of industry experience too...but cant argue with boss..u know that right.It's not that people don't want to reply, it's that what you're asking for is something achieved very simply in a few lines of code using External tables but is a convoluted and complex thing to do using UTL_FILE, so why would anybody want to waste their time giving you a load of code to achieve what you want when they know it's the wrong approach anyway.
    I've been computer programming for 28 years (jeez has it really been that long :D ), so I wouldn't be telling you that you're doing it the wrong way without knowing that there are better ways to do it and you're asking for the wrong way. Speak with your boss, tell him that you've been recommended to use External Tables instead because they're the right way to read such data and UTL_FILE is not the right approach.

  • Recovering essbase data using .pag files

    Hi
    We have a critical issue where the entire Hyperion Home directory is lost.But we could able to recover the essbase directory.
    We have created the same application in a different server and i could able to restore calc scripts,report scripts and rule files
    by restoring the .rul,.csc and .rpt files.
    In the same way can we recover the data lost using .pag and ind files?

    Yes you can recover data also by restoring the .pag and .ind files.
    But to make it happen you need to restore the dbname.ind, dbname.esm, dbname.tct files as well.
    If you are having a copy of full database backup, better to use it for the restore.

  • An extra attachemnt is beign send when I send word and exel files

    When i email word or excel files, my recipient receives an extra file ATT00035 or something like this. i have one friend (with PC) that said his antiv virus picked up a virus, but i have done soem tests of my own and it only seems to send this extra attachment to PC users, and on the PC that i sent it to (with the latest Nortons systems works) it did not recognize anything? also if I CC myself it only inlcuded the orignal files.
    Im usign an intel macbook.
    Any ideas whats going on?

    This is no virus or Office macro virus.
    Are you using the Send Windows Friendly Attachments option with Mail?
    If not, what the Windows users are seeing is the Apple resource fork for the attached file which is invisible to fellow Mac users.
    Using the Send Windows Friendly Attachments option with Mail is designed to strip/remove the Apple resource fork from attached files.
    http://docs.info.apple.com/article.html?path=Mail/2.0/en/ml1014.html
    http://www.onedigitallife.com/2006/02/09/tip-send-windows-friendly-attachments-i n-apples-mail/
    http://www.ncmug.org/tips/mail_attachments.html
    If you are already using Send Windows Friendly for attachments, are you using RTF or Plain Text for message composition and are you using signature?
    Are you placing all attachments below all message text including your signature if one is used?

  • Sending data to a file

    Hi,
    The problem i'm having is that the data that i want to appear on the file doesnt apear fully. I want the full results of the program to be saved to a doc file but i only get the next number in the sequence. Here is my code
    <code>
    # import java.io.*;
    # public class identify2 {
    # int N=1;
    # char[] BitStream=new char[569878];
    # double[] Entropy=new double[30];
    # int MaxLength=0;
    # boolean EOF;
    // read data from a text file
    # void ReadData()
    # System.out.println("after here would be a read data");
    # try
    # String fileName="f:\\malay-binary3.txt";
    # File input=new File(fileName);
    # PushbackReader in=new PushbackReader(new BufferedReader(new FileReader(input)));
    int c = 1;
    # int i = 0;
    # while(c!=-1)
    # {String number="";
    # c = in.read();
    # MaxLength+=1;
    # if(c==-1)
    # break;
    # else
    # in.unread(c);
    # BitStream[i]=(char)(in.read());
    # i++;
    # }//end of try
    # catch(EOFException e)
    # {EOF=true;}
    # catch(FileNotFoundException e)
    # {System.err.println(e);
    # return;
    # catch(IOException e)
    # {System.err.println("Err reading input file"+e);
    # return;
    # } //end of ReadData
    //analyize the data (chunk and calculate the entropy )
    # void processfile()
    # int Find = 0,f = 0,f1 = 0,p,N_entropy,L,Length = 0, index = 0,end_index=0;
    # double Probability, Local_Entropy = 0.0;
    # int Frequency[] = new int[MaxLength];
    # String Patterns[] = new String[MaxLength];
    # String Pattern = "";
    # Length = MaxLength;
    # for( N = 1; N <=3; N++ )
    # System.out.println("When N=" + N);
    // for every fixed length N has N entropy
    # for ( N_entropy=0;N_entropy< N ;N_entropy++ )
    # L = Length - N_entropy;
    # index = N_entropy;
    # end_index = index + (L / N -1) * N ;
    # for ( index = N_entropy; index<=end_index; index+=N )
    # for ( p= index; p < index+N; p++ )
    # Pattern += BitStream[p];
    # for (int m=0; m<f; m++ )
    # if( Patterns[m].equals(Pattern) && (Find==0) )
    # { Find = 1;
    # f1 = m;
    # if (Find == 1)
    # { Frequency[f1] += 1;
    # Pattern = "";
    # Find = 0;
    # else
    # Patterns[f] = Pattern;
    # Frequency[f] += 1;
    # f +=1;
    # Pattern = "";}
    } //end of for index
    # f=0;
    # int Patterns_N = L/N; //how many patterns of N length contains in the BitStream
    # do
    { Probability = (double)(Frequency[f])/(double)(Patterns_N); //Probability of Patterns
    # Local_Entropy += Probability * ( Math.log(Probability)/Math.log(2));
    # f+=1;
    # while (Frequency[f]!=0);
    # Entropy[N_entropy] = (-Local_Entropy);
    # System.out.println("Entropy(" + N_entropy + ")=" + Entropy[N_entropy]);
    // initialize the variables
    # f=0;
    # for (int i=0;i<MaxLength;i++)
    # {Frequency[i] =0;
    # Patterns[i] = "";}
    # Pattern="";
    # f=0;f1=0;
    # Find=0;
    # Local_Entropy=0;
    # p=0;
    # System.out.println();
    # }//end of for "N"
    //output the result to a text file
    # void writeData()
    # try
    # String fileName="f:\\test86.doc";
    # File output=new File(fileName);
    # output.createNewFile();
    # if(!output.isFile())
    # {System.out.println("Creating"+output.getPath()+"failed.");
    # return;
    # BufferedWriter out=new BufferedWriter(new FileWriter(output.getPath(),true));
    # out.write("Then entropy of length " + N + ":" + "\n");
    # for( int i = 0; i < N; i++ )
    # //System.out.println("En="+Entropy[i]);
    # out.write(Double.toString( Entropy[i] ) + "\n");
    # out.write( "\n" );
    # out.close();
    # }//end of try
    # catch(IOException e)
    # {System.out.println("Error writing the file"+e);}
    }// end of writeData
    //main class
    # public static void main(String[] args)
    # identify2 test=new identify2();
    # test.ReadData();
    # test.processfile();
    # test.writeData();
    <code>
    it should give me the following when it is saved to the doc file
    after here would be a read data
    When N=1
    Entropy(0)=1.0000741842259357
    When N=2
    Entropy(0)=1.9998076934003925
    Entropy(1)=1.99996372281124
    When N=3
    Entropy(0)=2.994268823400294
    Entropy(1)=2.993906140011204
    Entropy(2)=2.9948443499810233
    but it gives me
    Then entropy of length 4:
    2.994268823400294
    2.993906140011204
    2.9948443499810233
    0.0
    Any help would be greatly apperciated. Thank you for your help in advance

    You would want to use the LoadVars class, look that up in the
    Flash Help and do a liitle reading to become fimilar with it,
    you'll still need to write your PHP file as well.

Maybe you are looking for