K8061 & Visual FoxPro v7

Hi Everyone,

I’m a new kid on the block and I’m having a problem.

I’m using a K8061 and I’m talking to it through an obscure programming language called Visual FoxPro (VFP) version 7. VFP is a Microsoft etc…

I can call to the K8061.DLL and retrive the parameters via a command that looks like this :

DECLARE INTEGER OpenDevice IN K8061.DLL INTEGER CardAddress
=OpenDevice(CardAddress)

This will get me a -1 when the board is on and connected and a -2 when the board isn’t there.

I only have one board connected.

How do I get the card’s address (i.e. 0)?

Thanks for any suggestions.

Michael

Hi Everyone,

I figured out the problem. Only the first opendevice returns the card’s address all following opendevice return -1

Well, I off to the next problem…

Michael

Nice that you got your software running.
Indeed, return value -1 indicates that all the K8061 cards are opened.
Return value -2 indicates that no card was found.