12-21-2017 07:43 PM
Hello,
I am trying to translate a LabWindows/CVI program to LabView, but I've hit a snag in my development. The way the CVI program works is it starts running a continuous waveform with regeneration disabled and registers a buffer generation and writing function to DAQmxRegisterEveryNSamplesEvent. This makes the code responsive to the signal voltage controls on the front panel. I've searched the LabView DAQmx functions but I can't find it anywhere. Is there such a function in LabView, or am I looking at putting an event handler on a separate thread and calling the function manually? Thank you for your time and please have a nice day.
Surge
Solved! Go to Solution.
12-21-2017 08:34 PM
Attached is a LV 2017 Example using an event structure to do what I think you are talking about.
12-21-2017 08:36 PM
Hello rpursley8,
I am running LabView 2015, could you save your VI in a way that will make it compatable with my version? Thank you very much for your time.
Surge
01-03-2018 09:42 AM
Try this
01-03-2018 04:58 PM
Randall,
That's a pretty solid solution, thank you. That's essentially what I ended up doing, except I generated the sine wave once and multiplied it by the amplitude because I figure FP multiplication is cheaper computationally than computing sine, and I put this entire loop on a separate thread so I could output a waveform and read simultaneously in another part of the program. My experiments run for a long time (up to 24 hours) and this allowed me to keep the UI responsive while the experiment runs in the background. Attached is what I did in case you're curious. Thank you very much for your time.
Surge
01-03-2018 05:06 PM
Of course you could just drop the whole darn thing off the DAQmx Events palate.
but Backsaving from 2017 is an option too
01-04-2018 09:45 AM
That is not very useful in that form for me. I keep a snippet with the while loop and the DAQmx vis that I usually use included.