Character Transmit Limits
TurnipTruck
Junior Member
Greetings,
I have been doing some work lately on a project in which I am dealing with large (~500) byte strings.
Through the process, I have encountered many of the limits of Studio debug, etc.
I am trying to display these strings on an NXT-CV12 using:
However, the panel is only able to display the first 200 or so characters although there exists more than the 200 in the array.
Have I run into another system limitation?
I have been doing some work lately on a project in which I am dealing with large (~500) byte strings.
Through the process, I have encountered many of the limits of Studio debug, etc.
I am trying to display these strings on an NXT-CV12 using:
SEND_COMMAND dvNXT_CV12,"'@TXT',1,cBIG_MESSAGE"
However, the panel is only able to display the first 200 or so characters although there exists more than the 200 in the array.
Have I run into another system limitation?
Comments
-
It's a SEND_COMMAND limit, which is approx. 200 bytes. Look up the ^BAT command in Software History or AMX-PI for help with your problem. This command will let you append text to your buttons.
Edit: Typo -
Thaks for your timely reply.
Do you know if this also applies to SEND_COMMANDs within a master? Such as a SEND_COMMAND to a virtual device.
How about a SEND_STRING from one master to a virtual device in another> Can I get away with more characters? -
It's a SEND_COMMAND limit - any kind. SEND_STRING has about a 2000 byte limit - any kind.
-
^BAT with a queue worked like a champ.
Thank you. -
Sure thing. You shouldn?t need to build any queue though (unless you have some other traffic concerns or programming reasons) I?ve spun around in a FOR loop before and blasted ^BATs to fill up an entire page with text and I didn?t run into any problems. The redraw gets a little slow when you have a gigantic button with word wrap turned on for formatting but it never missed a beat.
-
Well, not exactly a queue.
I'm filling a temporary array with what I want to send,
@TXT with a GET_BUFFER_STRING for the first 100 characters,
WHILE the temporary array has more characters I am GET_BUFFER_STRINGing the balance in groups of 100.
Working like a champ, and fast too! -
Are you getting ^BAT to work with 100 characters at a time or is that just a typo? The documented limit is 50 characters; I never tried it with more than that.TurnipTruck wrote:WHILE the temporary array has more characters I am GET_BUFFER_STRINGing the balance in groups of 100. -
Joe Hebert wrote:Are you getting ^BAT to work with 100 characters at a time or is that just a typo? The documented limit is 50 characters; I never tried it with more than that.
No typo, working with 100 characters. I was unaware of the limit of 50. I'm going to change mine to 50 now that I know this just to be sure. -
I've had this running for months with out a hick up.
if (sForecastsSent[1].description != sForecasts[1].description) { SEND_COMMAND dvTPWeatherArray,"'!T',nFeedback[VT_forecast_1],LEFT_STRING(sForecasts[1].description,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_1]),',0,',MID_STRING(sForecasts[1].description,101,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_1]),',0,',MID_STRING(sForecasts[1].description,201,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_1]),',0,',MID_STRING(sForecasts[1].description,301,100)" sForecastsSent[1].description = sForecasts[1].description } if (sForecastsSent[2].title != sForecasts[2].title) { SEND_COMMAND dvTPWeatherArray,"'!T',nFeedback[VT_fcastTitle_2],sForecasts[2].title" sForecastsSent[2].title = sForecasts[2].title } if (sForecastsSent[2].description != sForecasts[2].description) { SEND_COMMAND dvTPWeatherArray,"'!T',nFeedback[VT_forecast_2],LEFT_STRING(sForecasts[2].description,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_2]),',0,',MID_STRING(sForecasts[2].description,101,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_2]),',0,',MID_STRING(sForecasts[2].description,201,100)" SEND_COMMAND dvTPWeatherArray,"'^BAT-',ITOA(nFeedback[VT_forecast_2]),',0,',MID_STRING(sForecasts[2].description,301,100)" sForecastsSent[2].description = sForecasts[2].description }
It was actually introduce to me by some one else on the tips list for my RSS Weather module.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
