Wire to cb, graph and write to file

I have a tensile tester, I want to produce a vi that can directly display a chart of force and extension. I have 3 wires , force 0-10volts , extension 0-10v and ground. I do not know which point to wire it on a green board CB 68 LP ? I then want to get a chart and write both to an excel file. I'm new to labview but it would be a great help. Can you help me? James

Hi James,
What is you CB-68LP connected to? Does it lead to a PCI card in your computer? If so, what is the model number of that card?
You can find out how to wire you CB-68LP by opening Measurement and Automation Explorer (MAX) on your computer. Look for your PCI card on the left hand side under My System>>Devices and Interfaces. If you right click on your device then go to "device pinout" this will show you the numbers associated with the various pins. Its then just a case of matching that Pinout with what you can see on your CB-68LP.
Regarding writing your information to an Excel file, have a look at the "write to measurement file" express function. You can find this by going to the Functions Pallet>>Express>>Output.

Similar Messages

  • Strain measurment and write to file with NI9237

    Hopefully this lab view VI can help some of the novices like myself to acquire strain using the NI9237 and write to a file.  The example VI available from NI "Cont Acq Strain Samples (with calibration)" is fine for sampling data and viewing on a chart, but you need to add your own elements if you want to logg data or write to a file.
    Since aquistion is continuous, reading and writing data must be done at discrete intervals rather than continuously, or, you will end up with a very large file that can not be easily handles in excel. Also, data gets acquired in "packets" of several samples for each channel, so even if you put a write function within a case structre, as I have done ,and you don't convert the data you get that whole "packet" every time the comand writes to file. Again, you will end up with a lot more data points than you would like.
    Though the top level VI is pretty simple, it took me some time and help from many folks for me to figure out what was going on.  I thought I would share.
    Thanks to Sandra T, Jarrod B, Kyle B, Marc A, Herbert E and Jesse O. for your help
    Next goal is to acquire voltage from a different Daq card, convert to load and graph and write load vs. displacement.
    hopefully the attached files are the correct method so the VI fuctions with its sub-VI's.  If not let me know.
    Regards,
    Alfonso
    A. Lopez
    Attachments:
    Cont Acq Strain-Qbridge-I-write to file-NI9237.vi ‏199 KB
    Measure Strain.llb ‏238 KB

    Alfonso,
    I'm glad you got your application running.  It is also nice that you are wanting to share your code.  NI is currently testing a new system that allows community members to share code.  If you like, you can also submit your code here.
    Regards,
    Jesse O.
    Applications Engineering
    National Instruments
    Jesse O. | National Instruments R&D

  • File Read and Write using File Adapter in Bpel

    In Bpel Process i am using File Adapter ( Schema is Opaque) for read and write the file contents. i am able do successful deployment and read, write function in first time deployment, after that again i tired to run the application, its not going to write the content of file, its only writing the file with out data's or content in that file.
    Please help me...
    Saravanan

    Hi Eric
    In my domain.log file having the following details. In this file im unable to find out what the exact problem. Please look at this and help me.
    <2008-01-22 18:25:42,024> <INFO> <default.collaxa.cube.compiler> validating "C:\product\10.1.3.1\OracleAS_1\bpel\domains\default\tmp\.bpel_BPELProcess2_1.1_298e83988d77b6640c33dfeec11ed31b.tmp\BPELProcess2.bpel" ...
    <2008-01-22 18:25:49,850> <INFO> <default.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    Process "BPELProcess2" (revision "1.1") successfully compiled.
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Loading JCAActivationAgent for {portType=Read_ptt}
    <2008-01-22 18:25:49,914> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Locating Adapter Framework instance: OraBPEL
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::load - Done loading JCAActivationAgent for processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:25:49,930> <INFO> <default.collaxa.cube.engine.deployment> Process "BPELProcess2" (revision "1.1") successfully loaded.
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::uninit Shutting down the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.0/', activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Endpoint De-activation called in adapter for endpoint : D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/BPELProcess2~1.1/
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/BPELProcess2~1.1/'
    domain='default'
    WSDL location='rd.wsdl'
    portType='Read_ptt'
    operation='Read'
    activation properties={portType=Read_ptt}
    <2008-01-22 18:26:02,698> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: D:\MAXIMUS_Project_Softwares\jdevstudiobase10132\jdev\mywork\MyLabs\BPELProcess2\in
    <2008-01-22 18:26:02,730> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2008-01-22 18:26:02,890> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Managed Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Connection Created
    <2008-01-22 18:26:04,171> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction Created

  • How do I migrate files created in a Windows OS to a new external drive that is formatted as a MAC drive. I want to read and write these files back to the new drive.

    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.

    LKrzesowski wrote:
    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.
    If all you're trying to do is move the files from the Windows external to the Mac external, you can simply connect them both to the Mac and drag the files from the Windows drive to the Mac drive. If you want to move the files back and forth between them, you'll need to establish the format of the Windows external. Macs can read and write to FAT32 and exFAT (which can handle files larger than 4GB) formatted drives but can only read NTFS formatted drives without additional software. With the Windows drive connected, you can check its format with Disk Utility.

  • I'm trying to share folder between users on a single mac.  I put the folder in "shared," set permissions so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    I'm trying to share a folder between users on a single mac.  I want both users to be able to read and write so the folder stays current on both accounts.  I put the folder in "shared," set permissions on folder so other user can read and write, enabled file sharing, but can't find the folder on the second user's account.  Any help?

    Did you log out of one account and into the other or just used Fast user switching?
    Is the permissions set to anyone?
    When you move data to teh Shared folder is it copied or just moved?
    If copied then it's not a folder both can access, just a way station like a USB thumb drive that things are coped too and off of likely.
    You can run this #5 on each user account to reset the user permissions once they are taken back out of the Shared folder
    Step by Step to fix your Mac

  • Read PDF Formatted Spool and write PDF File to Application Server

    Hi Experts,
    After ECC 6.0, HR-W2 and W2C Form Spools are getting generated in PDF format.
    We have a requirement wherein we want to read the PDF Spool Programatically and write the PDF file to Application server (Using OPEN DATASET and CLOSE DATASET)
    PARAMETERS : p_spono LIKE tsp01-rqident.
    DATA: pdf_data type FPCONTENT.
    types: lt_pdf_table(1000) type x.
    data:  l_pdf_data type standard table of lt_pdf_table,
           l_pdf_line type lt_pdf_table,
           l_offset type i,
           l_len type i,
           p_file(100) VALUE '\sapout\DVH\pdf2.pdf'.
    *Read the spool content
    CALL FUNCTION 'FPCOMP_CREATE_PDF_FROM_SPOOL'
        EXPORTING
             i_spoolid = p_spono
             i_partnum = '1'
        IMPORTING
               e_pdf = pdf_data
    *         e_pdf_file = file
        EXCEPTIONS
             ads_error = 1
             usage_error = 2
             system_error = 3
             internal_error = 4
        OTHERS = 5.
    * Modify the spool  contents to prepare internal table
      l_len = xstrlen( pdf_data ).
      while l_len >= 1000.
        l_pdf_line = pdf_data+l_offset(1000).
        append l_pdf_line to l_pdf_data.
        add 1000 to l_offset.
        subtract 1000 from l_len.
      endwhile.
      if l_len > 0.
        l_pdf_line = pdf_data+l_offset(l_len).
        append l_pdf_line to l_pdf_data.
      endif.
    * GUI DOWNLOAD Works Fine
    * Now pdf contents is ready , lets store in local PC
    *CALL FUNCTION 'GUI_DOWNLOAD'
    *  EXPORTING
    *   filename                        = 'C:\Documents and Settings\Desktop\shital.pdf'
    *   filetype                        = 'BIN'
    *  TABLES
    *    data_tab                        = l_pdf_data.
    OPEN DATASET p_file FOR OUTPUT IN BINARY MODE.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error opening file:'(Z03) p_file.
    ENDIF.
    LOOP AT l_pdf_data INTO l_pdf_line.
      TRANSFER l_pdf_line TO p_file.
    ENDLOOP.
    CLOSE DATASET p_file.
    IF sy-subrc <> 0.
      MESSAGE ID '00' TYPE 'E' NUMBER '398' WITH 'sy-subrc:' sy-subrc
              ' Error closing file:'(Z04) p_file.
    ENDIF.
    Currently as you can see I have commented out GUI_DOWNLOAD Function Module, But it works perfect when I try to Download file to Local Desktop.
    But when I try to pass the same Contents to Application server file and then try to open it by downloading file then it opens BLANK pdf file.
    As per requirements I should be able to write the file correctly on Application server and If I dowload it from there it should open PDF file correctly.
    Let me know if you require further details about the issue.
    Regards
    Shital
    Edited by: shital phadake on Apr 8, 2009 9:39 PM

    Thanks Selçuk for your reply and taking time for understanding the Issue,
    I went thru Functionality of the program you suggested but dont think it matches my requirement.
    Regards
    Shital

  • How to select the data from DB and write into File?

    Hi Experts,
    Can any one please help me,
    I want to write the data from a table "T1" from Data Base to one file in windows.
    This functionality i need to achive in SSIS package through script component and Execute SQL task if it's passible.
    If any other way is there please help me.

    through script component and Execute SQL task if it's passible
    The easier way is to use a "Data Flow" Task with a "OleDB Data Source" pointing the the SQL Server table / query and a "Flat File Destination" to export to a file.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to read a text file and write text file

    Hello,
    I have a text file A look like this:
    0 0
    0 A B C
    1 B C D
    2 D G G
    10
    1 A R T
    2 T Y U
    3 G H J
    4 T H K
    20
    1 G H J
    2 G H J
    I want to always get rid of last letter and select only the first and last line and save it to another text file B. The output should like this
    0 A B
    2 D G
    1 A R
    4 T H
    1 G H
    2 G H
    I know how to read and write a text file, but how can I select the text when I am reading a text file. Can anyone give me an example?
    Thank you

    If the text file A look like that
    0 0
    0 3479563,41166 6756595,64723 78,31 1,#QNAN
    1 3479515,89803 6756588,20824 77,81 1,#QNAN
    2 3479502,91618 6756582,6984 77,94 1,#QNAN
    3 3479516,16334 6756507,11687 84,94 1,#QNAN
    4 3479519,14188 6756498,54413 85,67 1,#QNAN
    5 3479525,61721 6756493,89255 86,02 1,#QNAN
    6 3479649,5546 6756453,21824 89,57 1,#QNAN
    1 0
    0 3478762,36013 6755006,54907 54,8 1,#QNAN
    1 3478756,19538 6755078,16787 53,63 1,#QNAN
    2 0
    3 0
    N 0
    I want to read the line that before and after 1 0, 2 0, ...N 0 line to arraylist. I have programed the following code
    public ArrayList<String>save2;
    public BufferedWriter bufwriter;
    File writefile;
    String filepath, filecontent, read;
    String readStr = "" ;
    String[]temp = null;
    public String readfile(String path) {
    int i = 0;
    ArrayList<String> save = new ArrayList <String>();
    try {
    filepath = "D:\\thesis\\Material\\data\\CriticalNetwork\\test3.txt";
    File file = new File(filepath);
    FileReader fileread = new FileReader(file);
    BufferedReader bufread = new BufferedReader(fileread);
    this.read = null;
    // read text file and save each line content to arraylist
    while ((read = bufread.readLine()) != null ) {
    save.add(read);
    // split each arraylist[i] element by space and save it to String[]
    for(i=0; i< save.size();i++){
    this.temp = save.get(i).split(" ") ;
    // if String[] contain N 0 such as 0 0, 1 0, 2 0 then save its previous and next line from save arraylist to save2 arraylist
    if (temp.equals(i+"0")){
    this.save2.add(save.get(i));
    System.out.println(save2.get(i));
    } catch (Exception d) {
    System.out.println(d.getMessage());
    return readStr;
    My code has something wrong. It always printout null. Can anyone help me?
    Best Regards,
    Zhang

  • Create OutputFile in jsp and write this file to response

    Hello
    Please can you help me
    I need to dynamically create a file in jsp and send this file to user
    Please help

    Don't forget to set the contentLength. Some clients/applications will refuse to run/open the file otherwise.
    At the bottom of this article you can find several reuseable downloadFile() utility methods: http://balusc.xs4all.nl/srv/dev-jep-pdf.html
    I'll copypaste them here:
    package net.balusc.util;
    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.net.URLConnection;
    import javax.servlet.http.HttpServletResponse;
    public class HttpServletUtil {
         * Send the given file as a byte array to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param bytes The file contents in a byte array.
         * @param fileName The file name.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, byte[] bytes, String fileName, boolean attachment) throws IOException {
            // Wrap the byte array in a ByteArrayInputStream and pass it through another method.
            downloadFile(response, new ByteArrayInputStream(bytes), fileName, attachment);
         * Send the given file as a File object to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param file The file as a File object.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, File file, boolean attachment) throws IOException {
            // Prepare stream.
            BufferedInputStream input = null;
            try {
                // Wrap the file in a BufferedInputStream and pass it through another method.
                input = new BufferedInputStream(new FileInputStream(file));
                downloadFile(response, input, file.getName(), attachment);
            } catch (IOException e) {
                throw e;
            } finally {
                // Gently close stream.
                if (input != null) {
                    try {
                        input.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
         * Send the given file as an InputStream to the servlet response. If attachment
         * is set to true, then show a "Save as" dialogue, else show the file inline
         * in the browser or let the operating system open it in the right application.
         * @param response The HttpServletResponse to be used.
         * @param input The file contents in an InputStream.
         * @param fileName The file name.
         * @param attachment Download as attachment?
        public static void downloadFile(HttpServletResponse response, InputStream input, String fileName, boolean attachment) throws IOException {
            // Prepare stream.
            BufferedOutputStream output = null;
            try {
                // Prepare.
                int contentLength = input.available();
                String contentType = URLConnection.guessContentTypeFromName(fileName);
                String disposition = attachment ? "attachment" : "inline";
                // Init servlet response.
                response.setContentLength(contentLength);
                response.setContentType(contentType);
                response.setHeader("Content-disposition", disposition + "; filename=\"" + fileName + "\"");
                output = new BufferedOutputStream(response.getOutputStream());
                // Write file contents to response.
                while (contentLength-- > 0) {
                    output.write(input.read());
                // Finalize task.
                output.flush();
            } catch (IOException e) {
                throw e;
            } finally {
                // Gently close stream.
                if (output != null) {
                    try {
                        output.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                        // This is a serious error. Do more than just printing a trace.
    }

  • How to read and write to file on server

    can any body tell how to read or write to a file on server, like where do i keep the file and what does the path look like......on server
    stand alone i am reading and writing into file but when it comes to server i am confused how it works...i mean the path
    thank you

    The Path needs to be absolute:
    For example in Unix it would look like:
    /usr/paz/Test.txtIn Windows it would look like:
    C:/Paz/Test.txtHope this helps.
    Thanks and regards,
    Pazhanikanthan. P

  • Find and Write a FILE on PC

    Hi experts I need a FM in SAP to find and write a Flie on a PC. This FM is executed in SAP and is called by WebDynpro; for that the FM'S an classes that use SAP GUI aren´t good for me.
      Thanks a lot!!

    Reena,
    By record do you mean the columns of the internal table ??
    If that is the case you can do the below.
        OPEN DATASET l_file FOR OUTPUT IN LEGACY TEXT MODE.
        Loop at it_output into is_output.
          Clear lstr.
          DO.
            ASSIGN COMPONENT SY-INDEX OF STRUCTURE is_output TO <F>.
            IF SY-SUBRC <> 0. EXIT.
            ELSE.
              if sy-index = 1.
                concatenate <F> '*' into lstr.
              else.
                 concatenate lstr <F> into lstr.
              endif.
            ENDIF.
           ENDDO.
           translate lstr using '* '.
           TRANSFER lstr TO l_file LENGTH 1024.
           Append lstr to itab-line.
        endloop.
    *--> Close the opened file on server
        CLOSE DATASET l_file.
    Later download the file using GUI_DOWNLOAD and table itab.

  • How to read and write(a file .txt) from a URLConnection

    I try to read and write on one URLConnection. Is it possible ? How can i make it ?
    The reading part of my application work's but not the writting part
    That's a part of rhe code that i use to write :
    String Line = "Hi";
    MyUrl = new URL(this.getCodeBase(), FichierEvenement) ;
    Con = MyUrl.openConnection() ;
    Con.setDoOutput(true);
    Con.setDoInput(true);
    Con.setUseCaches(false);
    Dos = new DataOutputStream(new BufferedOutputStream(Con.getOutputStream( )));
    Dos.writeUTF(Line);
    Please help me :)

    What are you doing with the bytes written to the OutputStream? This info would help, but i do have a suggestion. I ran into this problem when trying to write strings using writeUTF. The output was all screwed up. So, maybe change your string to a character array. That way Unicode is displayed properly. This in conjunction with writing to an .html file instead of to the connection itself might work.

  • Using an array to read from and write to files

    my problem is, I do not know how to do this program, it's like an inventory warehouse program that uses an array to store the items, then I have to use a keyboard input to run through the program the first time, using a write method to save the file, and a read method to go through the program a second time and resave it to a different file with the write method, I've asked countless times for help, but the instructor just won't help, so I was hoping I could get some help here, and if I don't get this done, I'm going to end up failing the class.
    also, the requirements are listed here as well, so it can be better understood.
    Write a program that:
    1. allows the user to choose whether the inventory data comes from a file or from the keyboard
    2. allows for up to 20 inventory items
    3. if the data comes from the keyboard, asks for all inventory information (item name, number in stock,
    initial warehouse, and value of one item)
    4. if the data comes from a file, displays the inventory information for the item.
    5. for each item, asks the user how many items to add or delete from inventory
    6. determines whether an item must be moved to a different warehouse and changes the location if
    necessary (note, it may be necessary to move an item to a smaller warehouse)
    7. once all inventory changes have been made, for each warehouse displays the items in the warehouse, the
    total number of items in the warehouse, and the total value of the items in the warehouse.
    8. once all inventory changes have been made, stores the item information in a file (which can be used for
    the next program run)
    9. asks the user for the names of the input file (if data is coming from a file) and the output file (always).
    p.s. I can post the source code for it if it's required for the help.
    Thanks,
    Xandler

    my specific question is how I would go about using the scanner utility to tell it to input from the file or keyboard, if from keyboard it's manually item information is done manually, if from file it asks the user for the file name and the user selects it, then it saves it to a file, can't really post what I've tried because that's the problem, I don't know how to go about doing it and the instructor won't help me, I know though that it requires a file read method for the 2nd run, and a keyboard input for the first and a write for the saving of the file(s).
    Thanks,
    Xandler

  • UCCX 7.0(1)SR03 - I need a Script to collect digits and write to file

    I'm trying to come up with a script that will Collect digits and write them to a file. XML, CSV, I really don't care what type of file.  Is this possible?
    Thank you
      Jacob

    Yes this is possible. You would use a Collect Digits step, Keyword Transform Document step, and a Write Document step.
    The Keyword Transform is the important one, it works like a template. Most of the file is boilerplate and there is a single variable %var% that you can write the collected value to.
    This is not a way to write to a file like a log file would be. You are allowed 1 file per call.
    If you are looking to track caller collected digits per call over time, I would suggest using Set Enterprise Call Info step and use one of the Custom Call variables. Then pull them out of the database with a custom report or use the canned CCV report.

  • I have an excel file,i want to read and write this file to xml

    hello,
    i have an excel file,i want to read excel data and write to xml file .i also have an exisitng xml file and i want to appened the excel data to the exisiting xml.please give some example code.
    thanks

    GoOgLe

Maybe you are looking for

  • Apple id stuck on old email address

    My original email got hacked and i have updated my new apple id on icloud.com. However, my iphone still has my old email address greyed out. How can i change to my new email address unto my device? Thanks

  • Why does my just rented movie say I can play it in 48 hours?

    So we came home on a Friday Night and commenced our family Pizza and Movie Night, sat down covered with cheese and for the first time decided to rent a movie on the Apple TV.  We had watched NetFlix movies for almost a year, with no issues.  But... n

  • Having trouble with arrow keys and moving objects

    All of a sudden I can't move objects in Illustrator (CS4). They move around in a jerky fashion and make big jumps with the arrow keys. I tried restarting, resetting preferences, playing with mouse. What could be causing this and how can I fix it?

  • Is there a way to prevent Software updates to automatically upgrade my printer drivers?

    Hi everybody! Is it possible to prevent Mountain Lion to automatically upgrade my printer drivers? I'm using an iMac with Mountain Lion at work, and for my printer to work, I need to keep an older version of xerox drivers (newer versions are not supp

  • Diff between issession and issystem

    All, Wanted to understand ..When we need to restart he DB servers in case if we change some parameters ...? What is the diff between issession and issystem modifiable clauses ...? Thanks