08-28-2015 07:24 AM
Decimal String to Number
String >> Number/String Conversion palette
08-28-2015 09:30 AM
@RavensFan wrote:
Decimal String to Number
String >> Number/String Conversion palette
Duh! Thanks. If was a snake it would have bit me.
I also found that scan from string also works. Not sure which one is more appropriate.
Thanks again,
The Dude
08-28-2015 09:32 AM - edited 08-28-2015 09:33 AM
You can use either.
The Decimal String to Number is simpler and does one thing well.
Scan from String is a bit more complicated, but has a lot more flexibility allowing you to grab multiple values and specifically define the formats for each of them.
If the Decimal STring to Number does what you need, then use it. If you need something more sophisticated, then use Scan from String.
08-28-2015 09:44 AM - edited 08-28-2015 10:04 AM
Here is my "Timer Loop" I use all the time for waiting between instrument scans if I have nothing else to do while waiting.
I use a lot of state machines so the Scan Time (brown cluster) is sent to a shift register. That way on the next wait state, the time of the last scan is used as the start time of the wait. This makes up for any delays that happen during other states so your timer is "real time".
Here is an example of a simmilar Timer used in a state machine with an Event Structure to handle the Stop button.