05-29-2009 03:45 AM
Hey
Solved! Go to Solution.
05-29-2009 06:35 AM
Which version DASYLab do you have?
How do you get the string? via RS232?
05-29-2009 07:08 AM
Hey
I using both Ver 8 and 9. I am rebuilding our oldest test machine (ver 8 ).
The input er by barcode reader. Input from keyboard by Action -> Enter String.
Regards
Benny
05-29-2009 07:19 AM
I just realized that I didn't install DASYLab in this lapto but, unless somebody can answer this today, I will try this weekend. I am not atthe office today.
In any case, in Ver 9, you can perform many string manipulation action in the string variable section.
05-29-2009 07:36 AM
This should be the same in V8 and V9.
Set up an extended Expression in a global variable
The formula is
strval(substr ( ${STR_1}, 1,3 ) )
05-29-2009 07:43 AM
Hey
Yes it is solved.
Regards
Benny
02-15-2018 02:25 AM
I use the Expression in the variable property setting. The formular is: strval (substr (${STR_1} ,3 , 4) )
It works well in my simulation program. But when I write this small program with my main program, it shows some error. The screenshot ist linked to this subject. Al the setting are same. I am so confused. Can somebody help me?? I will very appreciate that.
Thank you very much!!
02-15-2018 07:40 AM
I do not get this message when I set up as you have done.
What does the current value of the string look like?
Also, what version of DASYLab are you using?
02-15-2018 08:35 AM
Hi CJ,
I want to use Dasylab to collect some data from a device through a RS232 module.
There are 2 types of Intput Signal. One is started with "A" and the other one is started with "B". And I have already set these two Signals into String 1 and 2. (use fomular "A" a $1 \r) Now I want to seperate these String into different variables. An example is showed below.
string1: 861200 into Variable1: 86 Variable2: 1200
Version of DASYLab is 2016 Basic