Questions about char arrays as constants
dspot
Posts: 23
I defined this in my code:
and found an error in compiling
So, what I did was just to omit the 12 so it becomes cSome[].
When I did a send_command like
and looking into the diagnostic window, it seems that the quotes are also sent. What am I doing wrong?
DEFINE_CONSTANT char cSome[12] = "'E0A',$02,'02D30002'"
and found an error in compiling
ERROR: d:\jobs\research\testing.axs(83): C10583: Too many elements in initializer
So, what I did was just to omit the 12 so it becomes cSome[].
When I did a send_command like
SEND_COMMAND dvTV,"'PASSTHRU-',cSome"
and looking into the diagnostic window, it seems that the quotes are also sent. What am I doing wrong?
0
Comments
Try this:
For an explanation check out Tech Note 531: How to Initialize Character Strings in the DEFINE_CONSTANT and DEFINE_VARIABLE Sections