07-08-2015 01:50 PM
Hi,
I need to pass a changing digital waveform (e.g. High-Low-Low-High ... where a new signal would come every clock cycle) to a single output port. I also need to input the desired waveform beforehand (preferrebly in the form 1001).
There are multiple ways to do this - I tried messing with the queue and spi functions but couldn't get them to work.
Right now I'm using an one-dimensional bool array to get the input. I then pop the first element off the array and write it to my DAQmx (this is essentially a queue). I put this in a loop such that it would run until the array is empty but for some reason it just pops the first element. It isn't moving to the others ...
This is my first time with labview so explanations are greatly appreciated.
I've attached a picture of what I have so far.... It's important to note that I'm eventually going to input 32 bit binary strings so that's why my block diagram is a little funny. Also, Arrays 2 and 3 aren't doing anything special - they're indicators.
Solved! Go to Solution.
07-08-2015 02:01 PM
goozeman wrote:
Right now I'm using an one-dimensional bool array to get the input. I then pop the first element off the array and write it to my DAQmx (this is essentially a queue). I put this in a loop such that it would run until the array is empty but for some reason it just pops the first element. It isn't moving to the others ...
Of course not. You are not updating the array. Even then, I think what you really want to do here is use a FOR loop so that you can autoindex on the array.
07-08-2015 04:26 PM
I actually realised that shortly after posting. Thank you anyway!