LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert this matlab code to labview?

Solved!
Go to solution
Solution
Accepted by simply_ynan

Hi simply_ynan,

  According to my observation,you want to find the indices of the arrayval where it crosses the minval(above or below).I am adding a code .

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Message 11 of 17
(1,521 Views)

A few different ways to do what (I think) you are trying to do here.  My Matlab is rusty at best.

 

MatlabCode.png

 

Indices are off by 1 because Matlab does the sensible thing and starts counting at 1 instead of 0.  

0 Kudos
Message 12 of 17
(1,519 Views)

Another easy solution is using the zero_crossing_ptbypt, e.g. as follows:

 

Download All
0 Kudos
Message 13 of 17
(1,508 Views)

This one answers the question. Thank you very much...

0 Kudos
Message 14 of 17
(1,496 Views)

Thanks a lot to srikrishnaNF and others for helping....Have a nice day...

 

0 Kudos
Message 15 of 17
(1,492 Views)

hello

 

I need to write a program which can take multiple input (analog signals) and can display these signals to zbrain kit.

 

I am in gr8 need of someone who could help me understand some stuffs in labview programming. If we could talk via email it would be a gr8 help. 

0 Kudos
Message 16 of 17
(1,373 Views)

pdamt wrote:

I need to write a program which can take multiple input (analog signals) and can display these signals to zbrain kit. 

I am in gr8 need of someone who could help me understand some stuffs in labview programming. If we could talk via email it would be a gr8 help. 


 

  • Why did you add to an old thread about matlab that is already marked as solved?
  • Please start a new thread and use an appropriate post title.
  • Most people are not familiar with zbrain, so a link would help.
  • "some stuffs" can mean anything. Be more specific!
  • This is an international forum and I recommend to be a clear as possible while avoiding cute words like "gr8".
  • Thanks.
0 Kudos
Message 17 of 17
(1,369 Views)