04-23-2009 11:13 PM
Hi All,
I have a project where I need to interface with an old memory device. I have logical data such as computer data bus, memory data bus and address bus. I wanted to use LabView to output these signals sequentially.
I have recorded signal exchanges between the memory unit and the old computer in which it is placed. I have many lines of binary code where each bit represents a specific form of information such as a data word bit or a control signal. I was hoping taht I could write a LabVIEW program to take these lines from a listbox or table and output them through a FPGA device I have.
What I was trying to determine was how do I get LabVIEW to access a specific line in a listbox/multicolumn list/table? Once I've determined that, how do I get it to increment through the table and output the remaining data?
Thanks in advance,
Atommic
04-23-2009 11:29 PM
Hi Atommic,
For accessing a specific line in a listbox / multicolumn listbox / table you can use a property called "Value". In this property you will get the array as the value of listbox / multicolumn listbox / table. Then you can use the index array function available in the array functions pallete to access a particular line. Then you can incerement the row index value by using a FOR loop.
MRK (CLAD)
04-23-2009 11:45 PM
Would you possibly be able to link me to definitions of the functions you're talking about? I'm a bit new to LabVIEW and I'm not entirley sure how to find those specific names in the pallattes. 😛
04-24-2009
12:22 AM
- last edited on
04-27-2009
09:05 AM
by
Support
Hi Atommic,
I have attached a VI whose block diagram simply explains of what I have told previously.
Better you go through the Labview Basics 1 and 2 and labview help files.
I have attached the basics 1 pdf also for your easy reference.
MRK (CLAD)
04-28-2009 09:23 PM
Thanks mrk.
I can't view your file however since I only have LabVIEW 8.2. A screenshot of the block chart would be ok unless you can save it as a version 8.2 compatible format.
04-28-2009 10:31 PM
Hi Atommic,
I have attached the VI in 8.2 compatible format.
MRK (CLAD)
04-29-2009 11:24 PM
Ok I got the output binary comming out of the tables values. But how do I get it to sequentially increment the row number? It just needs a simple counter but I dont know how to make one, it seems like the simplest thing in the world. 😞
04-30-2009 02:58 PM - edited 04-30-2009 02:58 PM
MrK's example used the iteration counter on the loop(the box with the i) to count, this will start at 0 and add 1 each time the loop executes. If you want to count up to a value and then restart, lets say count 0 to 7 and then restart back at zero and count to 7 again over and over, you will have to either put the for loop in a while loop or use shift registers. You can use shift registers in a while loop, as shown below.