Greetings.
I am using a PCI 6259 card with LabView 8. I would like to drive 8 solenoids such that the probability that any one solenoid is activated at each time step ( variable 10/20/50/100 ms) is the result of a binomial trial. So, at time step n (0<=n<=N, a large number), I would like to generate coin tosses and take the 1's and 0's to drive the solenoids. I have written some code to do this, however DAQmx generates an error saying the following:
Error -200565 occurred at DAQmx Write (Digital 2D U8 NChan NSamp).vi:1
Possible reason(s):
Specified digital channel contains more bits than supported by the 8-bit version of DAQmx Port Write.
Use the version of DAQmx Port Write that supports wider digital ports.
Minimum Write Size (In Bits): 32
I am attaching my code here. Kindly suggest the problems or alternatives to this code for runnin this task.
Thanks
Aniket