LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a trigger to identify signal behaviour

Hello LabView community!

 

I'm a student, and completely new to national instrument and labview coding. I was given an assignment at my job to try and come up with a labview infrastructure for future tests of a upcoming device.

In simple words, the device has a mass that can close an electrical circle in certain conditions, which causes shortage. I need to provide a DC voltage to the device, and identify if shortage occurs during various tests.

I am using a portable 8 chassis cabinet with PXIe 6368 and PXI 4110.

My latest progress in this mission was to generate a similar signal that simulates a possibility of shortage during tests (generate with an external device). The signal contains a constant value of voltage followed by a sudden drop to zero for a certain time (shortage) and then immediate return to the given DC voltage.

 

I came up with the following simple loop to try and achieve my goal:

loop.PNG

Using the DAQ assistant I am able to use PXIe 6368. Sadly I couldn't get any results using the trigger options in the DAQ assistant, so I found this Trigger and Gate block 

which allows me to choose a value and behavior (Falling to identify voltage dropping to 0). Using this loop it seemed like the results were ok. Since the signal generated had a frequency of 6k Hz, The graph results showed this image

signal with and without trigger.PNG

Once I lowered the frequency to match a real test (a test that can go on for a few minutes before experiencing a voltage drop), The trigger is resetting every new loop. Once the trigger is activated, I want the data showing on the graph to not change, and store the triggered information.

That's where I am stuck right now, any guidance on how to keep going?

Also I wanted to ask, is this efficient? Am I even in the right direction? I find it really hard finding information about LabView online unlike matlab for example, so kind of afraid of making mistakes and learning bad habits by myself.

 

Sorry for the long post and thank you.

 

 

 

0 Kudos
Message 1 of 2
(729 Views)

Hi Endorphins

I would know why are you using merge signal function? You can try without merging function and output data on 2 graphs and see the behaver or use merge function but put another graph special for triggered values and customize the graph to see more date on it.

 

Regards) 

0 Kudos
Message 2 of 2
(654 Views)