取消
显示结果 
搜索替代 
您的意思是: 

txt string spreadsheet

Hi :

 

i have txt string and i want to spread it to array

 

for example my txt string is like the

 

Power Off,0.00,0,0,Volts,Pass
Relay Init,1.00,1,1,,Pass
Power On,12.00,11.8,12.2,Volts,Pass
-- Result Pass (59/0)

 

and i want to each raw insert to array\record like this

index 0 = Power Off,0.00,0,0,Volts,Pass

index 1=Relay Init,1.00,1,1,,Pass

index 2=Power On,12.00,11.8,12.2,Volts,Pass

index 3=-- Result Pass (59/0)

 

how can i do that in labview

 

 

 

 

0 项奖励
1 条消息(共 5 条)
2,895 次查看

Hi,

 

Take a look at the code i have attached .. This will solve your problem.


Regards,


Nitzz

(Give Kudos to good Answers, Mark as a solution if your problem is Solved:smileywink:)

0 项奖励
2 条消息(共 5 条)
2,886 次查看

Hi Elyan wisam,

see the "Spreadsheet String to Array" function. It's located in the string palette.

 

Mike

3 条消息(共 5 条)
2,882 次查看

Hey Elyan

 

As Mike wrote this is what you could do.

stringToArray

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If you want to load your string input from a txt file you need to use the read txt file subVI in the File I/O palette.

 

Sletten

0 项奖励
4 条消息(共 5 条)
2,877 次查看

Hi Mike,


Thanks for this solution.. I didn't think about this simple solution..:)

 

Regards,

Nitzz 

0 项奖励
5 条消息(共 5 条)
2,875 次查看