AnsweredAssumed Answered

vrf C functions

Question asked by VRFuser on Apr 3, 2003
Ron...

> Can anyone show me a running VEE
> example using C functions with
> parameter passing that is similar
> to what is shown on the attached file?

Forget it. Just do whatever you have to in a dll and call it from VEE.

If you're a masochist, you can write a wrapper dll to pass the data
structures, but then you're going to be stuck manipulating data in VEE. For
those two functions I suppose it wouldn't be that big a deal, but if you
plan on setting up (beyond the ncdSetChannelParams call that is), collecting
data and analyzing in real time you'll never get away with it (unless of
course the data rate is no big deal).

The struc _VDriverConfig contains an array of VChannelConfig values. If
these values are native (like char or int or long) it would be possible to
simulate this whole thing with a VEE UDT that contains a VEE array, but the
depth of the array is variable (the unsigned char channelCount member is the
clue here) and the driver is going to expect all this memory to be
contiguous. IOW the structure is immediately followed by the data. This is
something you're not going to be able to do with VEE alone.
-SHAWN-


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes