Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster to IO session conversion...not possible?

We want convert IMAQdx IOsession cluster data to an IOsession type in labview, because the IMAQdx IOsession cluster data itself is actually stored in teststand. We having trouble taking the elements of the IOsession and converting them back to the IOsession type that labview can understand and use with the new IMAQdx vision tools. I have attached an example vi which gives the error we are seeing. Yes we have posted a similar thread on the teststand forum, but this seems to be a problem with labview not being able to convert to an IMAQdx IOsession data type, so we are posting this here also. Is it possible to convert the elements of an IMAQdx IOsession (string, unsigned 32-bit int) to an IOsession data type?

BTW, we realize you can pass the iosession data directly to/from teststand by means of the specify module, but we need to access the IOsession data by sequence context because we are passing the data to a subpanel, which only has sequence context being passed in.
0 Kudos
Message 1 of 3
(3,008 Views)

david_jenkinson,

    The code you sent converts an image cluster to the image data type, but it doesn't affect the session data.  I'm assuming the data you are trying to get a hold of is the session data, correct?  The image data type and the session have the same color wire so it's easy to confuse them.  I believe the actual session is just a U32.  I would try casting the session to a U32 and storing that in TestStand.  Then try and retrieve the U32 data from TestStand and cast it back to a session data type.  Depending on your application and if you are using multiple VI's it may not work, but I would recommend trying it.  Let me know if that works for you.  Thank you.

-Allison S.

Applications Engineering

-Allison S.
Calibration Services
Product Support Engineer
0 Kudos
Message 2 of 3
(3,001 Views)
Allison,
We have this posted on the teststand forum also, and a working suggestion was posted:

http://forums.ni.com/ni/board/message?board.id=330&message.id=13659

It seems we only need the session name, not the number. Thanks for the input.

David Jenkinson
0 Kudos
Message 3 of 3
(2,995 Views)