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.

23X -> CRBasic: maximum mean running 3-second gust


54North Nov 2, 2010 07:45 PM

Hi,

I am trying to port the below section of 23X code to a CR850. Is there a more direct way to do this in CRBasic?

Thanks,

- Brendan

*Table 1 Program
01: 1.0000 Execution Interval (seconds)

; Measure WIND SPEED

1: Pulse (P3)
1: 1 Reps
2: 1 Pulse Input Channel
3: 21 Low Level AC, Output Hz
4: 1 Loc [ WINDSPEED ]
5: 0.1024 Mult
6: 0 Offset

<<<cut>>>

; Calculation sequence for running 3-second gust

27: Block Move (P54)
1: 2 No. of Values
2: 10 First Source Loc [ GustSpd_2 ]
3: 1 Source Step
4: 9 First Destination Loc [ GustSpd_1 ]
5: 1 Destination Step

28: Z=X (P31)
1: 1 X Loc [ WINDSPEED ]
2: 11 Z Loc [ GustSpd_3 ]

29: Spatial Average (P51)
1: 3 Swath
2: 9 First Loc [ GustSpd_1 ]
3: 12 Avg Loc [ Avg3sGust ]

<<<cut>>>

; 15-Minute Output Block

41: If time is (P92)
1: 0 Minutes into a
2: 15 Minute Interval
3: 10 Set Output Flag High

<<<cut>>>

; Output 3-second gust

44: Maximum (P73)^11483
1: 1 Reps
2: 10 Value with Hr-Min
3: 12 Loc [ Avg3sGust ]


aps Nov 3, 2010 01:54 PM

Use the AvgRun instruction to calculate the average 3 second wind and in the datatable use the Maximun instruction to capture the peak value.


54North Nov 4, 2010 01:03 PM

Thanks,

I was initially lead astray by the transformer utility and trying to use the move commands.

- Brendan

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