+33
Under review

String functions

Gustav Widén (System support) 4 years ago in IQANdesign updated by Lars Bolduc yesterday at 7:28 a.m. 6

There are a few different forum questions and feature requests that I think would be possible to solve if we had added some string handling functions, for example comparison of text channel values: 

http://forum.iqan.se/topics/1006-any-way-to-store-serial-number/

http://forum.iqan.se/topics/403-convert-machine-id-to-numbers/

,string concatenation:

http://forum.iqan.se/topics/162-idea-ability-to-change-tp-channel-value-using-qcode/

and conversion from integer to text

http://forum.iqan.se/topics/863-ascii-characters-from-j1939-parameter/

Anyone else who thinks this could be a good idea?

+2

Great ideas,

I also would like the ability to have an Array of text or being able to extract text from a file.  This is for primarily for error handling.  I have devices with a very large number of possible errors.  More than what the state machine can handle (+ it is not very flexible).

I can sort my error or create Error log by number but then customer has to find code in instruction manual.

So the idea would be to be able to display a text based on an index.  If the Error file was external then it could be easier to deal with and may not tax the memory?  A Spreadsheet could be ideal thus allowing us to maintain the different languages or at least two dimensional array.

Under review

As a comment on this post, in IQANscript does have text compare. 

+1

I run into the same issue. I would like to convert 'Project Version' text value into a number so I can send it via J1939 to our telematics system. I cannot.

Have you considered sending it as text, using TPOUT? 

+1

I must match a defined bit mapping, which does not allow so many bytes.

Each character consumes a whole byte.

I have 5 bytes of text and need to fit it into 2 bytes to transmit.