From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Processing data in labview

Hi everyone. I was wondering, if I can measure 2 signals, compare them in a labview and see if the are synchronized or not, and then basically write to a csv file yes or no (for synchronized or not). For example, If I am measuring motor current and frequency generated, I want to see if the rise time of these 2 signals is synchronized? I don't have a VI because  its just an idea and I have no idea how to implement it if its possible. Thanks a lot

0 Kudos
Message 1 of 16
(551 Views)

LabVIEW has all the tools for that ( measure signals, doing math and signal processing and writing to a text file, etc.).

 

The main problem is probably defining what "synchronized" means and what kind of differences are acceptable to pass and this is completely independent of any programming language. Once you come to a consensus for that, the implementation in LabVIEW will be peanuts.

Message 2 of 16
(513 Views)

@Lily3000 wrote:

Hi everyone. I was wondering, if I can measure 2 signals, compare them in a labview and see if the are synchronized or not, and then basically write to a csv file yes or no (for synchronized or not). For example, If I am measuring motor current and frequency generated, I want to see if the rise time of these 2 signals is synchronized? I don't have a VI because  its just an idea and I have no idea how to implement it if its possible. Thanks a lot


Have you figured out the signal acquisition part?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 3 of 16
(489 Views)

yes, its not a problem since I did that before . But how to process these data in a LabVIEW and get only pass or fail I didn't get. I can record it also in a csv and then compare suing python but its also not the goal here. 

0 Kudos
Message 4 of 16
(442 Views)

Hi Lily,

 


@Lily3000 wrote:

I can record it also in a csv and then compare suing python but its also not the goal here. 


How would you "compare in python"?

You just need to implement the same algorithm in LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 16
(435 Views)

With synchronized I mean they start and stop at the same time, and difference of 10% for example is acceptable. Here, for example, signals are synchronized, so after some data processing I should get True in my ideal world. Thanks

Screenshot 2024-06-06 084520.png

0 Kudos
Message 6 of 16
(433 Views)

i would check if the rise time of second signal -+10% of the rise time of the first signal. How I can do this is Labview? so far, i mostly did data acquisition in labview and data processing in python

0 Kudos
Message 7 of 16
(419 Views)

Hi Lily,

 

somehow your last message vanished…

 

There's a SignalProcessing functions palette, with a WfmMeasurements subpalette.

Lots of functions to measure pulse parameters!

Start with TransitionMeasurements…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 16
(426 Views)

Is it possible to compare sin wave and square wave in this way?  I want to see if they start at the same time or not

0 Kudos
Message 9 of 16
(410 Views)

Hi Lily,

 


@Lily3000 wrote:

Is it possible to compare sin wave and square wave in this way?  I want to see if they start at the same time or not


Yes.

 

(Please don't spread your questions for the same topic over several threads!)

Best regards,
GerdW


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