LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Labview "Tab" under string function

Hi,

 

I have a string constant of data in 3 longgggggggggg columns, I have to seperate out the columns by enabling "tab"  to see the values of the data. 

 

Does anyone have any solutions on how to create this?

 

 

0 Kudos
Message 1 of 19
(1,385 Views)

-Provide Sample data to explain the question better along with VI/LabVIEW snippet.
-Are you going to read from file? What is the format of the file?
-You can check Read From Spreadsheet File VI:https://zone.ni.com/reference/en-XX/help/371361J-01/glang/read_from_spreadsheet_file/

Thanks
uday
0 Kudos
Message 2 of 19
(1,381 Views)

Sorry about it, forgotten to upload the vi.

 

Basically given the data file I have provided, the string should come out in 3 "tabbed" columns.

The formate of the file is just a text file. 

 

 

0 Kudos
Message 3 of 19
(1,369 Views)

- Use Read from Text File Function to read the file and provide file path to the respective file path.

- Use Spreadsheet String To Array Function to convert to data to array of data.

- Refer the example provided here for reference:https://decibel.ni.com/content/docs/DOC-9290

- You can exclude the Array subset since you need all columns of data.

 

Edit: P.S. Sorry on mobile, can't see VI if possible post snippet using : http://www.ni.com/tutorial/9330/en/

Thanks
uday
0 Kudos
Message 4 of 19
(1,354 Views)

Basically, from the snipped photo I have shown, I have to make the 3 columns into seperate tabs using block diagram components. 

0 Kudos
Message 5 of 19
(1,344 Views)
Use "Spreadsheet String To Array Function" to convert to string to tab delimited array data.
-Connect String to "spreadsheet string" input
-Connect %s to "format string" input
-Connect 2D array of String constant to "array type" input.
Thanks
uday
0 Kudos
Message 6 of 19
(1,331 Views)

Great option! I chose the "read spreadsheet" and eliminated my previous vi to get this as shown on the snipped photo.

Now, as you can see I have 3 columns, and i have to plot the 3 columns on a xy graph, say:

Column 1 vs Column 3 , 

Column 2 vs Column 3,

Column 2 vs Column 1,

 

I tried to build the xy graph component a shown, but I have no idea how to link it. Any solutions to that? 

0 Kudos
Message 7 of 19
(1,328 Views)

-Check examples provided along with labview: Help-> Find examples-> Search for XY Graph.

-I believe you definitely need to learn about LabVIEW. Please try below free online material :

Start with below links to learn about LabVIEW programming 

NI Learning Center

NI Getting Started

-LabVEW Basics

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction

LabVIEW Graphical Programming Course

Thanks
uday
0 Kudos
Message 8 of 19
(1,322 Views)

XYGraph_Forum.png

Palanivel Thiruvenkadam,
Certified (LabVIEW || TestStand) Developer
Message 9 of 19
(1,310 Views)

ModifiedXYGraph_Forum.png

Palanivel Thiruvenkadam,
Certified (LabVIEW || TestStand) Developer
0 Kudos
Message 10 of 19
(1,296 Views)