rjohnson
2006-11-29 23:10:08 UTC
I'm using a 6251 card with LabWindows/CVI on a WinXP machine.
My problem is reading an EEPROM -- unfortunately, both its Clock (output from
6251) and Data (input to 6251) lines are hardwired on the same physical channel
(DIO Port1)
Is it possible to configure individual port
lines, so that one line (say, Port1.6) is an Output, and another line
(say, Port1.7) is an Input?I would like to not have to keep starting
and stoping the tasks on the whole port at
one time ,,, but just leave each separate line running as a read or write
until the operation is completed.I'm beginning to think this is not possible.as it is now, i have to start a write task, toggle the clock, stop the task, start a read task, read the data bit, stop the read task, start the write task and toggle the clock.... all this for just one bit. as you can imagine, the whole operation is rather slow: im only getting a read throughput of about 100 bytes per second. for an EEPROM that is capbable of delivering around 40,000 bytes per second. if i didnt have to keep starting and stopping the clock's write task, i could probably get about 1000 bytes per second, and then I'd be quite happy.any suggestions?thanks!
My problem is reading an EEPROM -- unfortunately, both its Clock (output from
6251) and Data (input to 6251) lines are hardwired on the same physical channel
(DIO Port1)
Is it possible to configure individual port
lines, so that one line (say, Port1.6) is an Output, and another line
(say, Port1.7) is an Input?I would like to not have to keep starting
and stoping the tasks on the whole port at
one time ,,, but just leave each separate line running as a read or write
until the operation is completed.I'm beginning to think this is not possible.as it is now, i have to start a write task, toggle the clock, stop the task, start a read task, read the data bit, stop the read task, start the write task and toggle the clock.... all this for just one bit. as you can imagine, the whole operation is rather slow: im only getting a read throughput of about 100 bytes per second. for an EEPROM that is capbable of delivering around 40,000 bytes per second. if i didnt have to keep starting and stopping the clock's write task, i could probably get about 1000 bytes per second, and then I'd be quite happy.any suggestions?thanks!