From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control instrument

Hello everybody,

I am a beginner in labview and I have to control an E5071C vector network analyzer with a lightwave component HP8702A and an itest voltage supply. I don't know how I can control several labview instruments in the same program. Can someone send me a sample program that allows you to drive multiple instruments at the same time? and would you have the driver for HP 5071C and BE2101.

0 Kudos
Message 1 of 8
(2,318 Views)

Hi faamar,

 

place each device communication into its own loop (or even VI). Call those loops/VIs in parallel…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(2,298 Views)

@faamar wrote: and would you have the driver for HP 5071C and BE2101.

Meet the Instrument Driver Network (IDNet)

Agilent ENA Series Analyzer (E5071C)

 

You could also contact the manufacturer to see if they have anything.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 8
(2,277 Views)

have you an exemple of programme to control different instrument in the same VI.

0 Kudos
Message 4 of 8
(2,268 Views)

If you have the code for each instrument individually working then put the code from each instrument separately into one vi. Have you reviewed the training materials at the top of this board? They are valuable in helping you to get a jumpstart on LabVIEW programming.

0 Kudos
Message 5 of 8
(2,263 Views)

I might suggest rather than taking 2 (3) separately working VIs (which you may or may not have yet...) you instead try to work out what you want to do with the combination of devices.

Build an application that uses each of the devices in combination appropriately.

 

Of course, simpler VIs for a single instrument are important for testing, and can if written helpfully also be a part of your complete solution, but I've seen several VIs that are just multiple VIs copy-pasted into a single VI that become increasingly unworkable and unmaintainable. Don't start with this as your goal!


GCentral
Message 6 of 8
(2,206 Views)

@cbutcher wrote:

I might suggest rather than taking 2 (3) separately working VIs (which you may or may not have yet...) you instead try to work out what you want to do with the combination of devices.

Build an application that uses each of the devices in combination appropriately.

 

Of course, simpler VIs for a single instrument are important for testing, and can if written helpfully also be a part of your complete solution, but I've seen several VIs that are just multiple VIs copy-pasted into a single VI that become increasingly unworkable and unmaintainable. Don't start with this as your goal!


I agree with this in principle. My suggestion was really more about getting an understanding of how the two instruments could run in parallel. With that understanding it should be easier to design the code.

0 Kudos
Message 7 of 8
(2,194 Views)

@johntrich1971 wrote:

@cbutcher wrote:

I might suggest rather than taking 2 (3) separately working VIs (which you may or may not have yet...) you instead try to work out what you want to do with the combination of devices.

Build an application that uses each of the devices in combination appropriately.

 

Of course, simpler VIs for a single instrument are important for testing, and can if written helpfully also be a part of your complete solution, but I've seen several VIs that are just multiple VIs copy-pasted into a single VI that become increasingly unworkable and unmaintainable. Don't start with this as your goal!


I agree with this in principle. My suggestion was really more about getting an understanding of how the two instruments could run in parallel. With that understanding it should be easier to design the code.


Of course! I just wanted to point it out before someone (perhaps the OP, perhaps someone else) read this and proceeded to copy-paste their 2..N VIs together, then when discussing it later with their colleague/supervisor/employer, say "but I was told to do this on the forums by ...".

 

It can be difficult later to explain to the next person who inherits the code from someone who has by then left why they should really consider trying to separate things out again (the example I'm thinking of had a tab control and 3 literally separate operations on the 3 tabs, with no relation between them...)


GCentral
Message 8 of 8
(2,189 Views)