09-14-2016 01:09 AM
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?
09-14-2016 01:16 AM - edited 09-14-2016 01:18 AM
-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/
09-14-2016 01:19 AM
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.
09-14-2016 01:43 AM - edited 09-14-2016 01:46 AM
- 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/
09-14-2016 01:55 AM
Basically, from the snipped photo I have shown, I have to make the 3 columns into seperate tabs using block diagram components.
09-14-2016 02:43 AM
09-14-2016 02:54 AM
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?
09-14-2016 02:59 AM
-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
LabVIEW Graphical Programming Course
09-14-2016 04:20 AM
09-14-2016 05:05 AM
Modified