ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Square wave connected to Convert from Dynamic Data

I have connected a square wave, generated by Simulate Signal.vi, to a Convert from Dynamic Data.vi. The Convert from Dynamic Data.vi is set up for an output of Single Scalar, Boolean (TRUE and FALSE). I have proved to my satisfaction that the square wave is being generated correctly between 0 and 5 volts, the frequency is variable between 100 hertz and 2000 hertz. The problem is that all the Convert from Dynamic Data.vi gives is a 'FALSE' output
0 Kudos
Message 1 of 2
(2,674 Views)
The output of the Simulate signal vi is an array. So when you convert to a single boolean, you only obtain the last array value. Either ask the Simulate signal vi to return a number of samples equal to 1, or ask the Convert vi to return an array of booleans.

CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,667 Views)