LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

arcsin function

Highlighted

Hi

 

I want to use arcsin function for real data. I have found that it can be used only for complex data. so how to apply inverse sine for real data? can anyone help please. I have attached my VI.

 

Regards

Shirin

Download All
0 Kudos
Message 1 of 4
(271 Views)
Highlighted

The input to arcsin needs to be between -1 and 1. Your input is in the thousands, even NaN sometimes. Nothing to do with complex. What are typical values for all your controls?

 

Can you point to a website explaining what the data represents and what you are trying to get out of it?

 

... and what silly code is this? The output is the same as the input!

altenbach_0-1602362262726.png

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 2 of 4
(264 Views)
Highlighted

Hi

Thanks for your reply. NaN is due to arcsin block:

Computes the arcsine of x.

If x is not complex and is less than –1 or greater than 1, the result is NaN. The connector pane displays the default data types for this polymorphic function.

 

My data is RF signal and I want to compensate for MZM distortion.

 

Regards

Shirin

0 Kudos
Message 3 of 4
(247 Views)
Highlighted

@shirin91 wrote:

 

Thanks for your reply. NaN is due to arcsin block:

 


No, I am looking at the input to arcsin. What values do you have there? Place an indicator or probe!

Are they really in the range -1 to 1? (you still have not told us the typical values for your controls).

 

There is no angle in the world where sin is outside [-1, 1]!

 

About half of your values are negative. The square root of a (non-complex) negative number is also NaN.

 

You also still have not explained the experiment and theory you are trying to apply. So far all this makes no sense!


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
0 Kudos
Message 4 of 4
(225 Views)