Send Tech-talk mailing list submissions to
tech-talk at aps.anl.gov
To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.aps.anl.gov/mailman/listinfo/tech-talk
or, via email, send a message with subject or body 'help' to
tech-talk-request at aps.anl.gov
You can reach the person managing the list at
tech-talk-owner at aps.anl.gov
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tech-talk digest..."
Today's Topics:
1. Re: Suggestion on LVDT? (Makarov, Oleg A.)
2. data format conversion (yincx at ihep.ac.cn)
3. Re: data format conversion (Florian Feldbauer)
----------------------------------------------------------------------
Message: 1
Date: Thu, 20 Aug 2020 20:09:21 +0000
From: "Makarov, Oleg A." <makarov at anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Subject: Re: Suggestion on LVDT?
Message-ID: <cf390c5e-4ae3-2345-879c-922503f58f76 at anl.gov>
Content-Type: text/plain; charset="utf-8"
Hi Guobao Shen,
I suggest a different technology to be used for linear displacement
sensing: an optical linear encoders:
https://urldefense.com/v3/__https://www.celeramotion.com/microe/products/linear-encoders/compact/veratus-series-vi/__;!!P4SdNyxKAPE!WwcCP3rrG3b_Z4F4R19qGKFn_sUIMSYQDTaUalzr7oWfxr_EyIox4wdVx9p7qpmJ$
these provide resolutions down to 20 nm and up to 30 m measuring lengths.
Regards,
Oleg Makarov
On 8/20/2020 2:40 PM, Shen, Guobao via Tech-talk wrote:
> Hi Community,
> Does anyone have a suggestion about an electronics on the LVDT?
> We, here at APS, are currently using North Atlantic NA7800 LVDT, and want to have a replacement.
>
> Appreciate if there is any suggestion a newer version of electronics, especially VME module, as well as the EPICS driver availability.
>
> Thanks,
> Guobao
>
> ---
> Guobao Shen
>
> Controls Group Leader
> Accelerator Systems Division
> Advanced Photon Source Bldg. 401-C2268
> Argonne National Laboratory
> 9700 South Cass Avenue
> Argonne, IL 60439
>
> Office: 630-252-1614
> Email: gshen at anl.gov<
mailto:gshen at anl.gov>
>
>
------------------------------
Message: 2
Date: Fri, 21 Aug 2020 09:43:49 +0800
From: "yincx at ihep.ac.cn" <yincx at ihep.ac.cn>
To: tech-talk <tech-talk at aps.anl.gov>
Subject: data format conversion
Message-ID: <2020082109434918497329 at ihep.ac.cn>
Content-Type: text/plain; charset="gb2312"
Hello everyone,
I am using the stream device to gat data from a device, and have a problem about format conbersion. I hope to get some advice and will appreciate for your help.
I want to send data, such as "09", in hexademical format to the device. the device will return a float data %f.
Statements in the db file:
recorrd(ai, "$(P)$(R)read")
{
field(DESC, "read pressure")
field(DTYP, "stream")
field(INP, "@pressure.proto SendCommand(09) $(PORT)")
field(SCAN, "1 second")
}
Statements in the protocol file is like this:
SendCommand{
out "\x\$1";
in "%f";
}
when I run the st.cmd, an error occurs:
Hex digit expected after \x: "\X""
if "09" is send directly, not as a variable "\$1":
SendCommand{
out "\x09";
in "%f";
}
everything goes well and I can get the returned %f correctly.
I wonder how can I send "09" as a variable? How to change a variable in the record to be hexadecimal?
Thank you very much for any advice, I will try it and give feedback.
Bset wishes
Chunxia Yin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://mailman.aps.anl.gov/pipermail/tech-talk/attachments/20200821/fa28d947/attachment.html>
------------------------------
Message: 3
Date: Fri, 21 Aug 2020 17:00:00 +0200
From: Florian Feldbauer <florian at ep1.ruhr-uni-bochum.de>
To: "yincx at ihep.ac.cn" <yincx at ihep.ac.cn>, tech-talk
<tech-talk at aps.anl.gov>
Subject: Re: data format conversion
Message-ID:
<584360f6-5f05-f789-6462-2786e195c309 at ep1.ruhr-uni-bochum.de>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Hey Chunxia,
you could try the following:
Statements in the db file:
recorrd(ai, "$(P)$(R)read")
? {
field(DESC, "read pressure")
field(DTYP, "stream")
field(INP, "@pressure.proto SendCommand(9)? $(PORT)")
field(SCAN, "1 second")
}
Statements in the protocol file is like this:
SendCommand{
??? out $1;
??? in "%f";
}
Without quotes, the variable is assumend to be the decimal value of one
byte, so it will send one byte with value '9' to your device, just like
"\x09" would do.
HTH,
Florian
Am 21.08.2020 um 03:43 schrieb yincx--- via Tech-talk:
> Hello everyone,
> I am using the stream device to gat data from a device, and?have a
> problem about format conbersion. ?I ?hope to get some advice and will
> appreciate for your help.
> I want to send data,such as "09", in hexademical format to the device.
> ?the device will return ?a float data %f.
>
> Statements in the db file:
> recorrd(ai, "$(P)$(R)read")
> ? {
> field(DESC, "read pressure")
> field(DTYP, "stream")
> field(INP, "@pressure.proto SendCommand(09)? $(PORT)")
> field(SCAN, "1 second")
> }
>
> Statements in the protocol file is like this:
>
> SendCommand{
> ??? out "\x\$1";
> ??? in "%f";
> }
>
> when I run the st.cmd, an error occurs:
> Hex digit expected after \x: ?"\X""
>
> if "09" is send directly, not as a variable "\$1":
> SendCommand{
> out "\x09";
> in "%f";
> }
>
> everything goes well and I can get the returned %f correctly.
>
> I wonder how can I send "09" as a variable? ?How to change a variable
> in the record to be hexadecimal?
>
> Thank you very much for any advice, I will try it and give feedback.
>
> Bset wishes
> Chunxia Yin
> ------------------------------------------------------------------------
>
--
Ruhr-Universit?t Bochum
AG der Experimentalphysik I
Dr. Florian Feldbauer
NB 2/131 / Fach 125
Universit?tsstr. 150
D-44801 Bochum
Office: NB 2/134
Phone: (+49)234 / 32-23563
Fax: (+49)234 / 32-14170
https://urldefense.com/v3/__https://paluma.ruhr-uni-bochum.de__;!!P4SdNyxKAPE!WwcCP3rrG3b_Z4F4R19qGKFn_sUIMSYQDTaUalzr7oWfxr_EyIox4wdVx0j7aUoU$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://mailman.aps.anl.gov/pipermail/tech-talk/attachments/20200821/c4deeef9/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Tech-talk mailing list Tech-talk at aps.anl.gov
https://mailman.aps.anl.gov/mailman/listinfo/tech-talk
------------------------------
End of Tech-talk Digest, Vol 14, Issue 462
******************************************