NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Access elements of an array passed as Object Reference

Solved!
Go to solution

Hi,

 

If you have access to the assembley.

It is possible to use system.double[] instead system.array[]

If yes TS directly writes into a numeric array.

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 11 of 16
(2,415 Views)

Hi.

 

Just take a look at this stuff, added to NI-Example Comupter

 

Regards

 

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 12 of 16
(2,414 Views)

I reallty appreciate you help !

 

I understand that example.

I stiil need to comprehend how to get hold the properties of an array of objects.

 

My source code is attached.

 

I "call" class.test(.....) from TestStand, and get an reference to "PP" back (array of objects containing 2 properties (frequency and signallevel). 

 

"PP":

 

[0]

Frequency = 12345

Signal = 123465

[1]

Frequency = 12345

Signal = 123465

 

.....

Download All
0 Kudos
Message 13 of 16
(2,406 Views)

Hi,

 

at the  moment i had no time to analyse your code

BTW. I have updated my example to system.array

 

Enjoy

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 14 of 16
(2,395 Views)

Hi,

 

 i have updated my example to your Class Peak.

the sequence file shows how to access the properties of Peak.

 

regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
Message 15 of 16
(2,377 Views)

Hi j_dodek

 

thank you so much for your help.

It's working now.... super cool.

 

br

Nikolaj

0 Kudos
Message 16 of 16
(2,347 Views)