Re: [foxboro] Problems in C programs with FoxApi
- From: "Schouten, Frits JF" <Frits.Schouten@xxxxxxxxxxxx>
- To: "'foxboro@xxxxxxxxxxxxx'" <foxboro@xxxxxxxxxxxxx>
- Date: Wed, 18 Jun 2003 06:18:27 +1000
Hi Alexsis,
It looks to me that the nom_tmp(100) is smaller that all the other
arrays(612).
What is the maxobj for foxapi set to?
What are the errors you get?
I would like to suggest to start off with a small number of tags like 2 to 5
or so and iron out all problems first before you go for the full size of
what you want/need.
Regards,
Frits Schouten.
-----Original Message-----
From: Alexis BOUTILLIER [mailto:alexis.boutillier@xxxxxxxxxx]
Sent: Tuesday, 17 June 2003 20:10
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] Problems in C programs with FoxApi
Hello,
I try to create a C program for Foxboro and i need advise.
I use the Foxapi and the scopen and bread functions.
I get errors when opening set in read write. The set had 612 tags. I have no
problem when opening it in read only.
I tried different maner to open it:
- splitting it in 100 tags sets
- using sbopen,scopen, setting sleeps between the scopens.
non of this trick work. The result is that my program locks up and i need to
kill it manually (not with a -KILL) to stop it.
but when sometimes it works, the write fonction bwrite works perfecty. but
when it wors and i close the sets, it is therefor totaly impossible to
reopen the sets because it open them with no connection errors (-1); I look
into the omlist with the som program and when i call the clsset fonction,
the omlist are not destoy like they are with a read only open.
does someone have any sugestion to help me ??
i copy here the open fonction and the parametres used :
#include <foxapi.h>
/* Definition du type tag facilitant l'ecriture */
typedef char tag[AN_ONAM_SIZ];
tag nom_tmp[100];
int set;
int acctyp = 2;
int rsr = 5;
int wsr = 10;
int clexit = 1;
int reterr;
int gw_cp[612];
int valtyp_cp[612];
float rdelta_cp[612];
int error_cp[612];
float wdelta_cp[612];
int nument_cp = 612;
int index_cp [612];
int status_cp [612];
for (i=0;i<612;i++) {
valtyp_cp[i] = 5;
rdelta_cp[i] = 1.0;
wdelta_cp[i] = 1.0;
gw_cp[i]=1;
}
scopen (gw_cp, nument_cp, nom_tmp, valtyp_cp, acctyp, rdelta_cp, clexit,
rsr, wsr, wdelta_cp, &set, index_cp, error_cp, &reterr);
printf("scopen cp%d reterr = %d, set %d\n",i,reterr,set);
thank you for any help
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
EOM
NOTICE - This message and any attached files may contain information that is
confidential and/or subject of legal privilege intended only for use by the
intended recipient. If you are not the intended recipient or the person
responsible for delivering the message to the intended recipient, be advised
that you have received this message in error and that any dissemination,
copying or use of this message or attachment is strictly forbidden, as is
the disclosure of the information therein. If you have received this
message in error please notify the sender immediately and delete the
message.
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
Other related posts: