Acquisition With Multiple Instances of MeasurePrimary Software: Other NI Software>>MeasurePrimary Software Version: 2.0 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I need to perform two different tests on the same computer using Measure. Do I need to open two instances of Excel? If I want to abort one acquisition (with the 'Q' key), will this abort both tasks? Solution: If two people want to use Measure independently and at the same time (on the same computer), they will have to open two instances of Excel. The one caveat regarding this setup is that both instances of Excel will use the same instance of Measure to control their acquisitions. Thus, if one of the users presses 'Q' to interrupt his acquisition, it will stop both acquisitions. Both tasks check to see if the "quit flag" is true and if it is, they both respond to it and stop. This behavior is simply inherent to the way Excel shares its add-ins. One way to overcome this limitation is to run a repetitive task in a loop and exit the loop based on a flag variable. The value for that flag variable can be set by a command button in the sheet for example. The "Timed Acquisition DAQ Example" that gets installed with Measure (Start >> Programs >> National Instruments Measure) illustrates this idea perfectly. Remember that there are a few examples installed with Measure that may give you ideas on how to program, even if they do not deal with your particular application. Also note that National Instruments does not provide support for writing Visual Basic for Applications (VBA) code and writing Excel macros. For resources regarding these issues, please check out the Microsoft Developer's Network. Related Links: Measure Support Attachments:
Report Date: 12/06/2000 Last Updated: 12/02/2004 Document ID: 245BBODM |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
