LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problems converting dynamic data to dbl/boolean from a simulated signal

Solved!
Go to solution

re-hi,

 

in the .vi encolsed, I have input the "simulate signal" box into a while loop, therefore the data is dynamic (you can check it with the noise moving) and the led is still not blinking ....

0 Kudos
Message 11 of 16
(1,842 Views)
It will never blink. You are creating an array that represents a square wave. You then compare the last element of the array to be greater than 3. The last element in the array is not greater than 3 so the Boolean is false. In order to get a blinking LED, you would have to gnerate the square wave point-by-point.
0 Kudos
Message 12 of 16
(1,840 Views)

Sorry to be dumbed but how can I generate it point by point ?

I really not familliar with graphical programming I'm sorry,

 

Anyway, if I am comapring the last, it should be dynamic, why the last is "static"

I thought the last element was changing realtime. When right click and select "probe" avec the ">" I see the square wave (from 0 to 1)

 

Your help is very well appreciated !

 

 G.

Message Edited by gdlbb on 01-18-2010 11:58 AM
0 Kudos
Message 13 of 16
(1,830 Views)
Try the Square Wave PtByPt.
Message 14 of 16
(1,825 Views)
And to answer your other question, all that you are doing is generating the same array over and over again. When you wire the dynamic data type to the comparison function, at that point, I believe you force the comparison function to the last element in the array. Dynamic data is evil. If you had converted to an array or even waveform data type, you would not even been able to wire that scalar up. The dynamic data type allows you to wire things up that do not make logical sense.
Message 15 of 16
(1,817 Views)
Solution
Accepted by topic author gdlbb

youuuouhouuuuuu it's working !

 

I searched Square Wave PtByPt on the forum, tried to tame it, and finally I suceed 🙂

 

(with the help from here : http://forums.ni.com/ni/board/message?board.id=280&thread.id=5981)

 

I'm still not so familiar with the "time" input to Square Wave PtByPt.vi but I managed to get it worked

 

Enclosed the .vi for simulation, and the .vi with the real DAQinputs.

 

Thank you very much Dennis !

 

gdlbb.

 

 

EDIT : I just read your explantion, thank you very much indeed, I agree it is evil.

 

 

 

 

Message Edited by gdlbb on 01-18-2010 01:07 PM
Message Edited by gdlbb on 01-18-2010 01:08 PM
0 Kudos
Message 16 of 16
(1,805 Views)