Hi,

I dont know about the VA channels and haven't looked into OPPI yet, but a
while back I had the same problem. 
The way I imported the necessary channels into my app was as using VVs 

The code follows for the X channel values in all selected lines, jou can use
:

char xch[30];
float *x;
int n;
GX_HANDLE EData, Data, Line, XCh;
GX_HANDLE xVV;

GtString_SYS(pGS,"GXAPP","X",xch,_l(sizeof(xch));

EData = App_Current_EDB(pGS);
Data = App_Lock_EDB(pGS, &EData);
xVV = CreateExt_VV(pGS,_l(GS_FLOAT),_l(0));

if (!iExistSymb_DB(pGS, &Data, "X", _l(DB_SYMB_CHAN))) {
            App_DisplayMessage_SYS(pGS,"GXApp info", "Channel not found!");
            return;
} else XCh = FindSymb_DB(pGS, &Data, "X", _l(DB_SYMB_CHAN));

LockSymb_DB(pGS, &Data, &XCh, _l(DB_LOCK_READONLY), _l(DB_WAIT_INFINITY));

Line = FirstSelLine_DB(pGS, &Data);

while (iIsLineValid_DB(pGS, &Data, &Line)) {
        LockSymb_DB(pGS, &Data, &Line, _l(DB_LOCK_READONLY),
_l(DB_WAIT_INFINITY));
        GetChanVV_DB(pGS, &Data, &Line, &XCh, &xVV);
        n = iLength_VV(pGS, &xVV);

        x = new float[n];
        iGetData_VV(pGS, &xVV, _l(0), &n, x, _l(GS_FLOAT));
        
        //do stuff

        delete x;
}

Destroy_VV(pGS, &xVV);


Hope it helps.

Cheers

Jacques Beaurain
AATS
Room 908
Tel: +27 11 6383007
Cell: +27 82 322 7530

> -----Original Message-----
> From: Allan Perry [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, November 11, 1999 3:21 AM
> To:   [EMAIL PROTECTED]
> Subject:      [gxnet]: VA's in OPPI
> 
> I am writing C code to import a Geosoft database into another application
> using OPPI. Some of the channels are VA channels and I cannot see how to
> access these with the available documentation. If anyone can post an
> example of this it would be appreciated.
_______________________________________________________
More mailing list info http://www.geosoft.com/support/listserv/index.html

Reply via email to