09-21-2012 07:53 AM
Hello all
How to split 4 variables that are being displayed in one indicator?......I am reading data from a microcontroller serially...microcontroller acquires data from 4 channels all of which are temperature readings...my aim is to plot these 4 temp.readings seperately....but as the output of "VISA Read" is only one string indicator in which all my 4 temp. are being displayed how to split/seperate these readings and plot them differently?...
Best regards
09-21-2012 07:59 AM
Is there a specific format for the data string coming from the microcontroller? Are the data delimited with a tab or comma? Are the temperatures a set number of characters?
We need to know the protocol in order to be able to help.
09-23-2012 01:21 PM
Temperature from microcontroller is in ASCII format ...microctrler sends 1 packet of data with 4 temp.readings in it at a time.....each temp.reading is 7 bytes wide so in total 28 bytes come at a time through serial port and after each 4 readings there is a delimiter "~" and then next packet of 4 comes......I am unable to bifurcate them......i am attaching a snapshot of my vi where all 4 temp.are highlighted and which are needed to be displayed seperately as temp 1,temp 2....etc...pls do the needful .
best regards
09-24-2012 12:10 AM
I forgot to attach the snapshot of my vi as mentioned in the previous reply...hence pls find the attachment here in this post.
09-24-2012 12:46 AM
09-24-2012 02:10 AM
yeah Dennis...i really dint understand this ban!!!!...:-(.... .jpg is taking too long to upload!!..:-(
09-24-2012 06:18 AM
sku...
you didn't get the point. Instead of posting a bitmap picture of >4MB (that can take a while to upload) you should have converted the picture into a jpg (photo) or png (best for drawing/screenshot) format by using MSPaint or another software (usually by 'save as...' and then choosing the graphic format to save.. )
You end with 19kB instead of 4MB
(I used irfanview ..)
You should really learn that if you don't want to annoy other readers 😉
To your problem:
Read the string with visa and send it into a scan from string vi..
post you vi with some data in a string indicator (right click on the indicator after reading some data and click data operations.. - make current values default ; save the vi and post it here
09-24-2012 11:54 PM
Henrik....i have done d same...using save as i changed the format from .bmp to .jpg