Can I Start My DAQ in Measure with a Digital Trigger (Instead of a Menu Option)?Primary Software: Other NI Software>>MeasurePrimary Software Version: 1.2 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I've got a DAQ process that I want to acquire into an Excel spreadsheet using Measure. Instead of having to initiate the acquisition by selecting a Measure menu option, I'd like for the spreadsheet to automatically fill fields in the spreadsheet whenever a trigger is acquired. How can I do this? Solution: You will need to write some Visual Basic for Applications (VBA) code in order to accomplish this functionality. Using the "Worksheet_Activate()" function, you can configure your acquisition to initiate off the PFI0 (trigger) line of your DAQ board instead of the AI menu option. Please remember that National Instruments does not provide support for VBA coding in Microsoft Excel. Other than the on-line help in VBA, the best resource for VBA coding issues is the Microsoft Developer's Network. Related Links: Measure Support Measure functions in Visual Basic for Applications (VBA) Attachments:
Report Date: 12/06/2000 Last Updated: 06/18/2007 Document ID: 245ERODM |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
