04-28-2008 11:35 AM
04-28-2008 01:28 PM
04-28-2008 03:49 PM
The prototype that the Call Library Function node is showing me after configuaration looks like this:
unsigned long AcqRecordRead(unsigned long HChannel, unsigned long RecCount, void *RecordBuff, unsigned long *BuffTotal);
Hchannel is a handle that is acquired from a previous function.
RecCount tells the function how many records to return - presumably it's the number of elements in the output array.
pRecordBuff is the pointer to the array of structures of three uint32s that is the actual data that I'm trying to acquire. It's being input as 'adapt to type'.
pBuffTotal is the number of records actually returned by the function (the length of the array pRecordBuff points to). During all of my experimentation, I've never seen this output exceed zero (sigh).
See anything obviously wrong?
Thanks,
Tim
04-28-2008 04:05 PM - edited 04-28-2008 04:06 PM
04-29-2008 08:34 AM
Yeesh. Turned out to be a hardware problem. The test transmitter I'm using defaults to a different speed than the reciever I'm programming.
I probably wouldn't have checked that without your input...instead I'd be banging my head against a C++ command line and pestering people needlessly about wrappers and declspecs. Thanks.