LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Some DirectX Objects/Properties/Methods disabled in Property/Invoke - Nodes

Hi there

i want to use DirectX for Audio-IO in Full Duplex using the ActiveX-Capability of LV. But unfortunately the Methods i need are disabled, namely CreateCaptureBuffer from the DirectSoundCapture8 - Object (see attachment). I can use the Objects, Methods and so on under VB and VBA, but i don't want to write a wraper around DierectSound if i can avoid it. Does anyone got a idea?

Thanks & Greetings
Chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 1 of 7
(4,044 Views)
Hello Chris,

In general Methods are grayed out in LV when the Datatype they pass is not a "standard" type and supported in LV. So it will be tough implementing the desired functionality. I would check out Microsofts Support for Activex for some help/ideas
http://www.microsoft.com/com/tech/activex.asp
0 Kudos
Message 2 of 7
(4,045 Views)
Hello nschedlb,

thx for your answer. in the case described in my question the Datatype you mentioned is a reference to an DirectSoundCaptureBuffer8 - Object of the DxVBLibA. i can create an Automation refnum of that type (o.k., the object is not one of the "creatables" in the class), just the same as i would do in VB...

But anyway, i will write a VB - wrapper for the class.

regards
Chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 7
(4,043 Views)
Hi,
       I am creating an ActiveX application in Visual Basic that defines a number of functions I want to use in LabVIEW through the ActiveX client interface.

When I create an invoke node in LV, I can display the methods and all my functions show up in the list. But the functions that pass user-defined types (either custom types or Enum variables) are grayed out.

Is there anyway to make this work? Is this a limitation of LabVIEW or did I do something wrong in  VisualBasic?

Thanks,
    Davide
0 Kudos
Message 4 of 7
(3,882 Views)
LabVIEW can only support what are known as OLE Automation Types, which is pretty much any type that can be stored in a VARIANT.
 
This is a pretty good summary from Microsoft
 
0 Kudos
Message 5 of 7
(3,870 Views)
Thanks.

The document you reference says that Enum are valid, but that does not seem to be the case.

Davide



0 Kudos
Message 6 of 7
(3,867 Views)
I know that Enum work in some cases - I've seem them do it 🙂
 
Can you post the component or typelib? What version of LabVIEW are you using?
0 Kudos
Message 7 of 7
(3,855 Views)