LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Divide and Plot a String Output

Solved!
Go to solution

Hello Everybody,

 

my LabView programe is receiving Values from 4 Channels of a DAQ-Unit.

However, the next step is to divide the String (which contains these four values) and show them into a seperate display.

Furthermore, i would like to plot these values in a seperate graph.

 

Could someone explain to me, how i can realize it?

 

Cheers and thank you in advice,

Marc

 

P.S.: the .vi is in the attachmentLabViewTasks.png

0 Kudos
Message 1 of 11
(3,733 Views)

Hello,

 

It's possible to get more informations about the format of received data. May you share a picture of the result in read buffer indicator. 

 

Best regards.

0 Kudos
Message 2 of 11
(3,707 Views)

It's something like that.

Every second the DAQ-Unit measured a value on every channel.

So i want to split the 4 Values into seperate displays and plot every value in a seperate graph (value vs time).

 

Unbenannt.png

0 Kudos
Message 3 of 11
(3,701 Views)
What's the model number of your instrument. Did you do a search for an existing driver? Your code is poorly written with the constant opening and closing of the VISA session and the file I/O. The parsing of the string is trivial and you would benefit from some of the free LabVIEW tutorials.
0 Kudos
Message 4 of 11
(3,688 Views)

Hello MarcTUD,

 

a simple way

Parse String.png

Hope it helps

 

best regards
Alexander
0 Kudos
Message 5 of 11
(3,649 Views)

Thanks for your reply, it helps a lot!

 

Next, i need to transform the values from the array 1 into numerics (decimal numbers) and need to plot each course into four wave forms.

 

Could you explain how i could do that?

 

Cheers,

Marc

0 Kudos
Message 6 of 11
(3,635 Views)

Hello Marc,

 

you can use the arry to cluster function and then put the values out to a chart.

 

Attached the VI.

best regards
Alexander
0 Kudos
Message 7 of 11
(3,621 Views)

Hi,

 

I inserted your solution into my programe (works fine by the way).

 

What I mean is, that I have now an array with 4 lines (numerics) - and for each line, I would like to create a graph waveform (value vs. time).

 

Do you know what I mean?

0 Kudos
Message 8 of 11
(3,611 Views)

@MarcTUD wrote:

Hi,

 

I inserted your solution into my programe (works fine by the way).

 

What I mean is, that I have now an array with 4 lines (numerics) - and for each line, I would like to create a graph waveform (value vs. time).

 

Do you know what I mean?


Have you made an effort to write this code or you expecting to be given VIs for your entire project ?

0 Kudos
Message 9 of 11
(3,600 Views)
Solution
Accepted by topic author MarcTUD

Hello Marc

attached an example

best regards
Alexander
0 Kudos
Message 10 of 11
(3,588 Views)