05-23-2018 10:05 AM
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
05-25-2018 02:13 AM
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,
🙂
05-25-2018 03:11 AM
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
05-25-2018 03:26 AM
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