No subject


Fri Jan 30 10:19:00 CET 2009


I/O
image. The EL4732 does not output the desired voltage however.

I also ran TwinCAT to verify that my configuration was actually working =
and
that my idea was correct. Wenn writing 0x7FFF to the Ch1 Sample Value =
field
of the I/O image, the EL4732 generated the 10V output.

Does anybody have a clue what's wrong with my task? I am kind of stuck =
here.

 <<commandline_tool_output>>  <<ec_user_example_output>>  <<syslog>> =20
<<main.c>>=20

Greets,
Daniel

------_=_NextPart_001_01C9BDAE.CEE299E3
Content-Type: application/octet-stream;
	name="commandline_tool_output"
Content-Transfer-Encoding: base64
Content-Description: commandline_tool_output
Content-Disposition: attachment;
	filename="commandline_tool_output"

cm9vdEBTV0VTLUxpbnV4Oi9ob21lL2RhbmllbC9FdGhlckNBVC9ldGhlcmNhdC1kZXZlbC1yMTY4
MC90b29sIyAuL2V0aGVyY2F0IHNsYXZlcw0KMCAgMDowICBPUCAgKyAgRUsxMTAwIEV0aGVyQ0FU
LUtvcHBsZXIgKDJBIEUtQnVzKQ0KMSAgMDoxICBPUCAgKyAgRUw0NzMyIDJLLiBBbmEuIEF1c2dh
bmcgKy8tMTBWLCBPdmVyc2FtcGxlDQpyb290QFNXRVMtTGludXg6L2hvbWUvZGFuaWVsL0V0aGVy
Q0FUL2V0aGVyY2F0LWRldmVsLXIxNjgwL3Rvb2wjIC4vZXRoZXJjYXQgZGF0YSB8IGhleGR1bXAN
CjAwMDAwMDAgN2ZmZiAwMDAwDQowMDAwMDA0DQpyb290QFNXRVMtTGludXg6L2hvbWUvZGFuaWVs
L0V0aGVyQ0FUL2V0aGVyY2F0LWRldmVsLXIxNjgwL3Rvb2wjIC4vZXRoZXJjYXQgeG1sDQo8P3ht
bCB2ZXJzaW9uPSIxLjAiID8+DQogIDxFdGhlckNBVEluZm8+DQogICAgPCEtLSBTbGF2ZSAwIC0t
Pg0KICAgIDxWZW5kb3I+DQogICAgICA8SWQ+MjwvSWQ+DQogICAgPC9WZW5kb3I+DQogICAgPERl
c2NyaXB0aW9ucz4NCiA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J5PSIxIj4N
CiAgICAgICAgICAgIDxJbmRleD4jeDE3ODA8L0luZGV4Pg0KICAgICAgICAgICAgPE5hbWU+Q2gy
IEN5Y2xlQ291bnQ8L05hbWU+DQogICAgICAgICAgICA8RW50cnk+DQogICAgICAgICAgICAgIDxJ
bmRleD4jeDc4MDA8L0luZGV4Pg0KICAgICAgICAgICAgICA8U3ViSW5kZXg+MjwvU3ViSW5kZXg+
DQogICAgICAgICAgICAgIDxCaXRMZW4+MTY8L0JpdExlbj4NCiAgICAgICAgICAgICAgPE5hbWU+
Q2gyIEN5Y2xlQ291bnQ8L05hbWU+DQogICAgICAgICAgICAgIDxEYXRhVHlwZT5VSU5UMTY8L0Rh
dGFUeXBlPg0KICAgICAgICAgICAgPC9FbnRyeT4NCiAgICAgICAgICA8L1J4UGRvPg0KICAgICAg
ICAgIDxSeFBkbyBTbT0iMSIgRml4ZWQ9IjEiIE1hbmRhdG9yeT0iMSI+DQogICAgICAgICAgICA8
SW5kZXg+I3gxNzAwPC9JbmRleD4NCiAgICAgICAgICAgIDxOYW1lPkNoMiBTYW1wbGU8L05hbWU+
DQogICAgICAgICAgICA8RW50cnk+DQogICAgICAgICAgICAgIDxJbmRleD4jeDcwMDA8L0luZGV4
Pg0KICAgICAgICAgICAgICA8U3ViSW5kZXg+MjwvU3ViSW5kZXg+DQogICAgICAgICAgICAgIDxC
aXRMZW4+MTY8L0JpdExlbj4NCiAgICAgICAgICAgICAgPE5hbWU+Q2gyIFZhbHVlPC9OYW1lPg0K
ICAgICAgICAgICAgICA8RGF0YVR5cGU+VUlOVDE2PC9EYXRhVHlwZT4NCiAgICAgICAgICAgIDwv
RW50cnk+DQogICAgICAgICAgPC9SeFBkbz4NCiAgICAgICAgICA8VHhQZG8gU209IjIiIEZpeGVk
PSIxIiBNYW5kYXRvcnk9IjEiPg0KICAgICAgICAgICAgPEluZGV4PiN4MWE4MjwvSW5kZXg+DQog
ICAgICAgICAgICA8TmFtZT5TdGFydFRpbWVOZXh0T3V0cHV0PC9OYW1lPg0KICAgICAgICAgICAg
PEVudHJ5Pg0KICAgICAgICAgICAgICA8SW5kZXg+I3gxZDA5PC9JbmRleD4NCiAgICAgICAgICAg
ICAgPFN1YkluZGV4PjE1MjwvU3ViSW5kZXg+DQogICAgICAgICAgICAgIDxCaXRMZW4+MzI8L0Jp
dExlbj4NCiAgICAgICAgICAgICAgPE5hbWU+U3RhcnRUaW1lTmV4dE91dHB1dDwvTmFtZT4NCiAg
ICAgICAgICAgICAgPERhdGFUeXBlPlVJTlQzMjwvRGF0YVR5cGU+DQogICAgICAgICAgICA8L0Vu
dHJ5Pg0KICAgICAgICAgIDwvVHhQZG8+DQogICAgICAgIDwvRGV2aWNlPg0KICAgICA8L0Rldmlj
ZXM+DQogIDwvRGVzY3JpcHRpb25zPg0KPC9FdGhlckNBVEluZm8+DQo=

