Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to decompose a 4 line string?

How can I split a 4 line string and then be able to parse a certain part of the decomposed string?  I am using a Hart Scientific 1529 Thermometer.  It has 4 channels and i've attached some sample data that I've collected along with the .vi I am using for collection.

The data is gathered 4 lines at a time once per second for each measurement.  I tried wiring a "string subset" followed by a "Fract/Exp string to Number"  (to the Serial Read) but that gave me the 4 values of the temperature one after the other.  I would like to have each channel output to an individual numeric indicator (4 total).




Download All
0 Kudos
Message 1 of 5
(4,180 Views)
It appears that the channel number is part of the string. Use the string subset to get this and wire it to a case statement. Each case would have a different indicator inside.
0 Kudos
Message 2 of 5
(4,172 Views)
Thanks for the advice.  I can see how I will be able to use the case structure using the string subset to create 4 cases (if i just keep the channel string). But then how can I display each individual value for that channel (won't the string still contain all 4 values)?
0 Kudos
Message 3 of 5
(4,150 Views)
What don't you understand? I said you would put separate indicators in each case statement. Below is an image of how the first 2 cases of a single case statement would be done.
 
 
This is pretty elemental LabVIEW programming. You should look at the resources for Learning LabVIEW at http://www.ni.com/academic/lv_training/how_learn_lv.htm


Message Edited by Dennis Knutson on 07-29-2008 12:12 PM
0 Kudos
Message 4 of 5
(4,145 Views)
Yea i figured it out once I tried it.  You had the impression you had explained what you were thinking.  I guess it's clear if you use LabVIEW everyday.  Thanks very much for the advice.
0 Kudos
Message 5 of 5
(4,139 Views)