Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Acquisition With Multiple Instances of Measure

Primary Software: Other NI Software>>Measure
Primary 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

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit