mouni Posted February 24, 2008 Report Posted February 24, 2008 hello how can i make communication between citect and excel? thank u please can u help me
PdL Posted February 24, 2008 Report Posted February 24, 2008 What have you done yourself so far to get the answer to your question?
tragically1969 Posted February 25, 2008 Report Posted February 25, 2008 CLUE: Type DDE into the help files in Citect
mouni Posted February 28, 2008 Author Report Posted February 28, 2008 Mr Pdl Je n’ai pas plier mes bras et attendre la première repense qui me passe devant j ai bien chercher et j ai collecter pas mal d informations mais tous ce que me manque c est un coup de pousse pour savoir et pour organiser mes idées et mes informations et si tu es administrateur dans ce forum tu es bien sur un membre dans d autres alors ce ne te donne pas le droit de juger les autres comme ça si tu as quelque chose a me proposer je serais ravi si non je trouverai d autre Et merci pour ta repense.
tragically1969 Posted February 28, 2008 Report Posted February 28, 2008 Mouni, there is no need to take offence PDl was trying to suggest that maybe if you posted along the lines of this you may get more help: I am trying to make a connection to Excel and cannot get it working, i have looked at using DDE and an export by cicode to csv but it give me an error which is xxxxxx when i ran the code, can anybody help ? If you ask specific question you will get specific answers, ask general questions and you will get general answers !!
PdL Posted February 28, 2008 Report Posted February 28, 2008 Hello mouni, Je n'ai pas parlais Francais. Like tragically1969 says, Citect has a very good help section which should get you started. If you have specific questions afterwards, you are welcome to post them.
mouni Posted March 1, 2008 Author Report Posted March 1, 2008 hello i have accomplish a program in cicode and compiled. Gods thank i had no error. but a problem is I dont see any change in the excel file which i have create? ! Read from Excel spreadsheet INT FUNCTION GetExcelData(); INT hChannel; INT courbe1; hChannel = DDEhInitiate("EXCEL", "test.XLS"); IF hChannel > -1 THEN sData = DDEhRequest(hChannel, "l1C1"); DDEhTerminate(hChannel); hChannel = -1; END; RETURN courbe1; END
mouni Posted March 5, 2008 Author Report Posted March 5, 2008 thank u for all help naw i can communiq beteween citect and excel but i have an other probleme in the function setDDe i wold like save my data in the table excel one by one how can i incrment the rang an the colone with this function.
tragically1969 Posted March 5, 2008 Report Posted March 5, 2008 What is your end goal with this project ? You may be going the wrong way with this, the way i have seen and used DDE is generally for displaying live data on a spreadsheet for an overview of plant data etc, not for logging data. If you want to log data on a set interval you should be using the SQL and ODBC commands to write to an access data base or using the trend tools to export a trend to a CSV file
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now