LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why am I not being able to see signals streaming on the waveform chart? What am I doing wrong?

Solved!
Go to solution

My consumer loop has 4 states. I would like to see data streaming continuously when I click "Generate" button only once, but instead I am only getting signal in segment and I have to keep clicking "generate". I just want to see data streaming continuously when I click once, not multiple times. Can someone please help?

0 Kudos
Message 1 of 7
(1,217 Views)

You send 1 Message to the consumer, so you get 1 value for the chart.

One thing you can do to get values continuously is to enqueue another message "Generate" in the case "Generate" (sending a new message to itself).

0 Kudos
Message 2 of 7
(1,203 Views)
Solution
Accepted by topic author GRCK5000

Hi UliB,

I tried modifying the code as you suggested, but did not work. 

GRCK5000_1-1687533885053.png

 

 

 

 

0 Kudos
Message 3 of 7
(1,179 Views)
Solution
Accepted by topic author GRCK5000

This is what you're doing:

Antoniooh_0-1687535112564.png

 

This is what UliB suggested you to do:

Antoniooh_1-1687535165196.png

 

 

0 Kudos
Message 4 of 7
(1,171 Views)

Thanks Antonio for the clarification, but it still did not work unfortunately.

GRCK5000_1-1687536160327.png

 

 

 

0 Kudos
Message 5 of 7
(1,162 Views)
Solution
Accepted by topic author GRCK5000

Just implemented what was suggested and it works:

raphschru_0-1687537298004.png

I don't know why you have changed your code since the first post but here are some comments on your last screenshot:

 - The random value should not be set as a parameter of your command since it is the "Generate" case that has to generate the value (obviously).

 - You should not put a Dequeue Element inside the case structure of the consumer, that makes no sense. The consumer is here to dequeue messages one at a time and each message type has its case.

 

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

Thanks guys!!!! It works. All you guys deserve a best answer. And more thanks to Raphschru for the great explanation of this works. 

0 Kudos
Message 7 of 7
(1,140 Views)