LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the proper way to run a DMM and Scope back and forth continuously?

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?

0 Kudos
Message 1 of 7
(3,058 Views)

Can u attach your VI?

0 Kudos
Message 2 of 7
(3,057 Views)

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.  

Download All
0 Kudos
Message 3 of 7
(3,054 Views)

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...  

0 Kudos
Message 4 of 7
(3,033 Views)

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

Download All
0 Kudos
Message 5 of 7
(3,027 Views)

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.

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 7
(2,997 Views)

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.

0 Kudos
Message 7 of 7
(2,988 Views)