doogle
2008-05-29 10:40:05 UTC
I'm trying to build messages for repeat transmission by the Channel API Write Function every 30ms.
In one message I have a constant byte(Constant), a byte that I want to autoincrement(Increment) each transmission, and three Motorola Longs(16 bit) i.e. hi-low(DataA,DataB,DataC)
I put the message into MAX.
What I did was to create 3 tasks:
- 1 to handle the autoincrement i.e called every 30ms
- 1 to put the constant in place - called once after init start
- 1 to update the DataA, B & C values when any one changes (event structure in Labview)
This doesn't seem to work as each access to specific channels seems to clear the other channels to zero rather than masking them out and preserving the data.
Is this how it is supposed to work or am I missing something?
In one message I have a constant byte(Constant), a byte that I want to autoincrement(Increment) each transmission, and three Motorola Longs(16 bit) i.e. hi-low(DataA,DataB,DataC)
I put the message into MAX.
What I did was to create 3 tasks:
- 1 to handle the autoincrement i.e called every 30ms
- 1 to put the constant in place - called once after init start
- 1 to update the DataA, B & C values when any one changes (event structure in Labview)
This doesn't seem to work as each access to specific channels seems to clear the other channels to zero rather than masking them out and preserving the data.
Is this how it is supposed to work or am I missing something?