02-02-2018 07:08 AM
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
02-02-2018 07:16 AM
02-02-2018 09:30 AM
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
02-02-2018 09:45 AM - edited 02-02-2018 09:46 AM
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
02-02-2018 10:02 AM
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
02-02-2018 10:12 AM - edited 02-02-2018 10:13 AM
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?)
02-02-2018 10:54 AM
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".)
02-02-2018 11:20 AM
Hi GerdW,
I just went blank with those arrays.
Thanks again for you help.
Have nice weekend.
Regards,
gregorian