LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read TXT and separate data

Solved!
Go to solution

Hello

 

I have a problem...

I have this TXT file

T1 1 00000010 00000001 OutIn t1
Ters 1 00110000 00000011 OutIn t2
ggfd 1 00000001 00000010 OutIn t1
t1 0 00000110 00000011 InOut t1
t2 0 00110100 00000011 OutIn t1t2

T1 Tab 1 Tab ..... t1 CR LF

I read this file in Labview and i wuold separate this data for type..

Row 1 in Array [1][1] T1 [1][2] 1 Array [1][3]00000010 ecc...

Array [2][1] Ters

 

Thx

If you wuold I sand Picture and schematic

 

Bye

0 Kudos
Message 1 of 15
(3,698 Views)

Needs more information, what you want to do with your file,

do you want to splitt into different columns?

Attach sample file and the code that you have tried, to help in better way.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 15
(3,694 Views)

Hi Andrea,

 

quite easy:

check.png

 

Row 1 in Array [1][1] T1 [1][2] 1 Array [1][3]00000010 ecc...

Please get used to "standard" array indices: the "upper left" element has index [0, 0]!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 15
(3,689 Views)

image.pngWhy after Spreadsheet string to array is Orange?

I have try but i don't understend

 

Thx for answare

0 Kudos
Message 4 of 15
(3,683 Views)

Hi Andrea,

 

Why after Spreadsheet string to array is Orange?

Did you read the LabVIEW help for this function?

Do you know all it's inputs and their default values?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 15
(3,680 Views)

help.pngYes I have read, but your is ALL pink (string) and my ist String inizialize and after Orange, I have not select right?

Sorry my Enlglish is not Top....

Thx

0 Kudos
Message 6 of 15
(3,677 Views)

Hi Andrea,

 

did you notice the "Detailed help" link? Did you read the full story?

 

You know how to create constants in the block diagram, don't you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 15
(3,674 Views)

Hope You need to specify the array type you need (Default 2D Double).

If you are not passing any value or array type by default it will give 2D Double.

 

Provide String array to get string values as output

 

As Suggeted by Gerd Make sure you are provding all inputs/Proper type.

Post code or code snippet not the image

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 8 of 15
(3,668 Views)

@andreabello wrote:

=Yes I have read, but your is ALL pink (string) and my ist String inizialize and after Orange, I have not select right?



Hope its better to know about datatype instead of refereing colour

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 9 of 15
(3,666 Views)

Yes i have read all and i now what is a costant ...

But is my first time whit LabView ... I programm normaly and is so different

0 Kudos
Message 10 of 15
(3,640 Views)