05-02-2013 07:36 AM
Hello,
I was looking for some help with this. I have had issues in the past with placing arrays into an ActiveX Variant and found that ActiveX variants are not the same as LabView variants. I am tring to place a 0 or a 2 into Property input which is variant type. At this moment, it does not work. My guess is that the activex variant isn't handling the input well. I may be wrong, but my intuition say this is my issue. Does anyone have a way to deal with this? Here is NI's response to the issue.
Thank You for your responses.
-=-=-=-=
Hi Chuck,
I was able to talk to R&D and it looks like there is not necessarily a
simple or new way to handle ActiveX Variant data in LabVIEW. From a previous
issue I found, the engineer had worked with R&D and said:
"Use the 'Database Variant to Data' VI instead of the 'Variant to Data' VI
While the name may be misleading, the Database Variant datatype is the same
datatype as the ActiveX Variant. The native LabVIEW Variant is different from
the ActiveX and Database Variant datatypes."
The customer in that case had a few issues using this VI, though, so it may
also not help your implementation either; there also is not a "Data to
Database Variant" function that I am aware of. Furthermore, I understand
that this VI is the same direction of dataflow as RolfK's example. As far as
the "Data to ActiveX Variant" implementation, R&D said that it
would have to be implemented the same way that Rolf has made his VIs. The
R&D engineers referenced the following example, which is also linked by
"lvb" in the LAVA forum post:
NI Community: Dereferencing Pointers from C/C++ DLLs in LabVIEW
https://decibel.ni.com/content/docs/DOC-9091
Finally, I did find a post in the LabVIEW idea exchange, which I believe was
started by "lvb" on the LAVA forum you found. If you are not familiar
with the Idea Exchange, it is where LabVIEW users can propose and
"Kudos" (or vote) for ideas that they wish would be implemented in
LabVIEW. While this does not guarantee that a feature will be in a future
version of LabVIEW, it does more effectively put it on NI R&D's radar.
LabVIEW Idea Exchange: Support OLE Variant or ActiveX Variant Type Access
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Support-OLE-Variant-or-ActiveX-Variant-Type-Access/idi...
05-02-2013 12:27 PM
appears it is okay to wire directly like that. I found examples with I16 wired straight to property input. Must be the resister I am writing to isn't work like it should.