NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

PostUIMessageEx

Hi, 

I've managed to send my message by PostUIMessageEx from TS sequence and handle it in my OI. 

Is it way to send same message from within C# dll?

I'm trying to do following but not succseeded 

 

public void MyTest(SequenceContext seqContext, out bool result, out String reportText, out bool errorOccurred, out int errorCode, out String errorMsg)
{

 

}

0 Kudos
Message 1 of 2
(3,026 Views)

I don't know how to handle this in C#, but it should be something like SequenceContext.Thread.PostUIMessageEx(eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous), where eventCode is I32, numericDataParam is a double, stringDataParam is a string, activeXDataParam is a variant, and synchronous is a boolean.

 

Pulido Technologies LLC

 

 

0 Kudos
Message 2 of 2
(3,010 Views)