------_=_NextPart_001_01C9BDAE.CEE299E3
Content-Type: application/octet-stream;
	name="ec_user_example_output"
Content-Transfer-Encoding: base64
Content-Description: ec_user_example_output
Content-Disposition: attachment;
	filename="ec_user_example_output"

cm9vdEBTV0VTLUxpbnV4Oi9ob21lL2RhbmllbC9FdGhlckNBVC9ldGhlcmNhdC1kZXZlbC1yMTY4
MC9leGFtcGxlcy9taW5pY21jIyAuL2VjX3VzZXJfZXhhbXBsZQpDb25maWd1cmluZyBQRE9zLi4u
CkFjdGl2YXRpbmcgbWFzdGVyLi4uCnBkOiAwClN0YXJ0aW5nIHRpbWVyLi4uClN0YXJ0ZWQuCjIg
c2xhdmUocykuCkFMIHN0YXRlczogMHgwMi4KTGluayBpcyB1cC4KQW5hT3V0OiBTdGF0ZSAweDAy
LgpBbmFPdXQ6IG9ubGluZS4KRG9tYWluMTogV0MgMS4KRG9tYWluMTogU3RhdGUgMi4KQUwgc3Rh
dGVzOiAweDA4LgpBbmFPdXQ6IFN0YXRlIDB4MDguCkFuYU91dDogb3BlcmF0aW9uYWwuCg==

------_=_NextPart_001_01C9BDAE.CEE299E3
Content-Type: application/octet-stream;
	name="syslog"
Content-Transfer-Encoding: base64
Content-Description: syslog
Content-Disposition: attachment;
	filename="syslog"

