04-13-2010 08:00 AM
04-13-2010 11:06 AM
Well GerdW,
I put the right time in the header
but now I need to read this time, how I can read the time and put it in seconds??
Thanks for the help
04-13-2010 12:53 PM
Well GerdW, I made an example to maybe you can understand better
I make that code:
And the result in Front panel is that:
Now I need take that time "14:46:01" and make it a number, How I can make it?
And the Identification, can be a lot of characters...
I tryed String subset but I don't work, if you can attch an image with the solution
I will be pleasure!
Thanks 😃
04-13-2010 01:15 PM
04-14-2010 07:50 AM - edited 04-14-2010 07:55 AM
Hey GerdW, I tryed what you said but it wont work =x
In my string I have a text too, I made an example here I will attach an image to you take a look
Maybe I'm doing something wrong =x
My output is showing only 0.
Because I have to use it at the concatenated string not only in data and time.
and after I have this output working, I need to take only the time and transform to a number of seconds... I know I can make it with unbundle cluster, but when I'm trying appears that I connect a time stamp to a cluster with 0 elements. How can I do it?
Thanks mate
04-14-2010 08:18 AM - edited 04-14-2010 08:18 AM
Hi EduU,
when there is other text before your timestring you have to cut that first - how should ScanFromString know about that? SFS searches for a timestamp and only finds some "garbage" text...
You can
- use another scan format string (i.e. put another "%s " in front of your scan format string)
- strip the additional string before the ScanFromString function
04-14-2010 08:42 AM
Well, could you attach a image for me with a simple example?
I think I didn't understand =x
04-14-2010 08:59 AM
04-14-2010 09:23 AM - edited 04-14-2010 09:29 AM
GerdW,
appears (too many format specifiers) I have to make one to one
I did something here and it works I will attach the image...
but I made it at labview 8.6
in labview 7.1 ( my program is in that version) I can't scan relative time... so didn't work...
I tryed extract the 3 numbers separated, but I don't know how to eliminated the ":"
works in labview 8.6:
But in labview 7.1 I don't have this "%t" at scan string... so I tryed a different way:
In output1 I get the hour, but when I try to get the minutes.... it don't appear because I have a ":" before the number... I have tryed the %s to took off the ":" but when I use %s the hole string dessapear. So I need a way to take off this ":"
Could you help me on that??
Well I understand now what you said.. I can extend the scan string to more than one variable... but I tryed what you said... and Time Stamp still don't work... but I need it to LabVIEW 7.1 so please help me with that =D
04-14-2010 09:36 AM
Hey GerdW,
I tryed here and works =D
I only have to put %f: at format string =D
Thanks for your help!
I'm really glad!
You got the solution!