06-09-2018 12:07 PM
Hello,
I would first like to say that I am new to LabVIEW, and so my VIs might not be the "best way" to do things. I am attempting to send a simulated signal to a device through the use of a PXIe-6363. This simulated signal should be sent continuously, but the two waveforms are supposed to appear only once every second. The simulated signal should be able to have a varying latency between the gaussian monopulse and the sine pulse following it, which I believe is working correctly.
Furthermore, I am attempting to trigger this simulated signal using the input from a PXI-5122. The PXI-5122 reads in an analog signal similar to the gaussian monopulse that is part of the waveform in the VI. As soon as the analog signal is read in (which also occurs once every second, although i can very my device to have it done twice every second) the simulated signal is supposed to being being sent back into the input of the device. I do not believe that I am doing this triggering correctly right now.
The issues: Currently, my device is reading the simulated signal in but there are a lot of missed readings. I believe this is because the signal is not being sent close enough to "real-time" for the device to be able to get a consistent reading. Furthermore, I do not believe that the "triggering" I am attempting is doing anything meaningful. I am using producer-consumer to try and accomplish this task, but as stated above I am new to LabVIEW as well as the producer-consumer architecture. Any help is greatly appreciated. Attached are the VI (for LabVIEW 2016) and a VISnippet just in case.
Solved! Go to Solution.
06-11-2018 04:16 AM
A few comments:
Mike...
06-19-2018 01:27 PM
Mike,
Thanks for your reply, and sorry for my delayed response. Through your suggestions and a few modifications of my own, I've changed my VI a little and it works much better, being able to send the generated waveform using the APFI0 trigger to sync with my external device.
I have one last issue I'm running into, which is having my signal be sent only when my trigger level is met. The trigger source is a pulse that can happen once, twice, or four times every second. I want my function generator to be able to send the generated signal once, twice, or four times as needed by the trigger source. Right now, it just sees the trigger signal and begins writing the generated signal once every second, independent of whether the trigger source then begins sending the pulse twice every second.. Any suggestions?
06-20-2018
04:42 PM
- last edited on
01-10-2024
02:07 PM
by
migration-bot
Hi,
I think this could be a really helpful information
NI-DAQmx Data Acquisition Triggering Techniques Using LabVIEW
06-22-2018 08:07 AM
Andres,
Thanks for the links. While they didn't exactly have what I need, they did lead me to a different way of phrasing my question and finding out about the "Start.Retriggerable" property which was exactly what I needed. My VI works perfectly now.