I am trying to quantify the impact of the electromagnetic noise from a solenoid valve on a pH electrode that is connected to a LabJack U6. I have attempted to build a simple Faraday cage around the valve to block some of this noise and I am trying to test if it works.
I have set up a script in DAQFactory to start streaming a pH channel at 12000 Hz, start logging this pH data stream, and then turn valve on and off to observe the impact on the voltage output of the probe. I believe I am running into timing issues when logging the streamed data. I receive an error message towards the end of the script. The data still logs to the specified file, but the length of my data doesn't match what I would expect based on my scan rate. These imgur images show the script for my stream/logging, starting stream script (based onStreamOneChannel) , and the error message I receive.
I had previously changed the DAQFactory clock to use the system time by adding UserTime.dll to the DAQFactory directory. I have since deleted this, re-started the program, and still run into the same problems. '
I've also tried streaming and logging through the LJStreamUD and it worked great. But I want to be able to run a script to turn the valve on and off via the relayboard (to maintain constant time intervals) and I wasn't sure that was possible from this simple interface.
Any suggestions on how to proceed? I've also posted a similar question on the DAQFactory forum.