Recommended Posts

I am using the streaming mode to measure the frequency of a turbine flow meter. I am also trying to measure Voltage, temperature, and pressure. The sequence that I have so far for the streaming is below:

using("device.labjack")

include("c:\program files\LabJack\Drivers\labjackud.h")

ePut(0, LJ_ioPUT_AIN_RANGE, 0, LJ_rgBIP5V, 0)

ErrorHandler(0)

AddRequest(0, LJ_ioPUT_CONFIG, LJ_chSTREAM_SCAN_FREQUENCY, 1000, 0, 0)

AddRequest(0, LJ_ioCLEAR_STREAM_CHANNELS, 0, 0, 0, 0)

AddRequest(0, LJ_ioADD_STREAM_CHANNEL, 0, 0, 0, 0)

GoOne(0)

global scanrate = 0

eGet(0,LJ_ioSTART_STREAM, 0, @scanrate, 0)

Currently I can only read the voltage from the system if the streaming is stopped. Is it possible to do both simultaneously?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.