LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding measurement for 2nd power sensor

Solved!
Go to solution

Hello,

 

I have an manufacturer VI for measuring power on the Boonton 4000 series power sensor.  The VI is set up to find the resources connected (via USB) and then select the 1st one in the returned array and then initiate a measurement and to read the measurement and close.  I am having trouble adding the 2nd sensor, one for forward power and one for the reverse power.  It seems to me that I would take the same structure and just apply the same process to the index from the find resources node.  It is detecting and showing both of the power sensors, but only one is returning values.  My guess is that these two processes are stepping on each other somewhere.  Do I need to bundle these together and then unbundle them after the read function?  What is the strategy for running the same acquisition on both power sensors simultaneously?

 

I have attached the sample VI for reference.

 

Thanks!

0 Kudos
Message 1 of 3
(190 Views)
Solution
Accepted by topic author wwjacobd

Hi jacob,

 


@wwjacobd wrote:

It seems to me that I would take the same structure and just apply the same process to the index from the find resources node.  It is detecting and showing both of the power sensors, but only one is returning values.  My guess is that these two processes are stepping on each other somewhere.  Do I need to bundle these together and then unbundle them after the read function?  What is the strategy for running the same acquisition on both power sensors simultaneously?


This is how your VI looks like without the needed driver installed:

  • When you want to communicate with the 2nd device then you just need to enlarge the IndexArray function to get the 2nd element.
  • When you want to communicate with both then you need to run (atleast) init, read, close in parallel.
  • Depending on the internal behaviour of those subVIs you cannot run them in parallel, so you culd talk to your sensors one after the other…
Best regards,
GerdW


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

Thank you!  I wasn't even aware that the index array function could be expanded and that seems to have been the culprit.

0 Kudos
Message 3 of 3
(121 Views)