02-14-2011 12:30 PM
Hi,
I am little new to Labview.
I have been trying to do the following
1) Let a user input a sequence of 69 bit digital line signal one at a time in the order he want.
ex 1st line input is 10000000000000000001100000000 etc
2nd line input is 0100000000000000000001100000 etc.. like wise he input one line input at a time using a boolean array control
(the no of lines a user can input is a variable depending on the application)
2) The program store the sequence in order
3) Upon the command given by user to 'execute' all the sequence in the order should be given to DAQ at a time interval set by user.
I tried to do this by saving the sequence in a queue and the de-queing elements in a for loop, setting the N in for loop as the length of the sequence (
or the no of elements). However, For loop only output the value after last iteration.
Can anyone help me as to how to do this.
Thanks in adavance!
Pavi
02-14-2011 01:48 PM
What kind of control(s) are you using for the user to enter the data? I would suggest using a 2D array so that you can see 8 bits across and 9 rows. This may be easier for the user to use to enter the bit stream. What kind of DAQ device are you using? Are you trying to bit-bang the output? Is dequeing the elements the only thing you're doing in the loop? If you don't have autoindexing enabled for the loop output then the wire will only hold the last value. This is documented in the LabVIEW Help on for-loops. Can you upload your VI?
02-14-2011 01:54 PM
Thank you very much for your response.
I used a 1D array to get the input. I will try to do what you have suggested. It takes time for me as I am new to Labview.
I attached the file.It will be great if you could have a look.
Thank you very much,
Pavi
02-14-2011 02:02 PM
Sorry,
I have forgotten to say the DAQ type I use
Its NI USB-6509.
Also I'll refer the tutorial to know about autoindexing. Thanks!