QXByIDE1IDEzOjE5OjIwIFNXRVMtTGludXgga2VybmVsOiBbIDQxNTYuNTgyNjk2XSBBQ1BJOiBQ
Q0kgaW50ZXJydXB0IGZvciBkZXZpY2UgMDAwMDowMjowMS4wIGRpc2FibGVkCkFwciAxNSAxMzox
OToyMCBTV0VTLUxpbnV4IGtlcm5lbDogWyA0MTU2LjYwNTI2MF0gRXRoZXJDQVQgSW50ZWwoUikg
UFJPLzEwMDAgTmV0d29yayBEcml2ZXIgLSB2ZXJzaW9uIDcuMy4yMC1rMgpBcHIgMTUgMTM6MTk6
MjAgU1dFUy1MaW51eCBrZXJuZWw6IFsgNDE1Ni42MDUyNjBdIENvcHlyaWdodCAoYykgMTk5OS0y
MDA2IEludGVsIENvcnBvcmF0aW9uLgpBcHIgMTUgMTM6MTk6MjAgU1dFUy1MaW51eCBrZXJuZWw6
IFsgNDE1Ni42MDUyNjBdIEFDUEk6IFBDSSBJbnRlcnJ1cHQgMDAwMDowMjowMS4wW0FdIC0+IEdT
SSAxOCAobGV2ZWwsIGxvdykgLT4gSVJRIDE4CkFwciAxNSAxMzoxOToyMCBTV0VTLUxpbnV4IGtl
cm5lbDogWyA0MTU2LjYwNTI2MF0gUENJOiBTZXR0aW5nIGxhdGVuY3kgdGltZXIgb2YgZGV2aWNl
IDAwMDA6MDI6MDEuMCB0byA2NApBcHIgMTUgMTM6MTk6MjAgU1dFUy1MaW51eCBrZXJuZWw6IFsg
NDE1Ni43NTA1NzRdIGVjX2UxMDAwOiAwMDAwOjAyOjAxLjA6IGUxMDAwX3Byb2JlOiAoUENJOjMz
TUh6OjMyLWJpdCkgMDA6MTE6ZDg6YTU6MGY6YjUKQXByIDE1IDEzOjE5OjIwIFNXRVMtTGludXgg
a2VybmVsOiBbIDQxNTcuMDIxMjAzXSBFdGhlckNBVDogQWNjZXB0aW5nIGRldmljZSAwMDoxMTpE
OD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IFdvcmtpbmcgY291bnRlciBjaGFuZ2VkIHRv
IDEvMS4KQXByIDE1IDEzOjE5OjMzIFNXRVMtTGludXgga2VybmVsOiBbIDQxNjkuNTk2NjE0XSBF
dGhlckNBVDogU2xhdmUgc3RhdGVzOiBPUC4K

------_=_NextPart_001_01C9BDAE.CEE299E3
Content-Type: application/octet-stream;
	name="main.c"
Content-Transfer-Encoding: base64
Content-Description: main.c
Content-Disposition: attachment;
	filename="main.c"

