LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

'find' command

mathscript doesn't give any output when I use the 'find' command to get the index of an array element. I want to find the rise time of a real time signal. Following is the code;
rise_time1 = max(find(act < 0.1));
rise_time2 = min(find(act > 0.9));
rise_time = abs(time(rise_time2)-time(rise_time1));

Any suggestions will be highly appreciated. 
Many thanks.

0 Kudos
Message 1 of 2
(3,916 Views)

Hi Rabiya,

 

Are you able to confirm that the array you're trying to get the index of is actually being populated.

 

Are you also able to post more of your code?

 

Thanks

Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 2 of 2
(3,841 Views)