G.1.9, 50 hz measurement example — one cdm-vw305, eight, Appendix g. crbasic program library – Campbell Scientific CDM-VW300 Series Dynamic Vibrating-Wire Analyzer System User Manual
Page 106: G-14

Appendix G. CRBasic Program Library
G.1.9 50 Hz Measurement Example — One CDM-VW305, Eight
'===RFH-50HzExample8Ch_4-25-13.CR3===
'CDM-VW305 vibrating-wire analyzer
'Program to read 50-Hz dynamic data from one CDM-VW305 analyzer measuring eight channels.
'Demonstrate use of rainflow histogram.
'IMPORTANT -- Ensure that the CPI address coded on the following line matches the address
'reported for the attached analyzer in the DevConfig or DVWTool software.
'<<<<<<<<<<<<<<SET CPI ADDRESS HERE
'Rainflow : Mean Bins and Amplitude Bins dimensions
'Rainflow-Histogram Outputs - 2 dimensional arrays
{ 0.002, 0.002, 0.002, 0.002, 0.002, 0.002, 0.002, 0.002}
{ 300, 300, 300, 300, 300, 300, 300, 300}
{ 6000, 6000, 6000, 6000, 6000, 6000, 6000, 6000}
{ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0}
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
{ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
'Rainflow-Histogram configuration
{ MBINS, MBINS, MBINS, MBINS, MBINS, MBINS, MBINS, MBINS}
{ ABINS, ABINS, ABINS, ABINS, ABINS, ABINS, ABINS, ABINS}
{ 400.0, 400.0, 400.0, 400.0, 400.0, 400.0, 400.0, 400.0}
{4000.0,4000.0,4000.0,4000.0,4000.0,4000.0,4000.0,4000.0}
'
Limit
{ 0.005, 0.005, 0.005, 0.005, 0.005, 0.005, 0.005, 0.005}
'Output format consists of three digits ABC, that can be either 1 or 0
{ 110, 110, 110, 110, 110, 110, 110, 110}
'RF Histogram Digit Code Histogram output result
'----------------------- ------------------------
'A = 0 Reset histogram after each output.
'A = 1 Do not reset histogram.
'B = 0 Divide bins by total count.
'B = 1 Output total in each bin.
(1,CPI_ADDR,0,Enable(),Max_AMP(),F_Low(),F_High(), _
OutForm(),Mult(),Off(), SteinA(),SteinB(),SteinC(), _
RF_mean_bins(),RF_amp_bins(),RF_Lo_lim(), _
RF_Hi_lim(),RF_Hyst(),RF_OutForm())
G-14