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.

CR1000X sw12 settings


ggrewe Nov 12, 2018 09:39 PM

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.


GaryTRoberts Nov 13, 2018 12:29 AM

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


ggrewe Nov 13, 2018 01:49 AM

Thank you Gary, I will give this a try in the morning!  I appreciate the quick response.

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