NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple access station globals

I have written a TS UI, where I registered a UserMessage event. I pass a station global through the ActiveXDataParam as property object. In the UserMessage callback I just read the station global and writhe its values to the UI's indicators. I'm not sure, whether this has an influence to my problem.

 

The problem is,when I try to write the station global values in another code module, which is an engine, started in the Process Setup Callback in my process model. I pass the same property object reference to this module (labview VI), and I try to write new values in the station global on triggered events. In this code module, I get an error code 1 from any attempt to call any method of the property object, as GetValString, GetNumSubProperties etc.

 

If I run my Test UUTs from the sequence editor, I don't get this error, so I access the station globals always without error. The error occures only if I run it from my UI.

 

I would appriciate any ideas and hints to overcome this problem.

 

 

0 Kudos
Message 1 of 5
(3,941 Views)

I think we would need to know more details or look at the code for what exactly you are doing in Process Setup. Most likely the reference isn't correctly being passed in your UI. Perhaps the UI is on a different machine where the globals have not yet been created? Not sure what error code 1 is. Perhaps that's a labview error. Have you tried stepping through the code to make sure it's doing what you expected?

 

-Doug

0 Kudos
Message 2 of 5
(3,929 Views)

Hello Madottati, 

 

do you still have the problem

or have you found a solution in the mean time?

could you please give us a short feedback. 

 

Thanks a lot. 

Andreas K 

NI Germany

0 Kudos
Message 3 of 5
(3,862 Views)

Hi Andreas,

 

I have solved the problem! The problem was the way how I pass the TS SequenceContext to my engine.

 

Madottati

0 Kudos
Message 4 of 5
(3,854 Views)

Hi Madottati,

 

ah. Fine that you solved it. 
Thanks a lot for your answer. 

Have a nicd day.

 

Andreas K

NI Germany

0 Kudos
Message 5 of 5
(3,852 Views)