Rego
Rego

Reputation: 1116

VxWorks Terminal Continuous Read Variable

In a VxWorks, I need to read the contents changes in a memory address, and I think I could read this using some sort of Unix syntax like.

In Unix, I'd use

tail -f < outputfile

So in VxWorks, I need to read the same way from

d 0x22221212

How could I do this?

Thanks in advance.

Upvotes: 1

Views: 423

Answers (1)

Chris Desjardins
Chris Desjardins

Reputation: 2716

The easiest thing is probably just to use the period function:

period 1, d, 0x22221212

Then every second the d function will get called with address 0x22221212 as a parameter.

http://www.vxdev.com/docs/vx55man/vxworks/ref/usrLib.html#period

Upvotes: 1

Related Questions