NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get parameter container of costum step type withe labview Api

Hello

I want to read and write  parameter of costum step type  programmatically whith api. I use getval and setval for number and string.

the setval it work

but the getval does'nt wort : Error -17308 occurred at Expected String, found Number. 

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-17308) or for its hexadecimal representation (0xFFFFBC64).

 

my question How to get and set a parameter of container ??

 

thanks

 

 

0 Kudos
Message 1 of 4
(2,658 Views)

Hi,

 

Could you please describe more your application and provide your code ? With your error code it seems to me that your are putting the wrong data type "Expected String, found Number"

 

Under the TestStand palette in LabVIEW you have Get Property value.vi and Set Property value.vi, maybe you can try with these ones,

 

🙂

0 Kudos
Message 2 of 4
(2,631 Views)

Hi,

yes is that, I realized that yesterday.

Now i look to get parameter of array with activex Api. Have you any idea?

 

example of array

DataStep : Container, type définition

      |__DATA    :   Array of Acquis[0...empty]

                   |__Acquis  : container, type definition

                           |__ Channel           : string

                           |__ Type : Number

Thanks

0 Kudos
Message 3 of 4
(2,629 Views)

Hi,

I use GetValString Methode to get jut one elemnets.

DataStep.DATA[0].Channel to get the first element.

How to get all elements of array?

thanks

 

0 Kudos
Message 4 of 4
(2,628 Views)