DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure rs-232 if the format of the received strings can be different depending on the request

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 

 

 

 

 

0 Kudos
Message 1 of 12
(8,914 Views)
Which version are you using?
Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 2 of 12
(8,912 Views)

We use V10.00

Any idea?

Does the solution depend on the version?

0 Kudos
Message 3 of 12
(8,903 Views)

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.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 4 of 12
(8,891 Views)

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 

0 Kudos
Message 5 of 12
(8,886 Views)

Andreas,

 

Use the Data Request for each channel instead of the global one

 

Tom

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 6 of 12
(8,883 Views)

Ok, I think we now have the crux of the matter.

How can I do that?

Where can I set up this behaviour?

 

0 Kudos
Message 7 of 12
(8,880 Views)

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.

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 8 of 12
(8,878 Views)

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 

0 Kudos
Message 9 of 12
(8,867 Views)

Now I need more details.

What's the sequence of commands/responses?

 

How unique is the first character?

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 10 of 12
(8,864 Views)