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

convert data in the text file to table in DBL

well.

because all of my data from the text i read contains of some values, implies they won't be zero.

By using mike.vi, it consists of 0.00 value in my labview table.

How is this so?

0 项奖励
21 条消息(共 30 条)
1,841 次查看

Hi sean1985,

if you have an empty string and you convert it to a dbl, you will get "0.00". And because of there are some empty fields in your file, you get all the "0.00" values.

Mike

0 项奖励
22 条消息(共 30 条)
1,837 次查看
because some of my data from my .txt is positive. Thus some of the data in the table of labview is 0.00
0 项奖励
23 条消息(共 30 条)
1,819 次查看

mike,

i have alter some changes previously to \s\s. \s\s format will contribute to a column of 0.00 in my table

whereas \s\s\s cannot read in positive values (because there will be no sign) which then treat it as empty field, and in terms output as 0.00

0 项奖励
24 条消息(共 30 条)
1,817 次查看

Hi sean1985,

there is only one empty field. If you read your data as 1D array and delete the first elements, then you have 1024 elements in your array. You can create a table of it with the reshape array function. See the attached picture.

Hope it helps.

Mike



Message Edited by MikeS81 on 05-22-2008 07:53 AM
25 条消息(共 30 条)
1,802 次查看

Mike! U have defintely proved yourself as a veteran... Why cant i thought of this?

Anyway thks for ur patience and time

Furthermore, if possible can go n see my post at labview math script..lolx....... pls!!!!!!!!

 

Why u, because, i got addicted to ur way of teaching..lolx!!

0 项奖励
26 条消息(共 30 条)
1,780 次查看
i think i made some error somewhere. i dun get it.
0 项奖励
27 条消息(共 30 条)
1,751 次查看
In all of your string constants where you have \s, the display mode is not correct. Right click and select '\' Codes Display (and then reenter the correct data). A \s is the '\' Code way to enter a space character. You could leave the string constants in normal display and simply enter the correct number of spaces by hitting the space bar but using the '\' code display makes it easier to just look at the diagram and see how many spaces are being used.
28 条消息(共 30 条)
1,749 次查看
what is "\s\s " means? \s\s means 2 spacing? where can learnt more about this notation. I never seen it before? can u direct me?
 
 
0 项奖励
29 条消息(共 30 条)
1,730 次查看
Hi Sean,

open Labview help, go to Index tab, search for "Backslash" and choose the only one entry for this topic...

Can also be found via "format specifier syntax" and clicking "insert non-displayable characters in strings" (last paragraph). "Format specifier syntax" is linked in help of all string-formatting functions.


Message Edited by GerdW on 05-24-2008 09:48 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
30 条消息(共 30 条)
1,727 次查看