Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

splitting & plotting 4 channel data in one indicator

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

0 Kudos
Message 1 of 8
(4,493 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(4,491 Views)
                                                                     
                                                                     
                                                                     
                                             
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
0 Kudos
Message 3 of 8
(4,461 Views)

I forgot to attach the snapshot of my vi as mentioned in the previous reply...hence pls find the attachment here in this post.

0 Kudos
Message 4 of 8
(4,451 Views)
Renaming a bmp file to jpg to get around the ban on posting bit maps is just rude. You dont really think that changes the file type, do you?
0 Kudos
Message 5 of 8
(4,448 Views)

yeah Dennis...i really dint understand this ban!!!!...:-(.... .jpg is taking too long to upload!!..:-(

0 Kudos
Message 6 of 8
(4,441 Views)

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 Smiley Tongue  (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

 

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 7 of 8
(4,428 Views)

Henrik....i have done d same...using save as i changed the format from .bmp to .jpg

0 Kudos
Message 8 of 8
(4,413 Views)