02-19-2020 01:01 PM
02-19-2020 01:42 PM
S1-3 means all three legs Sx/rtn ... and ref , 4 channels. Other configurations are just math then...
10kSPS at least... 50kSPS would be fine
Again: What is the target angular resolution needed?
02-20-2020 05:19 AM
My S3>S1 was a differential measurement ref. My resolution needs to be +/-1 degree.
02-20-2020 07:46 AM - edited 02-20-2020 07:50 AM
I attached a vi with the 'Ben' reconstruction .. The recalculation you used (make it a sin and cos) is from the old days of analog computing 😉
depending of the connections you need to swap the angle sign and add an offset.
DAQ configuration needs to be done before running.
Since I had no DAQ and synchro it's barely untested 😉
Hey NI, I want a configurable DAQmx simulator 😄 😄
EDIT should have added a save feature to get raw data 😄
02-20-2020 07:59 AM - edited 02-20-2020 08:02 AM
For a maybe curious Ben: 😄
and see an error .. not really harming in this case ... phase difference 😉
02-21-2020 06:10 AM
You are kind of doing what I did except..
1) I don't use producer consumer to read/analyze the signals. I read the data in w my daq then analyze it.
2)It looks like you subtract the ref freq from each leg of the synchro freq. I do that except on only one leg..not the other 2.
3) You then add 90 to this phase??? Why?? Then divide by 360..then subtract 90 from the remainder.
4) If this result is great than 90 you negate it. Otherwise you send it straight thru to polar to complex..
5) you then have a polar form in real and imaginary. One at 0, 2pi/3 and 4pi/3
6) Now back to rectangular form..get the angle of all 3 stators added together and convert that result (radians) to degrees.
7) What is swap sign for?? What is angle offset?? What is wrap in -90 to 270?
Maybe you could explain why you do all 7 steps??
Like I've been saying all along. I only measure S3 to S1...differentially. Why do I need the other 2 stators when they will just be 120 degs out from my S3>S1 measurement?? Why take 2 measurements just to add or subtract 120 from them to get what I measured on S3>S1 ?? Why measure w extra hardware just to do a math calculation of addition or subtraction in SW??
Could I use your method above w just one stator measurement relative to the rotor measurement?
thxs
02-21-2020 07:13 AM - edited 02-21-2020 07:36 AM
@Clint1000 wrote:
You are kind of doing what I did except..
1) I don't use producer consumer to read/analyze the signals. I read the data in w my daq then analyze it.
2)It looks like you subtract the ref freq from each leg of the synchro freq. I do that except on only one leg..not the other 2.
3) You then add 90 to this phase??? Why?? Then divide by 360..then subtract 90 from the remainder.
4) If this result is great than 90 you negate it. Otherwise you send it straight thru to polar to complex..
5) you then have a polar form in real and imaginary. One at 0, 2pi/3 and 4pi/3
6) Now back to rectangular form..get the angle of all 3 stators added together and convert that result (radians) to degrees.
7) What is swap sign for?? What is angle offset?? What is wrap in -90 to 270?
Maybe you could explain why you do all 7 steps??
Like I've been saying all along. I only measure S3 to S1...differentially. Why do I need the other 2 stators when they will just be 120 degs out from my S3>S1 measurement?? Why take 2 measurements just to add or subtract 120 from them to get what I measured on S3>S1 ?? Why measure w extra hardware just to do a math calculation of addition or subtraction in SW??
Could I use your method above w just one stator measurement relative to the rotor measurement?
thxs
In a first guess it shouldn't make a difference if you measure Sx/rtn or Sa/Sb ...
If you use all channels you get a much better signal
After building the difference to the ref, the result could be anywhere between -+360° (or +-720° didn't check) . The +90,remainer from 360,-90 will wrap the phase always into the -90 to 270 region. Now you need to decide the sign, wether the phase is ~0° or ~ 180° , 90° is the boundary 😉 .
The complex math will result in the absolute position of the synchro . Since the rotation sign and zero position depend on the way you connect the synchro signals (no matter how you do it , swapping polarity or a leg, it will still work, just change the zero and rotation direction), I added sign and offset .
Hook it up, turn the servo , check if the angle direction match or invert it , put the synchro (coarsly) into the your zero position. you should find an angle coarsly around ~+-n*30° , enter -+n*30 as your offset ... Setup DONE 🙂 Test , report here 😉
Why do I need the other 2 stators when they will just be 120 degs out from my S3>S1 measurement? As said alrady, that signal is about zero at the position you eagely want to measure, but the zero crossings are not perfekt in synchros ..
Could I use your method above w just one stator measurement relative to the rotor measurement? No. There are other methods possible, but this one is the best AFAIK. Do you run out of channels? Or copper?
02-21-2020 07:21 AM
THANKS!!!!! I'll give it a shot . Give me 5 North American business days and I'll report back. Lots of hardware changes now !
One question. I'm ( will be 0 doing a single measurement at a time of all 3 stators ( after I chg based on your suggestion). It shouldn't matter if I use consumer/producer or just a straight DAQ setup would it. I'm not doing a continuous measurement. Take a reading..analyze ..pass/fail.
Thanks for sticking this out.
02-21-2020 08:52 AM - edited 02-21-2020 08:55 AM
If you use the cosumer part, you just have to make shure that the first channel is the reference in the array of wfrms.
A continious read would ease the setup of sign and offset, but since I don't know what else is done with the DAQ and where the synchro is mounted ....
02-24-2020 05:29 AM
I'm trying to follow your connections based on the schematic of LV you posted. In the section labeled "wrap in -90 to 270" you measure phase w the extract single tone measurement.vi. In one path you use phase and the other, if the resultant phase is >90, you negate the amplitude of the measured signal and use that as your phase?? Why? To me that doesn't make sense to use phase in one case and amplitude in the other.
Thxs