01-13-2019 12:56 PM
Hello all,
I hope some of you may help me with LabView. I am completely new to Labview.
I am able to generate a triangular wave in Labview as an input to an amplifier. Now I want to acquire the output simultaneously. I don't know how to sync these two so that a single block diagram with read and write function can achieve the aim.
Please pitch in some way I can use as a guide.
Thanks.
Pieterson
Solved! Go to Solution.
01-13-2019 04:19 PM
Since you are new to LabVIEW, I'll assume you are also new to the Forums, and have not read the Unofficial Rules of the LabVIEW Forum (that might not be the correct name, and I can't find it right now ...). We are eager to help, but you need to "help us to help you", specifically by attaching your VIs or LabVIEW Projects to your posts. If you have more than about 3 VIs (as in a Project), compress the folder that contains them and attach the resulting .ZIP file.
By looking at your VIs, we can tell (and respond appropriately to):
Some other information that would be extremely helpful is to know what hardware you are using to generate the waveform to the amplifier, and what you are hoping to use to acquire the data. What are the parameters of the waveform(s) -- how many samples/second are you generating, for how long are you generating outputs and sampling inputs, etc? How many channels? [Note that some of these questions should be obvious to us by looking at the code, yet another reason to Attach the Code].
Please do not make the "mistake" of (only) attaching a picture of the Block Diagram -- some of us "go ballistic" (I confess to being one of them) when there is only a picture, and refuse to look at it. [On the other hand, if all you have is a phone, pictures are "nice" ...].
Bob Schor
01-13-2019 10:00 PM
Thank you Bob_schor.
Here I am attaching the snapshot of the block diagram. I am using NI9263 for analog output/generation of signal and will use NI9215 to acquire the output signal of the amplifier. The hardware is NI-cDAQ 9172.
Labview version 2014(32 bit)
#SAMPLE=1000
RATE=1000
1 CHANNEL FOR INPUT AND EXPECTING ONE OUTPUT CHANNEL TO ACQUIRE.
I would like to focus that I am able to generate the signal, feed it to the amplifier and see the input and output on an oscilloscope. Now, I want to acquire that output in LabVIEW simultaneously.
Regards,
Pieterson
01-14-2019 09:43 AM
Thank you for attaching a picture. As I said in my previous post,
"Please do not make the "mistake" of (only) attaching a picture of the Block Diagram -- some of us "go ballistic" (I confess to being one of them) when there is only a picture, and refuse to look at it. [On the other hand, if all you have is a phone, pictures are "nice" ...]."
I have not (and will not) look at the .jpg (if you're going to attach an image, a .png is often easier to see), but will wait for the .vi (for reasons I thought I explained).
Bob Schor
01-14-2019 11:16 PM
Thanks again Bob_Schor,
Sorry about that. Here I am attaching .vi program.
Pieterson
01-15-2019 02:08 AM
Hi Pieterson,
in your LLB there are only VIs to generate an AO signal, but no VI to read an AI signal…
Did you search for example VIs in the example finder?
There are also example VIs explaining how to sync two DAQmx tasks to start at the very same time…
01-15-2019 07:32 AM - last edited on 12-20-2024 03:15 PM by Content Cleaner
Thank you for attaching your code. Here are some comments:
Bob Schor