Hey.
I am at my wits end and I feel like I have tried everything, so I hope you can help!
(I’m using USB 6009)
My issue is this:
I am doing a test where I test an analog input, then triggers a relay, then tests the same analog input, and then close the relay.
AI1 read -> AO1 “on” -> AI1 read -> AO1 “off”
The relay goes on and off as it should, and the first measurement is ALWAYS ok, the second measurement however, is not. It shows the correct result about every other time, it does vary though. When it gives a wrong result it gives the result ca. -10,25V.
This result is completely wrong, and it never actually is -10,25V. I have verified this with a scope.
This leads me to believe it is some kind of buffer/timing problem, but I simply cannot pinpoint it.
I have tried doing intricate error wiring, and clock sharing but to no avail. And now I have even resorted to sequencing (its bad, I know) It does give me the opportunity to make sure that the task is completely closed before starting the next. But still, it does the same thing.
What I cannot understand is that it is always the second reading that fails, never the fist.
I hope you will be able to point out some glaring mistake that I’ve made. (I know that in the included file, I haven’t used sample clock, but I did before it took it out, and I was the same deal)
Thanks in advance :)