Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Highlighted

07-24-2020 07:24 AM - edited 07-24-2020 07:32 AM

Options

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hello. i want to convert two xy waveforms (which are in array type) to type 'signal in' so tha ti can plot them on the same Graph using Waveform Graph.

I know i can use something like the "BUILD WAVEFORM" fuction to convert my xy values to type 'signal in' and then plot then on the same waveform.

But instead of 'dt' variable of the "BUILD WAVEFORM", i want to use the real x values of each of my xy values. Otherwise the output graph is messed up, i need specifix 'x' values.

Solved! Go to Solution.

Highlighted
Options

07-24-2020 07:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

You can't use a Waveform Graph.

A waveform graph is a 1-D array of points with X values that start at t0 and increment by dT.

You need to use an XY Graph. Extract the 1-D arrays out of the waveforms and combine them. Look at the Detailed Help of an XY graph to see the various ways you can combine the data.

Highlighted
Options

07-31-2020 04:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Could not do it, i used matplotlyb + linux instead. Hail the opensource!

This is what i wanted to do:

The red is the one function, and the blue is the other function, both in the same graph.

Here is the link of the source code if anyone is interested.

https://gitlab.com/Basilisvirus/matplotlib-functions/-/tree/master/merge_two_functions

Highlighted
Options

07-31-2020 05:13 AM - edited 07-31-2020 05:16 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Christian,

well, you can use a waveform graph too:

But I agree: a XYGraph would also be my first choice for such data displays (of Y vs X relations).

Why do you think you need to use an ExpressVI to create an array of waveforms/plots? (Did you even notice the explanations in the context help of the graph?)

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

Highlighted
Options

07-31-2020 05:16 AM - edited 07-31-2020 05:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

I tried this, the issue here is that i give a 'dt' value. My data have no constant 'distances' between them.

I dont know which function to use (express VI or non-express). I am actually new to labview, but i have experience on mcu programming. I was just looking for suggestions.

Which Graph are you reffering to?

The one i see here has no 'help' option

Thanks for the suggestion/help and for your time.

Highlighted
Options

Solution

Accepted by topic author Christianidis

07-31-2020 05:26 AM - edited 07-31-2020 05:27 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator

Hi Christianidis,

@Christianidis wrote:

I tried this, the issue here is that i give a 'dt' value. My data have no constant 'distances' between them.

I also used two different dt values for the plots.

When the distance between the points isn't constant you need to use a XYGraph…

@Christianidis wrote:

Which Graph are you reffering to?

The one i see here has no 'help' option

I mentioned the ** context help** in LabVIEW: open it using Ctrl-H, then move the mouse over the waveform graph terminal:

Best regards,

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO

Highlighted
Options
This simple video is what I needed at the end, as I could not figure it out on my own. Thanks for the help everyone!

Solution

Accepted by topic author Christianidis

08-05-2020 07:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report to a Moderator