LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Taking measurements from multiple devices

Hi,
I am trying to take measurements from one thickness monitor (Maxtek TM-400) and two vacuum gauge controller (Granville-Phillips 307). I have written two codes, which independently take measurements from those devices. Now I want a program, which would take all those measurements and record into one file. What is the best way to do it? If I just paste one diagram onto another, the result is a total mess. Representing two codes as subVIs is impossible, since both of them contain too many blocks. If anyone has ideas on what is the best way to solve this problem, please let me know. I am posting the two VIs below.
Thanks,
Tony
😃
Download All
0 Kudos
Message 1 of 2
(2,973 Views)
 

What size monitor do you have? Smiley Surprised Diagrams should be sized so that they fit on one screen,

I don't think there is a real quick way to accomplish what you want. Each of your two VI are inside a while loop that is stopped with a front panel Boolean. I think what you should do is strip down your programs to a few functions that read and write to the instruments. Then you can put those functions in a new main that calls these subVIs in parallel. The new main would have all of your timing and logging functions. As a model for your new subVIs, you should look at how instrument drivers are written. There are guidelines at https://www.ni.com/en/support/downloads/instrument-drivers/tools-resources/instrument-driver-guideli....

This will also give you an oppurtunity to clean up your wiring. You wired going in every possible direction and some are hidden. With correct wiring and use of the error in/error out connections, you can also eliminate all of those sequence structures. They just serve to make your code hard to read. Have you read the style guidelines that ship with LabVIEW?

0 Kudos
Message 2 of 2
(2,958 Views)