Session based vs. Legacy interface in generating digital outputs via NI device


hi, aviv , working towards phd in neuroscience.
for experiment, transfer digital outputs matlab via national instruments (ni) device (pcie-6320), has digital output ports having 8 channels each (e.g. port 0 has 8 channels: 0.0:0.7). timing considerations important.

before purchasing current 64-bit matlab 2014 system, used 32-bit matlab of older version, different ni board - pci-6224. 32-bit system used "legacy interface" code (putvalue command) generate outputs, , found average delay in execution time of matlab line updates single channel 0 1 (and vice versa) 1.2 ms. furthermore, mean delay proportional number of output channels simultaneously updated in same matlab line, i.e. matlab line updated simultaneously 8 channels (0.0:0.7) 0 1 take 8x1.2 ms execute.

upon moving current system, new computer matlab 64-bit , pcie-6320, discovered legacy interface set of commands (for generating , acquiring digital outputs , inputs) not available 64-bit, , must use "session-based" set of commands. indeed used outputsinglescan command update output lines. surprisingly, mean delay in executing matlab line updating 1 output channel ~8 ms, , updating 8 channels simultaneously - ~14 ms.

i have tested new 6320 board through external ni software , found capable of updating lines in rate higher 1000 hz (corresponding 1 ms delay i'd achieve), suppose difference between old system , current 1 has matlab interface - it's either session-based vs. legacy set of commands, might slower, or matlab 64-bit vs. 32-bit, regardless of digital input/output interface. additionally, due heavier workload on new current computer, although did think of trying reduce it.

i appreciate if enlighten me difference between legacy , session-based interfaces, in way might explain big delay , different behavior see.

thank much, aviv.

hi, i'm sorry better talking guys @ matlab , ni, forum arduino based products, not commercial , specific have.

tom.... :)


Arduino Forum > Using Arduino > Programming Questions > Session based vs. Legacy interface in generating digital outputs via NI device


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code