I2luY2x1ZGUgPGVycm5vLmg+CiNpbmNsdWRlIDxzaWduYWwuaD4KI2luY2x1ZGUgPHN0ZGlvLmg+
CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPHN5cy9yZXNvdXJjZS5oPgojaW5jbHVkZSA8
c3lzL3RpbWUuaD4KI2luY2x1ZGUgPHN5cy90eXBlcy5oPgojaW5jbHVkZSA8dW5pc3RkLmg+Cgov
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKi8KCiNpbmNsdWRlICJlY3J0LmgiCgovKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKi8KCi8vIEFwcGxpY2F0aW9uIHBhcmFtZXRlcnMKI2RlZmluZSBGUkVRVUVOQ1kgMTAwCiNk
ZWZpbmUgUFJJT1JJVFkgMQoKLy8gT3B0aW9uYWwgZmVhdHVyZXMKI2RlZmluZSBDT05GSUdVUkVf
UERPUyAgMQojZGVmaW5lIFNET19BQ0NFU1MgICAgICAwCgovKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi8K
Ci8vIEV0aGVyQ0FUCnN0YXRpYyBlY19tYXN0ZXJfdCAqbWFzdGVyID0gTlVMTDsKc3RhdGljIGVj
X21hc3Rlcl9zdGF0ZV90IG1hc3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SBzbGF2ZShz
KS5cbiIsIG1zLnNsYXZlc19yZXNwb25kaW5nKTsKICAgIGlmIChtcy5hbF9zdGF0ZXMgIT0gbWFz
dGVyX3N0YXRlLmFsX3N0YXRlcykKICAgICAgICBwcmludGYoIkFMIHN0YXRlczogMHglMDJYLlxu
IiwgbXMuYWxfc3RhdGVzKTsKICAgIGlmIChtcy5saW5rX3VwICE9IG1hc3Rlcl9zdGF0ZS5saW5r
X3VwKQogICAgICAgIHByaW50ZigiTGluayBpcyAlcy5cbiIsIG1zLmxpbmtfdXAgPyAidXAiIDog
ImRvd24iKTsKCiAgICBtYXN0ZXJfc3RhdGUgPSBtczsKfQoKLyoqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
LwoKdm9pZCBjaGVja19zbGF2ZV9jb25maWdfc3RhdGVzKHZvaWQpCnsKCgllY19zbGF2ZV9jb25m
aWdfc3RhdGVfdCBzX291dDsKCiAgICBlY3J0X3NsYXZlX2NvbmZpZ19zdGF0ZShzY19hbmFfb3V0
LCAmc19vdXQpOwoKICAgIGlmIChzX291dC5hbF9zdGF0ZSAhPSBzY19hbmFfb3V0X3N0YXRlLmFs
X3N0YXRlKQogICAgICAgIHByaW50ZigiQW5hT3V0OiBTdGF0ZSAweCUwMlguXG4iLCBzX291dC5h
bF9zdGF0ZSk7CiAgICBpZiAoc19vdXQub25saW5lICE9IHNjX2FuYV9vdXRfc3RhdGUub25saW5l
KQogICAgICAgIHByaW50ZigiQW5hT3V0OiAlcy5cbiIsIHNfb3V0Lm9ubGluZSA/ICJvbmxpbmUi
IDogIm9mZmxpbmUiKTsKICAgIGlmIChzX291dC5vcGVyYXRpb25hbCAhPSBzY19hbmFfb3V0X3N0
YXRlLm9wZXJhdGlvbmFsKQogICAgICAgIHByaW50ZigiQW5hT3V0OiAlc29wZXJhdGlvbmFsLlxu
IiwKICAgICAgICAgICAgICAgIHNfb3V0Lm9wZXJhdGlvbmFsID8gIiIgOiAiTm90ICIpOwoKICAg
IHNjX2FuYV9vdXRfc3RhdGUgPSBzX291dDsKfQoKLyoqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovCgp2b2lk
IGN5Y2xpY190YXNrKCkKewogICAgLy8gcmVjZWl2ZSBwcm9jZXNzIGRhdGEKICAgIGVjcnRfbWFz
dGVyX3JlY2VpdmUobWFzdGVyKTsKICAgIGVjcnRfZG9tYWluX3Byb2Nlc3MoZG9tYWluMSk7Cgog
ICAgLy8gY2hlY2sgcHJvY2VzcyBkYXRhIHN0YXRlCiAgICBjaGVja19kb21haW4xX3N0YXRlKCk7
CgogICAgaWYgKGNvdW50ZXIpIHsKICAgICAgICBjb3VudGVyLS07CiAgICB9IGVsc2UgeyAvLyBk
byBzdGF0ZSBjaGVja2luZyBhdCAxIEh6CiAgICAgICAgY291bnRlciA9IEZSRVFVRU5DWTsgLy8g
RlJFUVVFTkNZID0gMTAwCgogICAgICAgIGNoZWNrX21hc3Rlcl9zdGF0ZSgpOwogICAgICAgIGNo
ZWNrX3NsYXZlX2NvbmZpZ19zdGF0ZXMoKTsKICAgIH0KCglpbnQxNl90IHZvbHRhZ2UgPSAweDdG
RkY7IC8vICsxMFYKCglFQ19XUklURV9TMTYoZG9tYWluMV9wZCArIG9mZl9hbmFfb3V0LCB2b2x0
YWdlKTsKCQogICAgLy8gc2VuZCBwcm9jZXNzIGRhdGEKICAgIGVjcnRfZG9tYWluX3F1ZXVlKGRv
bWFpbjEpOwogICAgZWNydF9tYXN0ZXJfc2VuZChtYXN0ZXIpOwp9CgovKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKi8KCnZvaWQgc2lnbmFsX2hhbmRsZXIoaW50IHNpZ251bSkgewogICAgc3dpdGNoIChzaWdu
dW0pIHsKICAgICAgICBjYXNlIFNJR0FMUk06CiAgICAgICAgICAgIHNpZ19hbGFybXMrKzsKICAg
ICAgICAgICAgYnJlYWs7CiAgICB9Cn0KCi8qKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqLwoKaW50IG1haW4o
aW50IGFyZ2MsIGNoYXIgKiphcmd2KQp7CgllY19zbGF2ZV9jb25maWdfdCAqc2M7CiAgICBzdHJ1
Y3Qgc2lnYWN0aW9uIHNhOwogICAgc3RydWN0IGl0aW1lcnZhbCB0djsKICAgIAogICAgbWFzdGVy
ID0gZWNydF9yZXF1ZXN0X21hc3RlcigwKTsKCWlmICghbWFzdGVyKQoJCXJldHVybiAtMTsKCiAg
ICBkb21haW4xID0gZWNydF9tYXN0ZXJfY3JlYXRlX2RvbWFpbihtYXN0ZXIpOwogICAgaWYgKCFk
b21haW4xKQogICAgICAgIHJldHVybiAtMTsKCiNpZiBDT05GSUdVUkVfUERPUwogICAgcHJpbnRm
KCJDb25maWd1cmluZyBQRE9zLi4uXG4iKTsKICAgIAogICAgaWYgKCEoc2MgPSBlY3J0X21hc3Rl
cl9zbGF2ZV9jb25maWcoCiAgICAgICAgICAgICAgICAgICAgbWFzdGVyLCBBbmFPdXRTbGF2ZVBv
cywgQmVja2hvZmZfRUw0NzMyKSkpIHsKICAgICAgICBmcHJpbnRmKHN0ZGVyciwgIkZhaWxlZCB0
byBnZXQgc2xhdmUgY29uZmlndXJhdGlvbi5cbiIpOwogICAgICAgIHJldHVybiAtMTsKICAgIH0K
ICAgIHNjX2FuYV9vdXQgPSBzYzsKCiAgICBpZiAoZWNydF9zbGF2ZV9jb25maWdfcGRvcyhzYywg
RUNfRU5ELCBlbDQ3MzJfc3luY3MpKSB7CiAgICAgICAgZnByaW50ZihzdGRlcnIsICJGYWlsZWQg
dG8gY29uZmlndXJlIFBET3MuXG4iKTsKICAgICAgICByZXR1cm4gLTE7CiAgICB9CiNlbmR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ZwcmludGYoc3RkZXJyLCAiRmFpbGVkIHRvIGluc3RhbGwgc2lnbmFsIGhhbmRsZXIhXG4i
KTsKICAgICAgICByZXR1cm4gLTE7CiAgICB9CgogICAgcHJpbnRmKCJTdGFydGluZyB0aW1lci4u
LlxuIik7CiAgICB0di5pdF9pbnRlcnZhbC50dl9zZWMgPSAwOwogICAgdHYuaXRfaW50ZXJ2YWwu
dHZfdXNlYyA9IDEwMDAwMDAgLyBGUkVRVUVOQ1k7CiAgICB0di5pdF92YWx1ZS50dl9zZWMgPSAw
OwogICAgdHYuaXRfdmFsdWUudHZfdXNlYyA9IDEwMDA7CiAgICBpZiAoc2V0aXRpbWVyKElUSU1F
Ul9SRUFMLCAmdHYsIE5VTEwpKSB7CiAgICAgICAgZnByaW50ZihzdGRlcnIsICJGYWlsZWQgdG8g
c3RhcnQgdGltZXI6ICVzXG4iLCBzdHJlcnJvcihlcnJubykpOwogICAgICAgIHJldHVybiAxOwog
ICAgfQoKICAgIHByaW50ZigiU3RhcnRlZC5cbiIpOwoJd2hpbGUgKDEpIHsKCQkKICAgICAgICBw
YXVzZSgpOyAvLyB3YWl0IGZvciB0aW1lciBzaWduYWwgKGV2ZXJ5IDEvMTAwcykuLiBzaWduYWxf
aGFuZGxlciBpcyBiZWluZyBjYWxsZWQKICAgICAgICAKICAgICAgICB3aGlsZSAoc2lnX2FsYXJt
cyAhPSB1c2VyX2FsYXJtcykgewogICAgICAgICAgICBjeWNsaWNfdGFzaygpOwogICAgICAgICAg
ICB1c2VyX2FsYXJtcysrOwogICAgICAgIH0KCX0KCglyZXR1cm4gMDsKfQoKLyoqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKiovCg==

------_=_NextPart_001_01C9BDAE.CEE299E3--


More information about the etherlab-dev mailing list