NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Boolean to C# .Net Assembly

Hi All,

 

We are attempting to modify the value of a Boolean that has been passed to a C# .Net code module.  We require any change to the Boolean by the calling sequence be reflected within the .Net module.  We also require any changes to the Boolean made with the .Net module be reflected in the calling sequence.  However, we are only able to see the changes one way, when the .Net module changes the value.  We cannot see the change made by the calling sequence.

 

The parameter is passed by reference to the code module and the code module parameter has the "ref" keyword applied.

 

How are we able to achieve this?  Thanks for your assistance.

Regards

John

0 Kudos
Message 1 of 4
(327 Views)

What’s your strategy for avoiding race conditions?

0 Kudos
Message 2 of 4
(283 Views)

Hi Oli_Wachno,

 

We're not anticipating any issues in that respect as the application is not critical.  Essentially we are making a hardware monitor to assist in sequence development.  We're recording any output assertions and input measurements made in StationGlobals and retrieving them for display on a form via SequenceContext.  We are only concerned with the values when we hit a beak point when debugging a calling sequence.

 

John

0 Kudos
Message 3 of 4
(260 Views)

Attach an example. It's strange that the change works in one direction IMHO.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 4 of 4
(224 Views)