Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Scan interval too short


Patrik95 Aug 12, 2021 07:57 AM

Hello.
I am currently trying to configure the CR1000X.
I would like to make the following measurement:
5 different voltages are to be measured at 5 single ends inputs. This measurement should happen every 100ms and should be saved in 100ms, 1sec (avg) and 10sec (avg) interval.

With my code the following error occurs:

line 90: Scan interval too short for measurement by 151 mSec.

I tried to run it in SequentialMode, but then it skips too many scans.

--------------------------------------

BeginProg
'Main Scan
Scan(100,mSec,4,0)
'Default CR1000X Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default CR1000X Datalogger Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,50)
'Generic Single-Ended Voltage measurements 'H1_P_Volt'
VoltSe(H1_P_Volt,1,mV5000,1,True,500,50,1,0)
'Generic Single-Ended Voltage measurements 'H2_Blatt_Volt'
VoltSe(H2_Blatt_Volt,1,mV5000,3,True,500,50,1,0)
'Generic Single-Ended Voltage measurements 'H3_WG_Volt'
VoltSe(H3_WG_Volt,1,mV5000,5,True,500,50,1,0)
'Generic Single-Ended Voltage measurements 'H4_Dreh_Volt'
VoltSe(H4_Dreh_Volt,1,mV5000,7,True,500,50,1,0)
'Generic Single-Ended Voltage measurements 'H5_Gon_Volt'
VoltSe(H5_Gon_Volt,1,mV5000,9,True,500,50,1,0)
'Call Data Tables and Store Data
CallTable Sekunden_10
CallTable Sekunden_1
CallTable Millisekunden_100
NextScan
EndProg

--------------------------------------

Is it possible to fix this problem and run this measurement?


aks Aug 12, 2021 05:22 PM

Your minimum scan interval has to be greater than 251 ms. As all measurements require this much time, the way your instructions are written.

With f_notch of 50 Hz, in your voltse instruction, each measurement is  integrated for 20 ms, then we have 500 uS pof settling time, and some setup setup time for the measurement. All this requires more time than 100 mS. If you change your fnotch to some higher frquency, it should work.

You can also save some measurement  time by setting MeasOff parameter to false.


Patrik95 Aug 13, 2021 09:29 AM

Solved. Thank you very much!


ZooKeeper Aug 13, 2021 01:13 PM

If 100ms is required, change the VoltSE measurement offset to false and change the temperature measurement fnotch to 15000. That will get you a long way toward that goal.

Log in or register to post/reply in the forum.