LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to diffrentiat values from the string type data

HI.

 I have tax file in which first 6 lines are only giving refrence data, then after channel data start colome wise like first colume indicating no.123456...then second colume indicationg Date then third colume indicating time then fouth one indicating channel 1 and then fifth one indicating channel 2. 

 

I tried to build program but it is not working as it should work..can you please help me. i have attached my program and text file.

 

Thanking you

raj

0 Kudos
Message 1 of 11
(3,992 Views)

Your problem is that your values are separated with a variable number of delimiters (1..4 spaces). You should probably parse the string with "scan string for tokens", which automatically contracts consecutive delimiters into one.

 

Another option would be to just edit out the empty array elements, e.g. as in the attached crude modifiation. Modify as needed.

0 Kudos
Message 2 of 11
(3,982 Views)

HI altenbach,

 

Thanks for help!!! 

Now i have two problem

1) I am giving path to data then pressing load then values are loading, if i stop labview and then run again and then press load then that values comes on screen.

2)I have seprated each 2 channel in tab 1 and tab 2, i wanted to print all data, data from tab1, tab2 individually controllable, i have tried connect it with printer but some how not working.

 

I have attached that file

 

Please help me,
Thanks

raj

0 Kudos
Message 3 of 11
(3,955 Views)

Hi once again,

 

I have solved problem no.1 that i have mention in previous mail regarding tab control. But still i am not able to print it. Actually i found one event structure but i dont know how to connect my data to that event structure.

 

I want to seee graph of my string data..Graph of time and channel 1 in tab 1 how can i do that just show me as one example then i will try to do rest of channel.

 

I have attached last version of my file.

 

Thanking you,

raj

0 Kudos
Message 4 of 11
(3,926 Views)

OK, you see to still have some serious misconceptions about dataflow and LabVIEW in general. Having a control/indicator with the same name in a subVI, does not make it share data with the equally named control/indicator of the main VI. You need to send the appropriate control references to the subVI instead.

 

Having a DBL control as a channel selector makes no sense. Use an integer. And don't convert to I64 for no reason. I doubt you have more than 2^31 channels!

It is silly to have a dial to select the tab and then force the tab state to the correct page. Use the tab control directly instead.

Don't fill controls based on tab state. Fill them all (once!) when the data is read and no further action is required later. No local variables needed.

Your color scheme is just hideous. Red text on dark pink buttons?? 😮

 

Attached is a quick draft at a cleanup attempt.

0 Kudos
Message 5 of 11
(3,916 Views)

Thanks,

 

Actually I am very new in labveiw and trying to do..And for learning only I have bought labview 8.5, when I got frosted from programming then after I started playing with colors and tabs at last it was red alphabet...It was not intention..Sorry if I posted a bad arranged program

0 Kudos
Message 6 of 11
(3,888 Views)

Hi,

 

If i want to run labview program on a computer in which there is no labveiw is installed then how can i make this kind of file?

0 Kudos
Message 7 of 11
(3,881 Views)

Hi,

How can i see time Vs channel output on graph screen?

If i want to run this program on computer in which there is no labveiw then how can i do that?

0 Kudos
Message 8 of 11
(3,878 Views)

rajaryan1984 wrote:

If i want to run labview program on a computer in which there is no labveiw is installed then how can i make this kind of file?


If you have LabVIEW professional or higher, you would use the application builder to make a standalone executable. (If you only have base or FDS, it can be purchased seperately).

 

See for example this link.

 

The computer would need the LabVIEW Runtime engine installed, which is free. It can be included with the installer of downloaded from NI.

0 Kudos
Message 9 of 11
(3,869 Views)

Hi altenbach,

 

i have date and time as a string and value of temperature as a string then how can i make graph as x-axis date and time and y axis temp value, 

 

i think some minore convertor is needed which convert stings value to array and then displa as x-axis  but i dont know how to do that

0 Kudos
Message 10 of 11
(3,853 Views)