12.01.2014 Views

Software Manual Freedom EVOware Standard 2.3 Freedom ...

Software Manual Freedom EVOware Standard 2.3 Freedom ...

Software Manual Freedom EVOware Standard 2.3 Freedom ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A - Appendix A<br />

Advanced Worklist Commands<br />

The following example C++ function can be used to generate the well selection<br />

string automatically (the example assumes that the wells only have one<br />

compartment, see Well compartments in the index):<br />

CString RPG_RackZoom_Button::getSelection()<br />

{<br />

if (m_rack == NULL)<br />

// no rack selected<br />

return "";<br />

// this function stores 7 bit per character in the selection<br />

string<br />

// the first 2 characters are the number of wells in x-<br />

direction<br />

// the characters 3 and 4 are the number of wells in y-<br />

direction<br />

// well are computed in the order back to front, left to right<br />

CString selString;<br />

// troughs<br />

int yWells = m_rack->yWells;<br />

if (m_rack->tipAccess > 1)<br />

yWells = m_rack->tipAccess;<br />

// system liquids<br />

if (m_rack->systemType == ST_System)<br />

yWells = theApp.m_roboInfo.tips[0];<br />

if (m_rack == NULL)<br />

return "0000";<br />

selString.Format("%02X%02X",m_rack->xWells,yWells);<br />

unsigned int bitCounter = 0;<br />

unsigned int bitMask = 0;<br />

for (int x=0;xxWells;++x)<br />

for (int y=0;y 0)<br />

selString += (char)('0' + bitMask);<br />

}<br />

return selString;<br />

A - 122 <strong>Freedom</strong> <strong>EVOware</strong> <strong>Software</strong> <strong>Manual</strong>, 393172, en, V<strong>2.3</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!