Skip to content

Commit

Permalink
dasauxbit added
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvdt committed Jun 12, 2024
1 parent b6acc41 commit 9c5aa67
Show file tree
Hide file tree
Showing 28 changed files with 34 additions and 1 deletion.
Binary file modified dasT64/LPStat.mexw64
Binary file not shown.
Binary file modified dasT64/dasanalogout.mexw64
Binary file not shown.
30 changes: 30 additions & 0 deletions dasT64/dasauxbit.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#include "mex.h"
#include "DasControl.h"


void mexFunction(
int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[])
{
int Bit;
unsigned short Val;
double *Out;

/* Check for proper number of arguments */
if (nrhs != 2) {
mexErrMsgTxt("Two input arguments required.");
return;
}

Bit = (int) mxGetScalar(prhs[0]);
Val = (unsigned short ) mxGetScalar(prhs[1]);

plhs[0] = mxCreateDoubleMatrix(1, 1, mxREAL);
Out = mxGetPr(plhs[0]);

Out[0] = (double) WriteAuxport( Bit, Val);


}


Binary file added dasT64/dasauxbit.mexw64
Binary file not shown.
Binary file modified dasT64/dasbit.mexw64
Binary file not shown.
Binary file modified dasT64/dasclearword.mexw64
Binary file not shown.
Binary file modified dasT64/dasclose.mexw64
Binary file not shown.
5 changes: 4 additions & 1 deletion dasT64/dascompile64.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@
disp('dasclearword')
mex( ['-L' p ], '-lDasControl', 'dasclearword.cpp' )

disp('daspulse')
disp('dasbit')
mex( ['-L' p ], '-lDasControl', 'dasbit.cpp' )

disp('dasauxbit')
mex( ['-L' p ], '-lDasControl', 'dasauxbit.cpp' )

disp('dasjuice')
mex( ['-L' p ], '-lDasControl', 'dasjuice.cpp' )

Expand Down
Binary file modified dasT64/dasgetcursorpos.mexw64
Binary file not shown.
Binary file modified dasT64/dasgeteye.mexw64
Binary file not shown.
Binary file modified dasT64/dasgetlevel.mexw64
Binary file not shown.
Binary file modified dasT64/dasgetnoise.mexw64
Binary file not shown.
Binary file modified dasT64/dasgetposition.mexw64
Binary file not shown.
Binary file modified dasT64/dasgettrace.mexw64
Binary file not shown.
Binary file modified dasT64/dasinit.mexw64
Binary file not shown.
Binary file modified dasT64/dasjuice.mexw64
Binary file not shown.
Binary file modified dasT64/dasoffset.mexw64
Binary file not shown.
Binary file modified dasT64/daspause.mexw64
Binary file not shown.
Binary file modified dasT64/daspulse.mexw64
Binary file not shown.
Binary file modified dasT64/dasreset.mexw64
Binary file not shown.
Binary file modified dasT64/dasrotate.mexw64
Binary file not shown.
Binary file modified dasT64/dasrun.mexw64
Binary file not shown.
Binary file modified dasT64/dasscale.mexw64
Binary file not shown.
Binary file modified dasT64/dassetnoise.mexw64
Binary file not shown.
Binary file modified dasT64/dassetwindow.mexw64
Binary file not shown.
Binary file modified dasT64/dasusemouse.mexw64
Binary file not shown.
Binary file modified dasT64/dasword.mexw64
Binary file not shown.
Binary file modified dasT64/daszero.mexw64
Binary file not shown.

0 comments on commit 9c5aa67

Please sign in to comment.