LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Different data type to plot with XY graph, help needed

Solved!
Go to solution

Capture.PNG

Hi, I want to build a XY graph using those two data types. But I got an error saying its imcompatible and I dont know how to solve it. Need some help, thank you

0 Kudos
Message 1 of 10
(4,502 Views)

Hi jorge,

 

your two wires use different datatypes so you cannot "join" them.

See the context help of the XY graph to read which datatypes the graph supports…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(4,493 Views)

Yes, but I dont know how to convert to the same data type. Thank you

0 Kudos
Message 3 of 10
(4,481 Views)
Solution
Accepted by topic author jorgebarreto

Hi Jorge,

 

then you should learn about using basic functions:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 10
(4,470 Views)

Ok, thank you. If I understand now I have the two data types with the same type but  how do I plot them in XY graph? because I used build array and it's not working, Thank you again

0 Kudos
Message 5 of 10
(4,460 Views)

Hi Jorge,

 

how do I plot them in XY graph? because I used build array and it's not working,

What exactly is not working for you?

No problems for me:

check.png

 

When you have problems with your VI you should attach the VI! (I prefer LV2014.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 10
(4,453 Views)

I have the data-set from that for loop and "sat-curve" with same data type...I use build array do connect them to build a XY graph, but I cant...

Capture2.PNG

0 Kudos
Message 7 of 10
(4,447 Views)

Now is working, I used reshape array, thanks a lot for your help!

Capture 3.png

0 Kudos
Message 8 of 10
(4,440 Views)

Hi Jorge,

 

you don't need ReshapeArray: simply right-click BuildArray and activate the append mode…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 10
(4,433 Views)

Thanks a lot Gerd.

kind regards

0 Kudos
Message 10 of 10
(4,423 Views)