##// END OF EJS Templates
two fields added to the housekeeping parameters:...
two fields added to the housekeeping parameters: housekeeping_packet.hk_lfr_vhdl_aa_sm ousekeeping_packet.hk_lfr_vhdl_iir_cal The contents are below housekeeping_packet.hk_lfr_vhdl_aa_sm = (unsigned char) (statusReg & 0x7c0 >> 6); housekeeping_packet.hk_lfr_vhdl_iir_cal = (unsigned char) ((waveform_picker_regs->status & 0xff00) >> 8);

File last commit:

r126:5ae10b1b8078 VHDLib206
r265:09ea64972ca9 R3a
Show More
load_spectral_matrix_sinus.py
22 lines | 521 B | text/x-python | PythonLexer
/ FSW-qt / bin / load_spectral_matrix_sinus.py
paul
Sources reorganized...
r126 #!/usr/bin/lppmon -e
import math
address_to_read = 0x80000f08
val = RMAPPlugin0.Read( address_to_read, 1)
matrixF0_Address0 = val[0]
print hex(matrixF0_Address0)
teta = []
for i in range(128):
teta.append( i * 2 * math.pi / 128 )
amplitude = 10000
# BUILD THE DATA
dataToWrite = []
for frequencyBin in range(128):
for component in range (25):
dataToWrite.append( amplitude * math.sin( teta[frequencyBin] * component ) )
# WRITE THE DATA
print len(dataToWrite)
RMAPPlugin0.Write( matrixF0_Address0, dataToWrite )