LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I turn off some of the instruments in the vi

       I am developing a LabVIEW (7.1) vi that will run automated test on DC to DC converter circuits.  There are many different tests I will run inside the vi but several are not needed every time I run the vi.  For example I have a frequency counter connected but in some test I do not need to record the frequency.  What is  the best way to “turn off” the frequency counter so LabVIEW will not waste time read and logging the data in the excel file?

 

Thanks,

Gary

0 Kudos
Message 1 of 4
(2,612 Views)
Gary,

The "best" way will depend on many factors, including what criteria you use to define "best." Philosophy out of the way, here is my suggestion: Use a state machine architecture for your system. In the setup or configuration section the user (or a config file) selects which tests to run and sets parameters for the tests. This set of tests and test parameters is then fed to the operations section of the program, where the tests are run, data recorded, etc. There are examples of state machines included with LV and much information in the archives.

Lynn
0 Kudos
Message 2 of 4
(2,606 Views)
There are a lot ow ways to handle this. For the ultimate in flexibility and power, I would suggest you look at TestStand. This is an excellent test manager. If you want to go your own route, one thing you can do is break your test into subtests. Instead of one large test that does several setups and diffreent measurements, make each setup and measurement separate. Then you can load a file based on serial number/product id that has a list of tests to perform, i.e. test1, test3, test4, test7, etc. Either of the two shipping examples on test managers (Test Sequencer and State Machine Test Sequencer) can be modified to run only those tests that are contained in the file. Another way could be to load a file with all tests listed but additional columns for subtests to be performed or not performed. In your program, put the optional tests inside case statements that are wired to the Boolean values read from the file.
0 Kudos
Message 3 of 4
(2,602 Views)
Hi Gary,

I also have to develop a test setup for testing of DC-DC converters. I was wondering of you could provide me the labview code so that I can have a starting point. Thanks
0 Kudos
Message 4 of 4
(2,445 Views)