 Padderick
		
			Padderick
		
		
		
		
		
		
		
		
	
			11-04-2010 05:47 AM
Hi,
I'm trying to use the capl language in canoe. I created a capl-node and included this node into the Can_network (as you can see in the jpg: simulation - canoe.jpeg
I created a capl-program to write a message into the canoe-write-window(message:The message received is x) if canoe receives any message.
Here you can see the program code in the CAPL-Browser:
on message *
{
    write("The message received is %c", this.id);
}
The CAPL-Browser compiled that without any warning or problems.
So now the problem: When I'm starting the canoe measurement occurs a error message in the write-window. Test module : the test module is not assigned or invalid. (as you can see in the jpg: measurement start.jpeg
I don't know what the problem is.. has someone an idea? Maybe something is wrong with the measurementsetup...
Padderick
11-04-2010 05:49 AM
ups, here the jpg's... 😉
 Bill_in_Detroit
		
			Bill_in_Detroit
		
		
		
		
		
		
		
		
	
			11-04-2010 08:14 AM
I took what you had and placed it in a CAPL node I have and it works fine. Make sure you have configured (right click on the node in the simulation view and select "configure") the node for the database you are using and state (simulated or off). Additionally be sure that you have saved the compiled code with a .can extension and Title reflects the name you have given the file while the path on the common tab points to it. Additionally, in configuration on the buses tab the CAN bus should appear in the right hand window under "assigned buses".
Let me know if this helps.
 sans_p8
		
			sans_p8
		
		
		
		
		
		
		
		
	
			06-03-2013 01:42 AM
Hi,
Could you please tell me how to generate a test report in notepad using CAPL ??
Best regards!
 kasettad
		
			kasettad
		
		
		
		
		
		
		
		
	
			08-20-2013 02:07 AM
Hello, I now got the same message that "The test module is not assigned or invalide" Have you got the solution? I wonder if you could please advise.
Thank you in advance.
 B.santamar
		
			B.santamar
		
		
		
		
		
		
		
		
	
			03-26-2014 05:29 AM
Hello,
Could you share a screenshot of the node configuration?
BR
 B.santamar
		
			B.santamar
		
		
		
		
		
		
		
		
	
			03-26-2014 05:41 AM
Hello,
To write a report, you must do the next:
dword glbHandle = 0;
char buffer[64];
glbHandle = OpenFileWrite ("report.txt",2);
if ( glbHandle!=0 )
{
    snprintf (buffer, elcount(buffer)," %d \n", aux);
    filePutString (buffer, elcount(buffer),glbHandle);     
}
else
{
      write ("File 'report.txt' was not opened for write access.");
}
I hope you will find this informaiton useful,
BR.
 sans_p8
		
			sans_p8
		
		
		
		
		
		
		
		
	
			03-26-2014 05:55 AM
Hi,
Yes i already managed to generate reports 🙂 Thanks anyways !
 sans_p8
		
			sans_p8
		
		
		
		
		
		
		
		
	
			03-26-2014 05:57 AM
Hey,
Problem with Simulation Setup..
 mabroukagmiden
		
			mabroukagmiden
		
		
		
		
		
		
		
		
	
			05-06-2015 03:54 AM
Hi,