According the to CRBasic Help manual, we can change the SW12 ports between high and low, see this link;
https://help.campbellsci.com/CRBasic/CR300/#Instructions/sw12.htm#kanchor181
On the CR1000X, which has two SW12 ports, when using SW12(1), the response is: invalid parameter. So I tried SW12_1(1) and SW12_2(1), etc. The repsonse was: invalid, or out of place expression.
Does anyone know the correct method for setting the SW12 ports to high and low settings?
Thanks.
The code should be:
SW12 (SW12_1, 1) 'turns port SW12-1 on SW12 (SW12_2, 1) 'turns port SW12-2 on SW12 (SW12_1, 0) 'turns port SW12-1 off SW12 (SW12_2, 0) 'turns port SW12-2 off
Thank you Gary, I will give this a try in the morning! I appreciate the quick response.