12-20-2007 12:29 PM
12-20-2007 01:46 PM
12-20-2007 02:40 PM
12-20-2007 02:57 PM
12-20-2007 03:20 PM
Here is an example. Basically what you are doing is taking the input, parse out the part before the comma (Volts), take the rest of the string and repeat the operation, which this time gets you the Amps, and then repeat again to ge the timestamp. Keep looping through this until you get an empty string, ie there is nothing left to parse.
You can also use the Ext/Fract String to Number.vi (String conversion palette) to convert your string to a number, making sure that you have a double wired to the type input.
It is saved in LabVIEW version 8.2.
12-20-2007 04:21 PM
12-21-2007 07:52 AM - edited 12-21-2007 07:53 AM
There should no be any difference between 7.1 or 8.2 as far as the code goes, all the "building blocks" used have been around for a long time.
I attached a picture that has been commented some more.
I would suggest looking at some of the Array examples that are included with LabVIEW.
Basically, you are initializing a shift register to be a 2D array with either a string or a double, in this case (it can be initalized to almost anything you want) Then you add the volts, amps and temp to the array. THe shift register is what "remembers" what you entered into it from the last loop of the while loop. When the while loop stops (an empty string is received) then the output of the shift regiester is sent to the Array Indicator (String Array and Decimal Array in this case). What you can then do (not shown) is feed the decimal array into the Write to Spreadsheet file.vi and save to an excel readable file.
Let me know if you have more questions.
01-03-2008 04:44 PM
01-03-2008 04:44 PM
01-03-2008 05:01 PM - edited 01-03-2008 05:04 PM