Hi,
I am very new to the CR3000 and am trying to set up a program that will allow me to read several strain gauges. I would like to be able to manually change the offset parameters in the BrFull command by using the external display. Can someone help me with this? Thanks!
Adam
Adam,
Most users just make the offset a Public variable. Then you can change it through the Public table access of the default menu structure.
PreserveVariables 'Optional
Public Mult(3) = {1,1,1} 'initialize
Public Off(3) 'leave as zeros
Public Dest(3)
BeginProg
Scan (1,Sec,0,0)
BrFull (Dest,3,mV1000,1,Vx1,1,2500,True ,True ,0,250,Mult,Off)
NextScan
EndProg
You can use Custom Menus to customize your configuration experience.
PreserveVariables 'Optional
Public Mult(3) = {1,1,1} 'initialize
Public Off(3) 'leave as zeros
Public Dest(3)
DisplayMenu ("CONIFG",-2)
DisplayValue ("Offset 1",Off(1))
DisplayValue ("Offset 2",Off(2))
DisplayValue ("Offset 3",Off(3))
EndMenu
BeginProg
Scan (1,Sec,0,0)
BrFull (Dest,3,mV1000,1,Vx1,1,2500,True ,True ,0,250,Mult,Off)
NextScan
EndProg
http://www.campbellsci.com/forum/messages.cfm?threadid=27AA469B-937C-295F-816398BD37A31795
You could also use a ConstTable, allowing you to edit the values through both the keypad and remotely through a terminal.
ConstTable
Const Off1 = 2.1
Const Off2 = 3.1
Const Off3 = 4.3
EndConstTable
Public Mult(3) = {1.0, 1.2, 1.1}
Dim Off(3) = {Off1, Off2, Off3} 'constrain editing to ConstTable
ReadOnly Off 'constrain editing to ConstTable
Public Dest(3)
BeginProg
Scan (1,Sec,0,0)
BrFull (Dest,3,mV1000,1,Vx1,1,2500,True ,True ,0,250,Mult,Off)
NextScan
EndProg
http://www.campbellsci.com/forum/messages.cfm?threadid=86497A6B-ABA6-C8F9-D26A880D7AE6623D
That's exactly what I was looking for. Thanks for the help Sam.
Just curious, which method best fit your need? Public variables in a the standard menu? Custom menu? Or ConstTable?
Another method for removing the offset from your strain measurements is to use the Straincalc instruction in conjunction with the FieldCalStrain instruction.
I think I'm going to go with the Public variables, simply because I can change them from the PC200w software very easily as well as from the keypad. I may just keep the standard menu, but I will probably play around with it a little to see what fits my needs best.
I can change the constants pretty easily from the terminal emulator also, but it doesn't seem to give me the option to change the number of significant figures that I'm looking for.