11-30-2018 08:38 AM - edited 11-30-2018 08:39 AM
Hello Everyone,
I apologize if this has been asked before but i didn't find any solution so i posted it. So my problem is as follow.
I am inserting data into Queue (Array) in Teststand and dequeue data in LabVIEW(For monitor purpose) but when i create NewpropertyObject and give Value Type as Array. it always give me null reference. For single number it work fine, to dequeue element. I have created example program that attached with this post.
Thanks
12-19-2018 10:11 AM
Hi Gab008,
In the documentation for PropertyValueTypes, it directly states "This is not a valid value for PropertyObject creation methods such as Engine.NewPropertyObject and PropertyObject.NewSubProperty", so you can't use this method this way. Instead of specifying array here, you want to specify the type the array will hold. Then, if you set the "asArray" input to true, it will generate an array of the type previously specified. Try changing the input to the NewPropertyObject call to "PropValType_Number" leaving the "asArray" input TRUE.