FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

calculate max, min of simulate signal

I'm using Ampitude and Level Measurements to calculate max min and peak to peak of simulate signal but these values ever change.
why this application return all of value of function??
how can I resolve this problem
Thank you
0 Kudos
Message 1 of 5
(3,493 Views)
Hi,
 
Can you provide more details please?  What VI/function are you using? How is this tied to FieldPoint?  Etc.
 
-Khalid
0 Kudos
Message 2 of 5
(3,487 Views)

ocramm,

your question is not quite clear.

Could you attach an example of what you are doing so that we can look at it. Make sure you add comments inside the VI on what is not working and what should be working.

thanks

AlessioD

0 Kudos
Message 3 of 5
(3,485 Views)

hallo Alessio,

I send you this little VI. it's only a part of my program but the problem is the same.

In my principal program I must achieve a analog input, calculate numeric integral of this signal and calculate max, min and p-p of primitive

in the little VI there are some comments. I hope they are explicit

Thank for your help!!
 
Ma sei italiano??
0 Kudos
Message 4 of 5
(3,472 Views)

Ocramm,

the point is in the way you configure the "Simulate Signal" Express VI. If you remove the while loop in your example, you will see that it will generate only the first part of a sine wave. And not an entire cycle. This is because you have configured it to generate 100 points at 1000 Samples/s. Putting this in a while loop generates 100 points continuously, describing a sine wave but the processing is always performed on the 100 points generated in the same iteration.

Remove the While loop, and you will see what I mean.

If you open up the Simulate Signal Express VI, modify the number of samples generated and put in 1000, so that it will generate 1 entire cycle. The measurements will be as expected.

AlessioD

National Instruments

(btw: si sono italiano)

0 Kudos
Message 5 of 5
(3,461 Views)