Hi Jeffrey,
Thanks for your reply. We tried with the function OutByte and we can write the first 256 bytes, from 0 to 0x100.
Between 0x300 to 0x400 we get the error "Device has stopped responding".
Are we missing something? (We tried Python and C# just in case)
Can we use those first 256 bytes without compromising DAQ board functionality? We read the first time and it has all FFs. That area seems unwritten by default.
This is the code we used just in case:
int board_number = 1;
int start = 0;
int total = 256;
int i = 0;
int value;
ErrorInfo result;
MccBoard daq_board = new MccDaq.MccBoard(board_number);
Console.WriteLine("Board name:" + daq_board.BoardName);
Console.WriteLine("Board number:" + daq_board.BoardNum);
Console.WriteLine("Reading from " + start + " to " + (start + total).ToString());
for (i = 0; i < total; i++)
{
value = daq_board.InByte(start + i);
Console.WriteLine("Adresss: " + (start + i).ToString() + " - Value: " + value);
}
Console.WriteLine("Writing incremental values from " + start + " to " + (start + total).ToString());
for (i = 0; i < total; i++)
result = daq_board.OutByte(start + i, i);
Console.WriteLine("Reading from " + start + " to " + (start + total).ToString());
for (i = 0; i < total; i++)
{
value = daq_board.InByte(start + i);
Console.WriteLine("Adresss: " + (start + i).ToString() + " - Value: " + value);
}
Thanks,
Federico