LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupt generation and register handling in CVI

We are having NI CVI 5.0.1. We are trying to develop the drivers for NI 6014 card in win3.11 OS as the drivers for win3.11 is not availible by NI. In the same regard, writing data to registers like ax,bx,cx,dx, flags is required. In
borland C, the data can be written to registers through _AX,_BX, _CX, _DX,_FLAGS, which is included in dos.h. But, the same code in NI CVI gives error

undeclared identifier _AX,_BX, _CX, _DX,_FLAGS

Also, dos.h header file is not present in NI CVI.

Secondly, the generate interrupt function present in borland C is also not availaible in NI CVI.

Kindly suggest if it is possible to perform the above two operations in CVI 5.0.1 version i.e, generating interrupts and accessing registers.
0 Kudos
Message 1 of 2
(2,896 Views)
CVI is not designed to develop drivers, just applications. Therefore, you can't do some kernel functions such as generate interrupts in CVI. You can read and write to and from registers using CVI's inp and outp functions. You would need the HEX address of the register.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,896 Views)