Hello! I have attached images of my labview VI as well as the actual program for reference.
Preface: I am using the DAQmx software to acquire a voltage, but I only have the software installed on the desktop in my lab, not my laptop which is why you are seeing the ? blocks. Don't worry, I am able to acquire the voltage correctly!
The desired result: I am wanting to acquire the voltage waveform and pull out a value at the current time to be compared to the logic operations shown in the bottom portion of the block diagram (the Schmitt Trigger). When the original waveform passes the upper and lower limits, the schmitt trigger boolean turns on and off respectively. Ultimately, I hope to use the schmitt trigger logic operation to then build a square waveform corresponding to the time when the schmitt trigger boolean turns on and off.
The issue: I originally tried comparing the waveform directly to the logic operations and of course was unsuccessful. I then tried following some forum posts to try to convert the waveform into an array, and then to index the array to a given element so that it would output the value at the current array length. I think my issue is that my sampling rate is so large (100000 samples/sec) that I need to have an array that is constantly increasing in length. Either that, or I need some other way to pull a continuous value from the waveform so that I can then use the schmitt trigger to build a square waveform.
Am I going in the right direction with this? Or is there an easier way to compare a waveform to the logic shown in the bottom of the block diagram? I am so thankful for any help you could offer me.
Thank you,
Cason Smith