LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use activex

Hello all,
i'd like to use an activex component in Labview (exactly GPSTookKit, a
manager of NMEA protocol to retrieve Latitude and Longitude) ; it works well
in Visual Basic environment but when I use it in Labview the automatic
property settings requires me to input parameter as Variant, where Visual
Basic requires just a string
For istance, to open a connection on COM1 the sintax is:

object.Open (string)
where string is just "COM1"

In Labview the method Open requires a Variant(???) and not a string 😞
How to get the equivalent inputs in LAbview environment??

Thanks


0 Kudos
Message 1 of 2
(2,548 Views)

Sometimes, you can just wire the string into that input and it will work.

Or use the To Variant element which in LabVIEW 8 is under Connectivity -> ActiveX

0 Kudos
Message 2 of 2
(2,543 Views)