Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging an ASCII signal to Excel through Lookout

LKS is the source file of the process you are working on, saved in same folder as process.

 

Right click the ascii object, select Edit Connections.

"ResponseFormat" is what formats the frames coming across the serial line.

-----------------------------------------------------------------------
Forshock - Consult.Develop.Solve.
0 Kudos
Message 21 of 35
(3,050 Views)

Mike,

 

Here is the LKS file.  I also attached a screenshot of the response format screen - I don't believe there is anything selected for the response format data member. Or am I just missing it?

 

Thanks,

Jared

Download All
0 Kudos
Message 22 of 35
(3,042 Views)

Is there a way in Lookout to concatenate a certain number of digits to join what I need together?

 

Thanks,

Jared

0 Kudos
Message 23 of 35
(3,020 Views)

That is what I was going for, but the problem is that from what it appears you string may not always be 5 (or x) characters.

 

Let me play with the source you provided a little bit and give you something to try.

-----------------------------------------------------------------------
Forshock - Consult.Develop.Solve.
0 Kudos
Message 24 of 35
(3,016 Views)
Thanks Mike. Yea I initially tried to use a macro to rearrange the data in excel, but like you said it is not always consistent.
0 Kudos
Message 25 of 35
(3,012 Views)

Okay, on Ascii1 set ResponseFormat to "M%f"


Drag the ascii1.RSV1 value to the display. (you are currently showing ascii1.response)

 

Any luck?

 

EDIT:  Ascii1 may actually need to be Ascii2 for my test.

-----------------------------------------------------------------------
Forshock - Consult.Develop.Solve.
0 Kudos
Message 26 of 35
(3,010 Views)
Ascii2 is the signal that I'm trying to fix, so I should do everything for ascii2? Or are you wanting a test done on the working ascii1 signal?

If I use the ascii2, should the display show the ascii2.RSV2 value? Or will it be ascii2.RSV1?

Thanks again.
0 Kudos
Message 27 of 35
(3,005 Views)

It looks like "ASCII2" is the weight scale?

 

If so, set the responseformat on that one.  It should go into the RSV1 datamember.

-----------------------------------------------------------------------
Forshock - Consult.Develop.Solve.
0 Kudos
Message 28 of 35
(3,003 Views)
The ascii2 is the one for length. Ascii1 is for the weight.

0 Kudos
Message 29 of 35
(2,999 Views)

Okay, whatever one you are trying to get 😉  


It starts with "M", eg "M31.13" from your example spreadsheet.

-----------------------------------------------------------------------
Forshock - Consult.Develop.Solve.
0 Kudos
Message 30 of 35
(2,996 Views)