LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph XY - plot issue

Solved!
Go to solution

Hi GerdW,

 

That supposed to double simple constace not array. My mistake.

 

Have you got any idea why Graph XY only reading Force signal. It's strange as I can read signal on LVDT chart.

 

Thanks,

gregorian

 

 

0 Kudos
Message 11 of 18
(2,014 Views)

Hi gregorian,

 

did you notice all those coercion dots in your VI?

Why did you define the constants initializing the shiftregisters as "array of CDB"? Use simple "array of DBL" here!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 18
(2,013 Views)

Hi GerdW,

 

Sorted. Thank you very much.

Could you give one more advice, namely my LVDT signal is flactuating giving +-10mV, 1mm stroke of my LVDT is 30mV thus flatuacting signal is very signifivant to my results.

 

Do you know any solution for this problem?

 

Thanks,

gregorian

 

 

 

 

0 Kudos
Message 13 of 18
(2,008 Views)

Hi gregorian,

 

you might think about filtering.

One way to reduce noise is averaging - like reading 100 samples, but using the average of them…

 

On your VI:

- those array constants should be empty (right-click -> data operations -> empty array)

- clean up the whole VI (Ctrl-U)

- use BuildArray instead of InsertIntoArray

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 18
(2,003 Views)

Thanks GerdW.

 

When I change Insert Into Array function to Built Array I have got broken wire after this function as well as to Graph XY.

 

I have tried Mediam Filter but doesn't make any changes to reading values from LVDT.

 

Where should I use average function insde the loop?

 

In my case when I setup 100 samples per channel I will have array with 100 elements on output of DAQmx Read function, so I should averged the array after Index Array function. Do I understand the code right?

 

Thanks,

gregorian

0 Kudos
Message 15 of 18
(1,997 Views)
Solution
Accepted by gregorian7

Hi gregorian,

 

what's your problem with BuildArray? Ever tried one of those right-click options like "concatenate inputs"?

check.png

Why do you use Median, when you want to calc the mean? (Do you know the difference and did you read the LabVIEW help?)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 18
(1,995 Views)
Solution
Accepted by gregorian7

wrote:

 

what's your problem with BuildArray? Ever tried one of those right-click options like "concatenate inputs"?


If the number of array dimensions differ by one, it will concatenate automatically. No right-click needed.

This is also a prime example where you can cut the code complexity of building arrays in half by using complex data.

 

ComplexXYIsSimpler.png*

 

(Sorry, I don't have DAQ installed, so the VI is blank. I left the rest of the code "as is".)

 

0 Kudos
Message 17 of 18
(1,991 Views)

Hi GerdW,

 

I just went blank with those arrays.

 

Thanks again for you help.

 

Have nice weekend.

 

Regards,

gregorian

0 Kudos
Message 18 of 18
(1,986 Views)