LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I do not see the waveform correctly in the VI

Hi,

I'm trying to visualize a waveform from the oscilloscope (Rigol DS1064B) into the labview. The VI I am using is the example of Rigol (is attached). I do not know what can be the problem, all I do is choose the correct VISA resource name and click run continously?? I have to do something else?

 

More information in case it is useful:The signal input in the oscilloscope is 1000,000MHz and 5Vpp. And the scale of the oscilloscope is 500us and 1V. In the beggining of the VI the scales are -0,5 to 1 for amplitude (y axis) and 0 to 0,004 for time (x axis). But when I run the VI scales change to -1 to 1 for amplitude (y axis) and 0 to 1100 for time (x axis) and only see a horizontal line on the 0.

 

Anyone know what could be the problem?

 

Tanks in advance.
 

0 Kudos
Message 1 of 21
(4,130 Views)

You are running you while loop in 100ms delay, How you will recognize the new updated data?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 21
(4,124 Views)

@Ranjeet_Singh wrote:

You are running you while loop in 100ms delay, How you will recognize the new updated data?


???? What is the relevance of this?

 

perikillo,

 

As you can see, the VI issues an autoset. The graph is also set to autoscale on the x and y axis as well as loose fit so the initial x and y values are not relevant.

 

What do you actuall see on the scope's screen?

 

p.s. Never, ever use Run Continuously until you know what it does. It is a special debug mode.

0 Kudos
Message 3 of 21
(4,111 Views)

On the oscilloscope I see a correct sinusoid, which comes from the generator. But in the VI I see only a horizontal line.

0 Kudos
Message 4 of 21
(4,084 Views)

The Read can be executed by itself. Open that and run it.

0 Kudos
Message 5 of 21
(4,079 Views)

Do you mean run the attached file (to this post), right? And what result would give me the VI? I should see the waveform in the graph of the Read VI?

0 Kudos
Message 6 of 21
(4,075 Views)

Of course you should see the waveform. You just need to select the VISA Resource Name.

0 Kudos
Message 7 of 21
(4,073 Views)

Ok, thanks a lot. Tomorrow I will try it (today I have not the scope) and post the results.

0 Kudos
Message 8 of 21
(4,068 Views)

@Dennis_Knutson wrote:

@Ranjeet_Singh wrote:

You are running you while loop in 100ms delay, How you will recognize the new updated data?


???? What is the relevance of this?

 

perikillo,

 

As you can see, the VI issues an autoset. The graph is also set to autoscale on the x and y axis as well as loose fit so the initial x and y values are not relevant.

 

What do you actuall see on the scope's screen?

 

p.s. Never, ever use Run Continuously until you know what it does. It is a special debug mode.


He is updating the waveform in 100 ms. If any new changes comes then how he will recognize it? May after 200ms old data may appear and stays till 2 sec hence looks like old datas still there

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 9 of 21
(4,058 Views)

I tried using the VI Read and the result is the same, a horizontal line, nothing changes. I don't understand because doesn't work if it is only an Rigol's example. What do you think could be the problem. By the way the communication is USB.

0 Kudos
Message 10 of 21
(4,029 Views)