Newbie question: I am trying to use "Square Waveform.vi" to generate a waveform to send to Port A using "Write to Digital Line.vi," and am running into multiple obstacles.
My goal is to use one of the waveform generators (and its built-in phase, frequency, and duty cycle inputs) to write the I/O line high or low. According to KnowledgeBase document 20A9CHYF "What Happens When I Wire a Waveform Data Type to a Numeric or an Array of Numerics," I should be able to plop this output into a numeric function like "Greater?" and get a single boolean output (which I can use to write to the port). However, as can be seen in the attached "Skitter.vi," my output is, instead, an array of booleans, and the port doesn't want to see that.
I
've tried making use of "Get Waveform Attribute.vi" and "Get Waveform Components.vi" to try to get the most recent Y value, but I apparently need to know the index for the array, which I can't seem to determine.
As can be seen in "Skitter.vi," I've also tried using "Square Wave PtByPt.vi," hoping that it might be easier since it definitely outputs a single double instead of an array. But I can't get it to run. I'm not sure if I have the "time" input wired correctly.
In any case, this seems to be getting more and more complicated, so I'm wondering if I'm missing some much more simple approach. (Or if I'm going to have to create a digital I/O square wave generator from scratch.) Any thoughts?