LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I output sequences of digital words?

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.

 

VI interface 

 

 

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

0 Kudos
Message 1 of 8
(4,511 Views)

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)

0 Kudos
Message 2 of 8
(4,503 Views)

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. 😛

0 Kudos
Message 3 of 8
(4,498 Views)

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)

 

 

Message Edited by Support on 04-27-2009 09:05 AM
Message 4 of 8
(4,484 Views)

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.

0 Kudos
Message 5 of 8
(4,407 Views)

Hi Atommic,

 

I have attached the VI in 8.2 compatible format.

 

MRK (CLAD)

0 Kudos
Message 6 of 8
(4,395 Views)

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. 😞

0 Kudos
Message 7 of 8
(4,369 Views)

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.

 

 

Message Edited by Robbob on 04-30-2009 02:58 PM
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 8 of 8
(4,333 Views)