LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generating synchro/resolver signals using NI 9269

Hi,

 

i am working on developing a synchro simulator using NI 9269 in LV 2012. According to theory synchro is a three wire signal S1 S2 S3 with reference voltage R1 R2. at first i am using 26 V 400 Hz reference voltage. the equations I am implementing are as follows;

 

S1= - sqrt (2) * (11.8)* sin (theta + 60) * sin(wt)  eq (1)   w= ref signal frequency    11.8 = rms value for output , theta= the angle

 

S2= - sqrt (2) * (11.8) * sin (theta) * sin (wt)       eq(2)

 

S3= - sqrt (2) * (11.8)* sin (theta + 120) * sin(wt)     eq (3)

 

 I am generating the signals as single ended output , using three outputs A0 ,A1 a,nd A2 of NI 9269.

 

as per the theory I got from public domain literature it is stated that theta is the angle we want to sent over the signals S1 S2 S3. the signals are some 120 part or phase shift from each other. the synchro LINE - LINE voltage then should be

 

Voltage (S3 -S1) = (constant value) * sin(wt) * sin (theta)

 

Voltage (S3 -S2) = (constant value) * sin(wt) * sin (theta+120)

 

Voltage (S2 -S1) = (constant value) * sin(wt) * sin (theta+240)

 

 I implemented eq (1) (2) and (3) in FPGA and generate the signals from NI 9269. I use a reference signal 26 V , 400 Hz from synchro reference signal generator.

 

BUT when I connect all above to an angle position indicator (API) , It shows me erroneous result .

 

I fixed  the synchro angle theta value equal to 15 degree and API should display 15 Degree but it is not happening and it is showing fluctuating results like 100 degree  115 , 89, 67 etc.

 

how I achieve the correct angle position on API and what changes should I made in my equations etc to achieve it.

 

Regards

0 Kudos
Message 1 of 19
(6,177 Views)

Hey Tirmizi,

 

Can you include your FPGA code? We won't be able to see what you may have done incorrectly without being able to see your current implementation.

 

Regards,

 

Ryan

Ryan P.
CLA
0 Kudos
Message 2 of 19
(6,142 Views)

sorry for late reply as i was busy in another project.

 

i am attaching the images of my fpga code as well as parameter setting of sinewave generator block. i am also attaching the vi.

 

please follow the equations i have written before in my msg to have a clear picture of the attached images. waiting for your reply

 

 

0 Kudos
Message 3 of 19
(6,078 Views)

There were several problems with your code.

the maxium of your sine generator was set to 16.  the output is integer.

change to max range.

you converted to fxp from integer

you need to use integer to fixed point cast

I added a step to provide amplitude adjustment

you had three generators when one is sufficient.  if you are tracking an excitation signal, replace the generator with that input.

i fixed up the multiply number types.

I changed the output to a test case graph so you can test this under windows and observe the correct data before compiling for FPGA

Stu
0 Kudos
Message 4 of 19
(6,063 Views)

thanks for the attachement but i am unable to open this in my LV. can you save in some prev  version like LV 11.

0 Kudos
Message 5 of 19
(6,036 Views)

sorry for the mistake for writing LV 11 , kindly read it as LV 7 or LV 8

0 Kudos
Message 6 of 19
(6,013 Views)

if you cannot send me the vi in prev version then please attach the snapshots of the vi so that i understand the problem in my vi.

0 Kudos
Message 7 of 19
(5,999 Views)

here is a version for LV2011.  that is the best i can do.

Stu
0 Kudos
Message 8 of 19
(5,983 Views)

but what i do with the factor present in each synchro equation i am talking about the highlighted terms

 

S1= - sqrt (2) * (11.8)* sin (theta + 60) * sin(wt)

 

S2= - sqrt (2) * (11.8) * sin (theta) * sin (wt)       eq(2)

 

S3= - sqrt (2) * (11.8)* sin (theta + 120) * sin(wt)     eq (3)

 

i have seen these terms in a US PATENT document and i follow it to generate my synchro signals. can you help me in this metter. the 11.8 Is termed as rms output voltage and sqrt(2) factor is seems to convert this rms into peak to peak

0 Kudos
Message 9 of 19
(5,967 Views)

you might have two questions here.

the code that i posted does exactly what your equations describe except the hardware will not produce the amplitude of your signal.  The software has an amplitude factor that can be used with external voltage amplifier to acheive the required physical voltage levels.

Stu
0 Kudos
Message 10 of 19
(5,959 Views)