diff --git a/set_adc.py b/set_adc.py index 8aabf0305a73eef6f9a3f7da3daadbf5b88cb9a4..ec48ff0af65d7a4d64cf18d0704b5e735a8808e9 100644 --- a/set_adc.py +++ b/set_adc.py @@ -1,11 +1,27 @@ ''' +Copyright 2021 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten, +ASTRON Netherlands Institute for Radio Astronomy +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + Set ADC ''' import sys import time sys.path.insert(0,'.') -from I2C_serial import * +import os +if os.name =="posix": + from I2C_serial_pi import * +else: + from I2C_serial import * sleep_time=0.05 CHECK_I2C_DEVICES = False diff --git a/set_adc_tm.py b/set_adc_tm.py index 4b1ff4ee5733cd740358a08b711ab39f4ee396a9..dc17bc1ba677ed6916f82b5a344eacc62b6a4d06 100644 --- a/set_adc_tm.py +++ b/set_adc_tm.py @@ -1,11 +1,27 @@ ''' -Set ADC +Copyright 2021 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten, +ASTRON Netherlands Institute for Radio Astronomy +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Test script to write single registers of RCU2_ADC ''' import sys import time sys.path.insert(0,'.') -from I2C_serial import * +import os +if os.name =="posix": + from I2C_serial_pi import * +else: + from I2C_serial import * sleep_time=0.05 CHECK_I2C_DEVICES = False diff --git a/set_clk.py b/set_clk.py index bd6da619cee65456c9b8dfbe1144a68f6b3e76ab..cb1d565c74827e77467a403309459b6206fc5266 100644 --- a/set_clk.py +++ b/set_clk.py @@ -1,11 +1,27 @@ ''' -Set ADC +Copyright 2021 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten, +ASTRON Netherlands Institute for Radio Astronomy +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Set PCC_CLK ''' import sys import time sys.path.insert(0,'.') -from I2C_serial import * +import os +if os.name =="posix": + from I2C_serial_pi import * +else: + from I2C_serial import * sleep_time=0.05 PWR_RST = False diff --git a/set_clk_tm.py b/set_clk_tm.py index eb0b02242b9ffc02c114a2fcb5eee902c275a2da..50b28a817a5f97ea1204ef3d5094177e6442aba9 100644 --- a/set_clk_tm.py +++ b/set_clk_tm.py @@ -1,11 +1,27 @@ ''' -Set ADC +Copyright 2021 Stichting Nederlandse Wetenschappelijk Onderzoek Instituten, +ASTRON Netherlands Institute for Radio Astronomy +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Test script to write single registers of PCC_CLK. ''' import sys import time sys.path.insert(0,'.') -from I2C_serial import * +import os +if os.name =="posix": + from I2C_serial_pi import * +else: + from I2C_serial import * sleep_time=0.05 PWR_RST = False