Hi everyone,
I'm trying to write a CR1000 programm to inhibit my ISCO auto-sampler. I have a pressure transducer connected to my CR1000 and I have programmed the ISCO sampler internaly and I want this program to run only once a certain waterIevel is reached (0.5m). The sampler should be inhibited again once the waterlevel falls under another value (0.2m). I know that I have to set a port high or low but as I have two different values I'm a bit confused how to program this.
Thanks for all your inputs.
Hi
this is an simple example;
If waterLevel > 0.5 Then PortSet (1 ,1 ) 'enable the sampler
If waterLevel < 0.2 Then PortSet (1 ,0 ) 'inhibit the sampler
or
If waterLevel < 0.2 Then PortSet (1 ,1 ) 'inhibit the sampler
If waterLevel > 0.5 Then PortSet (1 ,0 ) 'enable the sampler
depends how the sampler logic interprets the high or low port C1 (in my example)
Smile