LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to break a string!!

You don't need any sort of special end character. All you have to do is take the data after the last "x" in the string and append it to the beginning of the next string you read from the serial port.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 21 of 34
(1,762 Views)
Ok can you tell me how to make changes in the GetXY.vi which has been attached before in this thread...

0 Kudos
Message 22 of 34
(1,759 Views)
Here try this... Wire the output of the read to the string input.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 23 of 34
(1,742 Views)
Hi Mike,
I was wondering, if I could display my  data out in the form of any graph. I tried wiring XY graph indicator witht the data out wire. But it gives me an error saying that the source is 2D array and sink is 1D array of two elements.
How should I modify so that I can show my position in the graph. Like a point moving from 1,1 to 2,2 or 34,45 or 234,345...etc...

0 Kudos
Message 24 of 34
(1,695 Views)

Check the online help and the shipping examples for xy graphs.

xy graphs don't accept 2D arrays!

Easiest would be to transform your 2D data into a 1D array of complex data type and feed it to the xy-graph. It will graph imaginary vs real.

You can also feed it a cluster of an 1D x-array and 1D y-array, or an array of clusters, each cluster being an xy pair.

Message 25 of 34
(1,687 Views)
Yeah, I too was wondering of the first option you said...I'm attching a image of my XY coordinates indicator as 2D array...
Can you help me out how should I proceed further to display the position as X vs Y on a graph...
0 Kudos
Message 26 of 34
(1,679 Views)
Here are two possibilities (cluster and complex). SInce your data is integers, you might want to go with the cluster.
 
 
0 Kudos
Message 27 of 34
(1,664 Views)
Yes !!
This is working great! but my motive is still not fully solved.Smiley Sad
Since data from the serial port is coming in the form of X,Y coordinates everytime this portion of the code runs, it plots the following point on the XY graph.(Erasing the older point) and thus one can't rack the pattern on the graph. Isn't there any feature by which I can overwrite the data so that I can see some pattern of XY points coming up everytime a serial read is done.
I mean to say the graph should get updated and should show not only the current point but also the previous points. Is that possible??
Rohit
0 Kudos
Message 28 of 34
(1,656 Views)

Just built the data in in a shift register, for example.

 

0 Kudos
Message 29 of 34
(1,650 Views)
Oops Alten,
Still some bugs coming up...According to the vi attached by you above...I did the following changes but still it's showing the current value only and not all values...I'm attaching both my full vi as well as the jpg of the concerned part for your notice.
Can you tell me what is going wrong here?


Download All
0 Kudos
Message 30 of 34
(1,636 Views)