Home/Support/Support Forum/How to define user block to store user data in RCM 3000
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to define user block to store user data in RCM 3000

0 votes
I need to write some data using writeUserBlock() function in RCM 3000. But how can I choose an address offset in user block to write something there. Can I take 0 as address like writeUserBlock(0,data,sizeof(data)) . Please help.
asked Apr 6, 2015 in Rabbit Software by ViswajithKA New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

0 votes
Take a look at the userblock_sample.c application.

/* Save the data to the user block */
save_data[0] = &test_data;
save_lens[0] = sizeof(test_data);
save_data[1] = &test_long;
save_lens[1] = sizeof(test_long);
save_data[2] = test_string;
save_lens[2] = TEST_STRING_LEN;
writeUserBlockArray(0, save_data, save_lens, 3);
answered Apr 13, 2015 by Campbell Veteran of the Digi Community (560 points)