From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

6323 setting analog input read priority

Hi NI Community,

Not sure if this is the right place to start.  But, someone must have had a similar issue.

 

We are using C#  (I know this is C++, but close enough at this point)  to talk to our NI 6323 board.  

We have two analog inputs that need to be read.  (No problem setting that up.)

Here  are the inputs:

static private Task SensorInput;   //needs to be read 10,000 per second

static private Task InputVoltage;    //needs input every 2 seconds

 

reader = new AnalogMultiChannelReader(SensorInput.Stream);
data = reader.ReadWaveform(10,000);

 

Trouble is we need the "InputVoltage" to be read every two seconds and it sometimes gets "locked out" by the 10,000 samples per second stream going on for the "SensorInput"

 

Is there a way to raise the "priority" of the InputVoltage task so that it always reads a value.  Often we only get the exception NationalInstruments.DAQmx.DaqException: The specified resource is reserved. The operation could not be completed as specified.

 

Brian

0 Kudos
Message 1 of 1
(2,869 Views)