William Gagne Posted April 16, 2009 Report Share Posted April 16, 2009 Hey Guys & Gals, Fairly new to the Labview ActiveX tools... I have a 3rd party API [x.dll] I am duplicating some VB.net code [and adding other features] in Labview... I create a reference [Automation Open], access the parameters via Invoke Node, most of the parameters are double integers, and work fine. A couple parameters [in .net] are system.array of doubles. In the invoke node, they show up as variants... I try to take the LabView array of double, "to variant" or coerced, neither method properly get the data table into the api... any ideas? Thanks in advance, Bill Quote Link to comment
Anders Björk Posted April 17, 2009 Report Share Posted April 17, 2009 I had some similar problems the solution was to use "Variant to data" with no type wired! ... maybe it works for your problem as well. Quote Link to comment
2and4 Posted April 20, 2009 Report Share Posted April 20, 2009 I've had this problem. Take a look at the attached picture. My ActiveX server was a LabVIEW EXE and so was my ActiveX client (the shown VI). In your case your ActiveX server will be your API and your ActiveX client is your VI. I had to do what is shown in the attached picture to solve my problem. I thought that paramVals was a 2-D array, but it turned out it was a variant which itself contained a 1D array of variants. Each of the 1D arrays in turn contained a 1D array of variants. It took a lot of digging around in documentation to figure this out. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.