09-12-2011 04:17 AM
IS it possible to convert a string from 12:30:55 to a numeric . output of numeric should also display 12:30:55
09-12-2011 04:25 AM
Hello,
Is it ok for you to use a timestamp instead of a numeric?
If yes, you can use the "scan from string" function like this :
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 06:37 AM
NO
See the below code in that my time string will be incremented which i have to give to x axis of waveform . once see the code what i have attached you will come to know clearly
09-12-2011 07:00 AM
Oh, ok... the timestamp format can be cast to DBL with the "to DBL" primitive that you can find in the numeric palette.
Then to have your X scale to display time in the format (HH:MM:SS) you can right clic on the graph, select properties, go to the "Display Format" tab and edit the X-scale format as you wish, see example below :
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 08:13 AM
no sir see this code now my input is string and output should be in dbl what to do
09-12-2011 08:21 AM
Is this ok?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 08:25 AM
Hi,
You can also thank TiTou for his work and his answers trying to help you instead of changing your needs with examples without any explanations!
Regards,
Olivier L. | Certified LabVIEW Developer
09-12-2011 08:27 AM
output form of dbl should aslo appear as 55:06:33
it should not display 63393
09-12-2011 08:28 AM
HI Olivier,
How comes you're blue? Are you or have you been an NI employee?
Don't worry I'm used to customers who have evolving needs 😉
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-12-2011 08:29 AM
And you should try to think about a solution by yourself!
It's not possible for a numeric Control to display Time Values, that's why Timestamp controls exist!
Olivier L. | Certified LabVIEW Developer