Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » FORTE terminate when pressing "Launch local FORTE"(Error when launching FORTE)
| | | | | |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1737910 is a reply to message #1737873] |
Thu, 14 July 2016 06:00 |
Michele Citro Messages: 29 Registered: June 2016 |
Junior Member |
|
|
Good morning,
no, I don't remember to have edited manually the cpp code. But I will verify this possibility.
At the same time, FORTE crash already of the download before, when I push button "Launch local FORTE". Next, pushing the button Download, there is the right problem of connection refused.
Using the new version of FORTE (RC2), I have the same problem, the same exactly.
But, I haven't tried yet with the new version of 4DIAC.
Thank you all,
Michele CItro
|
|
| | | | | |
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738233 is a reply to message #1738152] |
Mon, 18 July 2016 10:15 |
Jose Maria Jesus Cabral Lassalle Messages: 199 Registered: February 2016 |
Senior Member |
|
|
Hi, I checked your code.
1. I noted that you wrote your own code in FB. Did you export the FB using 4DIAC and then wrote your implementation?
2. I noticed also that in your FB you use functions of a library of cifX, I suppose is related to a special communciation card in your computer, right?
Regarding this, normally you don't use Basic Functional Blocks for communication matter, but the Services Functional Block. This is related to the 61499 standard (Alois could tell better which rules are being broken or not), but in any case, FORTE shouldn't terminate because of that.
Since I don't have the library, I couldn't test your situation properly. What I did was to replace all the calls to your specific library with dummies implementation that do nothing. I compiled and ran FORTE and it didn't terminate.
Now, going back to debugging. Could you give more details of where exactly did you put your breakpoint? If you put it where the image above shows, the program should stop there. Did it stop there or terminated before even getting there?
Regards,
Jose Cabral
|
|
|
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738297 is a reply to message #1738233] |
Mon, 18 July 2016 18:49 |
|
Hi,
Using the skeleton of a basic fB for implementing a service interface function block can be a good option for application triggered function blocks. So this is definitely not the cause of the issue. What could be is that the dll needed for this FB can not be loaded at startup time and therefore the program is exited.
I also noted that you are using FORTE_TRACE for generating debug output. Please don't do that. FORTE_TRACE is for tracing events and deactivated per default. Better use one of the DEVLOG defines. But here you also need to ensure that the according log level is activated so that you will see any output.
Cheers,
Alois
|
|
|
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738350 is a reply to message #1738225] |
Tue, 19 July 2016 08:29 |
Michele Citro Messages: 29 Registered: June 2016 |
Junior Member |
|
|
Kirill Dorofeev wrote on Mon, 18 July 2016 09:18Hi Michele,
your FB cpp code looks like it was edited manually after exporting FB from 4diac. For example, in your fbt file both INIT and REQ algorithms are empty, whereas in cpp alg_INIT is non-empty. I exported your FB, compiled forte and it runs smoothly. See attached generated cpp and h files. So the problem is probably somewhere in your code, you've added.
Best regards,
Kirill
Hi Kirill,
thank you for the answer.
Yes, the FB it was edited manually after exporting FB from 4diac.
It worked always, but no now.
I know that the problem is in my own code,but I don't understand where.
Best regards,
Michele
|
|
|
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738351 is a reply to message #1738233] |
Tue, 19 July 2016 08:51 |
Michele Citro Messages: 29 Registered: June 2016 |
Junior Member |
|
|
Jose Maria Jesus Cabral Lassalle wrote on Mon, 18 July 2016 10:15Hi, I checked your code.
1. I noted that you wrote your own code in FB. Did you export the FB using 4DIAC and then wrote your implementation?
2. I noticed also that in your FB you use functions of a library of cifX, I suppose is related to a special communciation card in your computer, right?
Regarding this, normally you don't use Basic Functional Blocks for communication matter, but the Services Functional Block. This is related to the 61499 standard (Alois could tell better which rules are being broken or not), but in any case, FORTE shouldn't terminate because of that.
Since I don't have the library, I couldn't test your situation properly. What I did was to replace all the calls to your specific library with dummies implementation that do nothing. I compiled and ran FORTE and it didn't terminate.
Now, going back to debugging. Could you give more details of where exactly did you put your breakpoint? If you put it where the image above shows, the program should stop there. Did it stop there or terminated before even getting there?
Regards,
Jose Cabral
Hi,
thank you for the answer.
I ask to you questions,
1. Yes, it's correct. But I remember that I putted them(.cpp and .h) in my directory without export. This because, I didn't write the code, but I received it for start the project. So, I don't know much about it.
2. Right, cifX allows me to comunicate with automation warehouse althrought through the computer.
Instead, going back to debugging,
I attach the result.
I have selected the debug mode, put the breakpoint in my .cpp, but the debug don't stop there, but it push ahead and it do a final error (seems after the compile).
Thank you so much.
Best regards,
Michele
|
|
|
Re: FORTE terminate when pressing "Launch local FORTE" [message #1738363 is a reply to message #1738351] |
Tue, 19 July 2016 09:50 |
|
Hi,
for starting it would be good to see if you could place the breakpoint at the beginning of main() which you can find in the file src/arch/win32/main.cpp. The best place would be line 88 or so and then check if the function createDev is called and that the function does not immediately terminate. This function is only left when forte is shut down.
BR,
Alois
|
|
| | |
Goto Forum:
Current Time: Wed Sep 25 23:29:57 GMT 2024
Powered by FUDForum. Page generated in 0.05590 seconds
|