Jump to content

Set Array of Containers


lordsathish

Recommended Posts

Hi Ppl,

I have an array of clusters in LabVIEW. The cluster has two elements a boolean and a numeric. When I try to set this array of clusters from LabVIEW to TestStand using the TestStand API's I get an error that the type does not match.

To explain in detail I have an Local Array of containers with three elements. Each container element has a boolean and a numeric. I have a equivalent array of clusters in LabVIEW. In a LabVIEW action step I use the to variant node to convert the array to a cluster and use the setvaluevariant method to set the local. But it does work.

SequenceContext.AspropertyObejct.SetValueVariant(variant, "Locals.ArrayofContainers",0)

Thanks,

Sathish

This is what I'm trying to do. See the attachments.

Test.seq

test.vi

Edited by lordsathish
Link to comment

TestStand crashes whenever I try to select your test step, but I think your problem is that despite constructing the Local to match the LV type, you didn't actually create a Type for it in TestStand. Click the Create Custom Type button next to the terminal entry in TestStand and it'll walk you through the process.

Link to comment

Hey, asbo, since you reported that TestStand crashes, would you mind reposting this onto ni.com/forums so that an AE can investigate and CAR the crash? (unless upgrading to 4.2.1 fixes the crash, of course)

Whoops, I meant to mention that the patch lordsathish linked for TestStand/LabVIEW 2010 fixed the issue. No new bug here :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.