Jump to content
  • 0

analog discovery2 labview


kenken

Question

Excuse me for being busy.
I am a Japanese university student.
This is a question about labview.
There are two problems with the current program.
One is an arbitrary waveform generator with an amplitude of 5V, but on the front panel it is 5V or higher.
It has become. I want you to tell me why.
The other is that the acquisition time is 500ms, but 500ms is not acquired.
Why.
Thank you for your patience.

 

 

スクリーンショット (1).png

スクリーンショット (2).png

Link to comment
Share on other sites

Recommended Posts

Thank you for your response.
The explanation is very easy to understand and I am grateful.

The next question is, I am making a program that generates a digital signal once. How should I do it?
Is the icon a digital I / O?

Thank you.

Link to comment
Share on other sites

Hi kenken,

Thank you for sending the VI!

I managed to run your VI and ended up at the following conclusions:

1. In your oscilloscope settings, you were setting the vertical range to only 1V, too small to see the entire signal you were generating. Once I set it to a value larger than the peak-to-peak level of your signal (at 5V amplitude, peak-to-peak would be 10V, so I set the vertical range to 20V), the correct signal level appeared.

2. The default buffer size for the oscilloscope input channels which is provided by Analog Discovery 2 is 8192 samples/channel (please see https://reference.digilentinc.com/reference/instrumentation/analog-discovery-2/reference-manual?redirect=1#refnotes:1:note15 for details). At your set sampling rate of 20kSamples/s, this means only 409.6ms, which you obtained. Once I lowered the sampling rate to 10kSamples/s, I managed to see the 500ms you wanted.

3. However, I could not reproduce the spikes on the waveform which you showed in your capture above. Every time I ran the VI, the waveform looks rectangular. Please make sure you connect both terminals of oscilloscope channel 1: the "+" needs to connect to Waveform Generator 1 terminal, while the "-" needs to connect to GND.

I've attached the updated VI here, together with some comments next to where I made the updates.

Please let me know if you encounter any other issues.

Best Regards!

function2.vi

Link to comment
Share on other sites

I will explain the current situation in addition.
The ultimate goal is to apply a 5V voltage from the waveform generator.
Our instrument receives it and stimulates the cells.
Eventually, I'm trying to display the stimulus from that cell on the oscilloscope I'm making now.
Explain that it is decided as a detailed setting.
acquisition time: 500ms
Sample Rate: 20Ksps
Amplitude: 5V
Frequency: 50Hz

I'm sorry it's hard to understand.
However, I want to somehow complete this device.
Below is a screenshot.
Thank you.

function オシロ (2) 変更 - コピー.vi

Link to comment
Share on other sites

I will explain the current situation in addition.
The ultimate goal is to apply a 5V voltage from the waveform generator.
Our instrument receives it and stimulates the cells.
Eventually, I'm trying to display the stimulus from that cell on the oscilloscope I'm making now.
Explain that it is decided as a detailed setting.
acquisition time: 500ms
Sample Rate: 20Ksps
Amplitude: 5V
Frequency: 50Hz

I'm sorry it's hard to understand.
However, I want to somehow complete this device.
Below is a screenshot.
Thank you.

スクリーンショット (5).png

スクリーンショット (6).png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...