Example Code

Read Table from a Text file into LabVIEW

Code and Documents

Attachment

Overview
This VI will read a space seperate table from a text file and place it into an array.

 


Description
This VI will read a space seperate table from a text file and place it into an array.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Download the attachment to your computer
  • Open the VI "Read From Text File 2012 NIVerified.vi"
  • Run the VI

 

Additional Information or References
VI Snippet

 VI Snippet.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Matthew Trott
Applications Engineer
National Instruments UK
www.ni.com/ask

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
sh1155
Member
Member
on

I hope you are doing well,

I have a problem in reading .txt and show in labview,please help me

my sample data is attach.

N     CH1(mv)     CH2(mv)

         0        53        69

         1        54        69

         2        55        69

         3        56        69

         4        56        71

         5        56        72

         6        56        73

         7        56        73

         8        56        75

         9        56        77

        10        56        77

        11        56        77

        12        56        80

        13        56        81

        14        56        82

        15        56        82

        16        54        84

        17        53        85

        18        52        86

        19        52        86

        20        52        88

        21        52        90

        22        50        90

        23        48        91

        24        48        91

        25        45        93

        26        44        94

        27        44        95

        28        41        95

        29        40        95

        30        39        97

        31        37        98

        32        36        99

        33        35        99

        34        32        99

        35        31       102

        36        31       103

        37        28       103

        38        27       104

        39        26       106

        40        26       107

        41        26       108

        42        26       108

        43        26       110

        44        26       111

        45        26       112

        46        26       112

        47        26       115

        48        26       116

        49        26       116

        50        26       117

        51        26       119

        52        26       120

        53        26       121

        54        26       121

        55        26       123

        56        26       124

        57        26       125

        58        26       125

        59        26       128

        60        26       129

        61        28       129

        62        29       130

        63        29       132

        64        30       133

        65        30       134

        66        30       134

        67        30       136

        68        32       137

        69        33       138

        70        34       138

        71        34       141

        72        36       142