Hi everyone, I'm a beginner and am trying to read in the data from a Pasco Rotary Motion Sensor (http://www.pasco.com...?TechNoteID=265) into my LabJack U3-HV
The sensor has two outputs, it pulses to an output depending on if it detects motion in one direction or another. So for example, if the sensor is moved clockwise, one of the lines will have a pulse for a set length, and if moved counter-clockwise, the other output will receive a pulse for every set length.
So if I can tally the pulses, I can effectively plot the motion. The problem is I'm very new to LabJack, and I'm using MatLab.
Any advice, or code examples you guys can recommend? I tried looking at the U3_simplestream.m but I couldn't figure out what parts of the code were necessary, and which I can omit for my purposes. I have been able to connect to the LabJack in MatLab without issue.
Am I to stream the output of the sensor and try to count? Or do I specify those channels as counters and let them do the work?
Any help would be appreciated.