 Andreas Graff
		
			Andreas Graff
		
		
		
		
		
		
		
		
	
			07-18-2009 05:38 AM
Hi,
I have to develop a diagnostic program for our production line.
How can I achieve that Dasylab can handle different incoming strings within the running program.
The answercode of the device under test alters depending on my dasylab request.
Some common Example:
Dasylab sends: Device answers:
getserial xxxxxxxxx.xx
getdate jjjj.mm.dd
geparam xxx xxx xxx
I know the formatstring to receive each of the string.
But I don't know how to use these different formatstrings within the running program.
Regards
Andreas
 TomRizzo
		
			TomRizzo
		
		
		
		
		
		
		
		
	
			07-18-2009 08:40 AM
07-19-2009 12:18 PM
We use V10.00
Any idea?
Does the solution depend on the version?
07-20-2009 07:02 AM
Andreas,
Each parameter will be a different channel in the RS232 input module.
Each channel can have a unique data request command, and the data format string, which tells DASYLab how to parse and interpret the data, will be unique to each channel.
Information, such as the date, may be more complex, since DASYLab does not have a date data type, only numeric data types.
07-20-2009 07:37 AM
Thank you very much for your answer.
As far as I know starts Dasylab always with channel 0 when reading the serial port.
But if I assign each request command to a separate channel,
how can I force Dasylab to trigger only this dedicated channel X.
The helpfile told me, that the start-command (I hope this is the request-command)
will only be sent, if the measurement starts.
But I need to trigger the channels within the running program.
kind regards
Andreas
 TomRizzo
		
			TomRizzo
		
		
		
		
		
		
		
		
	
			07-20-2009 07:39 AM
Andreas,
Use the Data Request for each channel instead of the global one
Tom
07-20-2009 07:48 AM
Ok, I think we now have the crux of the matter.
How can I do that?
Where can I set up this behaviour?
07-20-2009 10:04 AM
When you create the RS Master module, open the properties dialog, and then click on the Options button.
Activate the Request Data option. It defaults to 1 second data request.
Enter nothing in the START command.
Click OK.
The main dialog box now has a Measurement data line, where you enter the individual data request for each channel.
07-20-2009 02:27 PM
Ok, I tried your idea. Now it's nearly what I need. The only missing point is the possibility to trigger these
RS-Master channels from within the program. In this mode DL is listening.
First I have to send a charakter from the external device to DL . Then DL sends the request-string from the first channel.
After the answer DL switches automatically to the next channel, sends the next request-string and so on.
I need DL as initiating sending device because the external device is waiting too.
Regards
Andreas
07-20-2009 02:48 PM
Now I need more details.
What's the sequence of commands/responses?
How unique is the first character?