LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Managing multiple dotnet references for parallel testing

Hi, I'm currently developping a solution to test boards in parallel (up to 9). Most of the tests are selftest but I need to communicate with the boards to tell the tests to run and get the results.

I use a .NET communication dll for that and currently I managed to make the communication work with a single board.

I'm managing the dotnet reference with a FGV and there is only one reference to manage for the moment but I guess if I want to do parallel testing I should manage an array of dotnet references?

 

Here is what I tried in my FGV :

Setting the reference :

caenem_1-1749307525456.png

I Instanciate as much objects as boards to test which leads to the array of dotnet references.

 

Then, getting the reference by using the board position :

caenem_2-1749307606943.png

 

And lastly, closing the reference :

caenem_3-1749307681934.png

 

I haven't tested the code since it's the week-end but am I on the good way?

0 Kudos
Message 1 of 7
(324 Views)

Your close closes only the one instance at position but overwrite then all refs.

 

 

Actor Framework
0 Kudos
Message 2 of 7
(260 Views)

Hi, thanks for your reply.

Yes that was dumb.

So right after I close the reference at the position, I delete the element in the array and pass the new array in the shift register.

0 Kudos
Message 3 of 7
(247 Views)

Hi  caenem
Have you tested your application? Does it work as expected?

0 Kudos
Message 4 of 7
(238 Views)

Hi, no I haven't tried yet.

But the FGV is not on point for the moment and I realized that the solution I came up with in my previous message is incredibly stupid and won't work so I'm still working on a solution.

0 Kudos
Message 5 of 7
(231 Views)

So for the Close, here is something I think is better:

caenem_0-1749464022165.png

Once the ref has been closed, the array is updated with a dummy reference at the index of the closed ref and the rest of the refs are unchanged and at the same index

0 Kudos
Message 6 of 7
(223 Views)

caenem If you want to return to the default value for Array, you can try this version, and use this For loop in the Close case, or if it's not necessary to keep values in Array, you can change the tunnel mode, as shown in the 2nd screenshot

Array to default value.png

Tunnel mode.png

0 Kudos
Message 7 of 7
(211 Views)