LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab to labview(urgent please)

Solved!
Go to solution

data=load('D:\d.txt');

 

for n=1:240;

    t=1024*n; i=t-1024+1;

    a=data(i:t,1);

    elev=-data(i:t,2);

    p=data(i:t,3);

    r=-data(i:t,4);

 

 

please ane one help how to code in labview for above matlab procedue.. urgent please 

 

 

thanks & regards

srinath 

0 Kudos
Message 1 of 14
(4,149 Views)
Message 2 of 14
(4,143 Views)

Hi,

 please upload the  txt file also..

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 3 of 14
(4,140 Views)

respected sir 

here i am sending text file also.. here the first column shows the data of the ''a''

                                                the second  column shows the data of the ''elev''

                                                the thied column shows the data of the ''p'' 

                                                 the first column shows the data of the ''r'' 

for n =1:240; shows that loop count is 1 to 240

                                                                

                                                              t=1024*n; i=t-1024+1; shows the conditions 

                                                                a=data(i:t,1); shows during hte first loop it has to read first column 1024 values and during the 2nd loop count t has to read first column 1025 to next 2048 values and cont.. up to 140 times

                                                                elev=-data(i:t,2); shows during first  loop it has to read 2nd column 1024 values and during the 2nd loop count 2ndhas to read 2nd column 1025 to next 2048 values and cont.. up to 140 times

                                                                 p=data(i:t,3); shows during first  loop it has to read 3rd column 1024 values and during the 2nd loop count 2ndhas to read 3rd column 1025 to next 2048 values and cont.. up to 140 times

                                                                  r=-data(i:t,4);shows during first  loop it has to read4th column 1024 values and during the 2nd loop count 2ndhas to read 4th column 1025 to next 2048 values and cont.. up to 140 times 

 

                                                                      end

 

 i think ex:

 

 

 

thanks and regards

 srinath 

  

 

 

 

 

 

 

 

 

      

 

                                   

 

0 Kudos
Message 4 of 14
(4,098 Views)
hai up to 240 times it has to count .. not 140 .. i did a mistake in above post sorry...
 
please can u try as per above post requirements.....  its urgent..
thank & regards
srinath 
0 Kudos
Message 5 of 14
(4,090 Views)
Please try to keep the discussion in one place so all of the necessary information is in one place. Let's move all of the discussion in the other thread that Mike pointed out.
0 Kudos
Message 6 of 14
(4,087 Views)
Solution
Accepted by topic author adapa

 

Hi,

please look at the attached VI.

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 7 of 14
(4,075 Views)

respected sir

 

    i think u have done in labview 8.5. but i have 8.0.version.  my friend having the latest version . i will try in that version and i will give the reply by soon..

that coding is  is very important to me .. if it is successes  i am very thankful to u.

 

 

thanks for ur valuable  advices.. i wiil be keep in touch with u..   

 

 

 

thanks & regards

srinath 

 

 

0 Kudos
Message 8 of 14
(4,065 Views)

respected sir

 

 

 your program is working absolutely as per my requirement. i am very thankful to you sir.

  

 

i am very new to labview coding. i am doing my pg project by using labview. initially i did my project in matlab. but suddenly my guide asked me to change software to labview. so i got problems . can u help me in this coding if i get the doubts in project. can i know ur mail id please.

 

thanks & regards

adapa srinath

mail:adapasrinath@yahoo.com 

0 Kudos
Message 9 of 14
(4,048 Views)

respected sir

 

 

 your program is working absolutely as per my requirement. i am very thankful to you sir.

  

 

i am very new to labview coding. i am doing my pg project by using labview. initially i did my project in matlab. but suddenly my guide asked me to change software to labview. so i got problems . can u help me in this coding if i get the doubts in project. can i know ur mail id please.

 

thanks & regards

adapa srinath

mail:adapasrinath@yahoo.com 

0 Kudos
Message 10 of 14
(4,042 Views)