channelaccess / ca_matlab

4 stars 2 forks source link

max bytes? #14

Open Aemornion opened 5 years ago

Aemornion commented 5 years ago

Nevermind, i figured it out. the answer was "I am stupid"

I have been using this software to interface to canberra NIM modules.

I recently decided to change the number of data channels on my ADC from 2048 to 4096. This change works fine with issueing the command directly with the CMD, but when trying to read with ca_matlab it hangs perpetually requiring a restart of matlab to overcome. I suspect there is a limitation somewhere about how large a variable can be read with ca_matlab, but I lack the experience required to locate and correct it. This supported by the issue only appearing when exceeding 2048 channels, going down to 1024 posed no issue. Any help appreciated.

EDIT: Its definitely an issue with how large the data is, changing from double[] to integer[] permitted the 4096 channel dataset to function and the issue was passed up to the 8192 channel dataset.

ca_matlab is by far the easiest way to get matlab and epics to talk to one another, i really hope this issue can be overcome in some fashion.

simongregorebner commented 5 years ago

based on the edit you did in the description, I'm not sure whether this is still an issue. Do you still encounter issues with your channels?

(sorry i didn't find the time to have a look at this before)