07-03-2013 12:14 PM
So far, I have tried using the simulate signal vi and created a square wave at 360 Hz. I am then using the basic trigger detection vi to determine when the square wave reaches it's peak value (which should be 360 times per second, right?).
I then have a boolean indicator to show when the trigger is detected. This signal will eventually be used in a case structure to tell the program when to go through with a particular step (the one that should be 360 times per second). However, as you can see from my attached vi, the indicator shows that the trigger is not going off 360 times per second. Any ideas on what I am doing wrong?
07-03-2013 12:22 PM
Your VI doesn't seem to match your description.
I don't see a Simulate Signal or a square wave. I see a DAQ Assistant.
I don't see a case structure, I don't see a boolean indicator, I don't see anything that is related to 360 times per second.
07-04-2013 04:34 AM
Sorry, I accidentally attached the wrong file. Here is the correct one.
07-04-2013 04:36 AM
Here is the correct file
07-04-2013 06:37 AM
I'm pretty sure Basic Level Trigger Detection only returns the first trigger. You can either modify the sub VI to return multiple triggers (not hard) or repeatedly run BLTD and reset it after every trigger is found.
07-04-2013 07:22 AM
Can you explain what you mean about editing the subVI?
07-04-2013 07:52 AM - edited 07-04-2013 07:54 AM
Have a look at the following for one way of getting this done: https://decibel.ni.com/content/docs/DOC-21702
Regarding editing the VI, the BLTD VI calls a library function to find all crossing points in the input data. It's just that it's been wired only to return the first trigger, rather than the subsequent ones.
Somebody on here did a fantastic job a while back of creating a VI called "Detect All Triggers" where they've edited BLTD, but I'll be damned if I can find it anymore.
Edit - found a version of it here: http://forums.ni.com/t5/LabVIEW/Reading-Digital-Pulses-from-a-Flowmeter/m-p/641648#M296477
07-04-2013 07:59 AM
How do I actually edit the BLTD? When I double click on the icon, I just see things to change settings that are already inputs to the vi (level, hysteresis,etc.)
07-05-2013 01:55 AM
Hi Laura,
i would recommend some general LabVIEW Training like our online resources.
You can visit -> http://www.ni.com/gettingstarted/
Here you can learn the basics and how you can create applications.
The best way would be to visit our training courses:
http://sine.ni.com/tacs/app/fp/p/ap/ov/lang/de/ol/de/oc/de/pg/1/sn/n8:28/
Greetings from Munich.
Andreas K