Hello all,
Recently we created a waveform record that holds a firmware for a device. We read the firmware from a binary file and put every 4 bytes as unsigned integer into an array of integers.
We found out that in order for arrays to be passed to the writePV API using a Python script, it must be a float array (either array or jarray). Can be done something like this:
Data = "" [], 'f' )
Now since we need to send unsigned integers, something like this won't work:
Data = "" [], 'l' )
Or anything other than 'f' or 'd' will give error:
java.lang.RuntimeException: Unsupported type for CA: class [J
Why does the writePV API does not accept any array other than float or double array array? The bytes to be sent are unpacked from the bin file with a specific bit pattern that should
not be changed or the device is rendered unusable and needs restart.
Best Regards,
Abdalla Ahmad
Control Engineer
SESAME
Allan, Jordan.
Tel: (+962-5) 3511348 , ext. 265
Fax: (+962-5) 3511423
Mob: (+962-7)88183296
www.sesame.org.jo