Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling NI-hardware from Powerpoint

Is it possible to control NI-hardware (digital IO) from within a powerpoint presentation?
0 Kudos
Message 1 of 3
(3,186 Views)

Hi,

Powerpoint has support for VBA, National Instruments does not support VBA as a programming language but it is possible and there are some examples of how to do this. (Mostly for Excel, but the same principle applies to PowerPoint).
 
See attached an example that does Digital I/O from Excel using VBA using NI-DAQmx
 
Thanks,
Karsten
0 Kudos
Message 2 of 3
(3,179 Views)

Some hardware from NI does not support Visual Basic.  In these cases, I would recommend compiling an executable file from one of their C programming examples with command line options.  You can then use VBA to create a batch file which passes arguments that are setup in the user interface from Excel, for example, and call a dos prompt which will execute this batch file.  I don't know too much about how to create user interface objects in powerpoint, but I know it does have a VBA interface just like Excel.

Message 3 of 3
(2,710 Views)