05-29-2017 05:15 PM
I want the user enter the interval number, let's say he enters 10. Then for i=1; i<10 , i++ , then next time if he enters 5 , loop runs for 5 times
so when I created a for loop in labview the number should be constant. The input value is a string so how do I convert string to constant?
Solved! Go to Solution.
05-29-2017 06:23 PM
You seem to be speaking in some version of C. This is LabVIEW -- get used to it. Users can enter data in any kind of Control -- if the control is a numeric control, the input will be a number. If the control is a String control, it will be a string. The Block Diagram has (String) functions to convert strings containing representation of numbers (e.g. "10") into number (such as the number ten).
I regret that the Getting Started with LabVIEW Tutorials have been (temporarily, I hope) moved from their place at the beginning of this Forum. You really need to learn the basic elementary parts of LabVIEW ...
Bob Schor
05-29-2017 06:23 PM
So I changed it to numeric indicator..still same problem
05-29-2017 06:24 PM
Sorry yes I meant to write a pseudo code rather than labview code..my apologies
05-29-2017 06:25 PM
Thank you! I changed it to numeric control..