"Greg McKaskle" schrieb im Newsbeitrag
news:3D86794C.1090708@austin.rr.com...
> > Call CANapeApplication.Open(WorkingDir.Text, 0)
> > Set CANapeDevice = CANapeApplication.Devices.Add(Devicename.Text,
> > ASAP2.Text, Driver.Text, Val(Channel.Text))
> >
>
> Drop down an Automation Open node. Popoup on the to left and create a
> constant for the type. This should give you a list of the automation
> servers, the typelibs registered on the computer. In that list you
> should find CANapeApplication, or something similar.
I have tried both automation server (Application and Devices) with the open
node.
The Application part works well. I can start the application with open
methode
but the Device part returned an ERROR
( "Exc
eption occured in CANape.Devices.1, CDevices.Add() - No valid handle.
in COM_001.vi" )
I think there could be a difference between call and set -order.
Does another node than the open node exist (especially for set)?
(Set CANapeDevice = CANapeApplication.Devices.Add(Devicename.Text,)
>
> From that node, you can wire to an invoke node to select and call
> functions like Open, and you can wire it through that node to a property
> node to set properties.
>
> Greg McKaskle
>