I've written a little routine that measures voltage from a potentiostat that has 2 outputs from it:
1. Output with Gain control 2. Output without Gain control My routine measures the voltage (current) until the current reaches a specific value then performs an output to the potentiostat. Now the output current from the potentiostat is very low, so I have to use the gain output. My routine is comprised of 2 nested loops: 1. Switches the potentiostat output x amount of times i.e. between high current and low current. 2. Records the input using AI-Single Scan until specified current is reached. I've tried to include some sort of case structure in my second loop that changes the channel for the AI-Single Scan but it seems that it doesn't change at all. Any ideas? Cheers, Paul