08-07-2013 05:53 PM
I am running a list of tests from an Excel file that could be a DMM or Scope test or neither. I am creating a session of each at the beginning, setting up the device before measurement and disabling them after making a reading then set up the device before next reading. I thought this would be quicker than closing and initializing around each test. Is this an efficient way or is there a better way?
08-07-2013 05:55 PM
Can u attach your VI?
08-07-2013 06:01 PM
These are the VIs that I am using to control the DMM and Scope. They will have a lot more functions in each as the test list is developed.
08-07-2013 06:21 PM
Can u Attach the VI where u create these tests and schedule them to start?
There's no need to initialize and close them between tests. It's the same concept with Open/Close operations...
08-07-2013 06:53 PM - edited 08-07-2013 07:00 PM
Execute tests runs the list of tests. Call Required Test Steps runs through each individual test. Device is called to initialize all devices before Execute tests is called. Then they are not closed until all tests have been ran.
Maybe to clarify my question.
Here is what I do with the DMM and scope
{
init DMM, init Scope
setup DMM or scope
measure
disable
setup DMM or scope
measure
disable
//(repeat these three steps as many times as needed)
Close DMM and Scope.
}
I disable so that the DMM isn't still reading Ohms when a voltage is connected, etc
I am just wondering if this is efficient
08-08-2013 02:08 AM
Depending on your needs I would think of expanding your DMM/Scope vis to a stand alone queue controlled state MC. Your master application load and start it, and it will run independly in the background.
Use named queues for input and output, when these names are set in the fist call, you can even run multiple instances of various DUT with your master.
08-08-2013 06:04 AM
Henrik,
Each step might also have a "special instruction" (like connect a resistor) and the input and output might be programming a connected device via ssh. I need to ensure that each step is run synchronously, perform "special instructions", connect switch matrix, setup power source, setup measuring device, measure, disable power source, disable device, disconnect switch matrix, and repeat. I would have to interconnect the queues to ensure proper order so is there still benefit to it? I am relatively new so I appreciate the feedback.