From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering

Solved!
Go to solution

Hello all,

 

I have a sine wave coming from a function generator and can see it in LabView by DAQ assistant. Would any one please tell me how can I trig the signal? I mean, can I make the signal stable just like a oscilloscope?  Is there any special command (Vi) in Labview that tigs the signal?

 

Thank you

 

0 Kudos
Message 1 of 6
(7,014 Views)

Hello Soran,

 

Thank you for posting on the forums. What piece of hardware are you using to acquire the sine wave created by your function generator?

 

Typically, we use triggering as a launching point to start acquiring data or outputting data, as seen in the White Paper linked below:

“Tips and Techniques in Data Acquisition Triggering - NI-DAQmx”

 

Could you please provide screenshots of the behavior you are seeing and a description of what you would like to see?

Cameron
0 Kudos
Message 2 of 6
(6,989 Views)

Hi Cameron,

 

 

Thank you very much for your reply.

 

I am getting the wave by a DAQ card PCIe-6351. I have attached a screenshot of my code. As you see you can see Waveform Graph shows the wave (in this case tiangle). This wave is moving and I want it stable (just like when an osciloscope is used and we trig the signal).

 

Many thanks

0 Kudos
Message 3 of 6
(6,982 Views)
Solution
Accepted by topic author Soran

Hello Soran,

 

Based on the code in your block diagram, the Waveform Graph is updating continuously as it reads the data generated by your DAQ Assistant in every iteration of your While loop.  This configuration can provide a “stable” waveform in your Waveform Graph if the data you send it remains the same as your loop continues to iterate. For example, the snippet below displays a sine wave, and the waveform graph appears to display the same waveform over time because the input data does not change between iterations:

 

Graph 1.png

 

Additionally, the sampling methods you are using are an important part of acquiring your data- and thus impact how that data displays. Could you please post your VI so we can take a closer look at how you have configured your DAQ Assistant?

Cameron
Message 4 of 6
(6,942 Views)
You are also using the run continuous mode and that is just wrong. You need a while loop.
0 Kudos
Message 5 of 6
(6,855 Views)

Cameron,

 

I do appreciate your helpful message.

I have attached the code that I am using. I get the data from an optical detector. I used to use an oscilloscope but now I should process the data by LabView that is why I should make it stable.

 

Thank you very much

0 Kudos
Message 6 of 6
(6,850 Views)