Skip to content

Commit d051fdc

Browse files
committed
Merge branch 'dev'
2 parents d13464b + 27042f3 commit d051fdc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

code/+vidrio/+AI/hardwareContinuousVoltage.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@
2525
%
2626
% Also see:
2727
% Vidrio example: dabs.ni.daqmx.demos.AnalogInput.Voltage_Continuous_Input
28-
% The following two examples are similar but use a callback function to plot the data
28+
% The following examples are similar but use a callback function to plot the data:
2929
% TMW DAQ Toolbox example: daqtoolbox.AI.analogInput_Continuous
3030
% ANSI C: DAQmx_ANSI_C_examples/AI/ContAcq-IntClk.c
31+
% vidrio.AI.hardwareContinuousVoltageWithCallBack
3132
% PyDAQmx: https://pythonhosted.org/PyDAQmx/callback.html
3233

3334

@@ -76,7 +77,7 @@
7677
hTask.start
7778

7879

79-
fprintf('Recoding data on %s. Hit ctrl-C to stop.\n', devName);
80+
fprintf('Recording data on %s. Hit ctrl-C to stop.\n', devName);
8081
clf
8182
while 1
8283
% readAnalogData returns once 500 samples have been acquired or the 5 second timeout is reached

code/+vidrio/+AI/hardwareContinuousVoltageWithCallBack.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
% Parameters for the acquisition (device and channels)
31-
devName = 'scan'; % the name of the DAQ device as shown in MAX
31+
devName = 'Dev1'; % the name of the DAQ device as shown in MAX
3232
taskName = 'hardAI'; % A string that will provide a label for the task
3333
physicalChannels = 0:3; % A scalar or an array with the channel numbers
3434
minVoltage = -0.5; % Channel input range minimum

code/+vidrio/+AO/hardwareFiniteVoltage.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
sampleRate = 1000; % Sample Rate in Hz
5555

5656
% Build one cycle of a sine wave to play through the AO line (note the transpose)
57-
waveForm=sin(linspace(-pi,pi, sampleRate))';
57+
waveForm = sin(linspace(-pi,pi, sampleRate))';
5858
numSamplesPerChannel = length(waveForm) ; % The number of samples to be stored in the buffer per channel
5959

6060

0 commit comments

Comments
 (0)