Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-6211 for Microsoft Excel VBA

Hi! I am trying to make a program using Excel VBA to generate and acquire voltage using USB-6211. I prefer to use Excel VBA for quick analysis on the results like slope calculation. I hope anyone can help. Thank you very much.NIDAQ_USB-6211-removebg-preview.png

0 Kudos
Message 1 of 2
(838 Views)

Hi, 

 

There is a forum example that uses Excel VBA with DAQmx functions. This can be a good start to test with VBA. 

 

Using DAQmx with Microsoft Excel Visual Basic for Applications (VBA) - NI Community

 

Another approach is to refer to the available shipping examples when you installed LabVIEW with DAQmx. 

From here, you need to change the code to make it VBA like from VB.NET syntax and also recontruct the interface to match it with the shipping example.

 

Gus 
NI Technical Support

0 Kudos
Message 2 of 2
(522 Views)