LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving to Spreadsheet File

altenbach, I tried changing the diagram around so I can get the Torque values.  I duplicated the case for the battery voltage but I am still have trouble.  In the keyword box, I put 'Set : Torque 1 = %d'  I put %d because I wanted to get the decimal value.  Whenever I try running it, it just goes straight to default.  What else can I do in order to get the value for Torque to show in the numeric box.
0 Kudos
Message 21 of 25
(889 Views)
When I said select a specific character from the string, I meant that I want to put that value into another indicator.  I said 'specific character' because I only want the numeric value for Torque.  And I also wanted to be able to light a LED whenever Torque 1 is used verses Torque 2.
0 Kudos
Message 22 of 25
(886 Views)
Use my example for battery voltage as template. Look up the help for "match first string". It tells you which one of the array elements matches the beginning of the given string and outputs the rest of the string. The conversion to DBL is done in case 2 here!
 
There is no %d in your original string thus it will not find a match. 😉
0 Kudos
Message 23 of 25
(886 Views)
In one example, I have 'set torque 1 =2.30'  How can I make so that a LED lights up wheneverit sees a string with torque 1 in it?
0 Kudos
Message 24 of 25
(876 Views)
Well, there is really an infinite number of ways to do this. The attached modification shows a few ways to light an LED if a certain string is present.
The main loop processes each line with 500ms delay such that the progress can be seen as it happens.
 
It also shows one possible way to format the cluster back into a string that can be written to a file at the end.
Message 25 of 25
(869 Views)