ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increasing an array and making a drop-down menu

Hi everyone,
 
I would like to do two things:
 
1.  After scaning tag IDs from an RFID reader from a serial port and individually entering them into an array (using auto-indexing), I get a n x 1 array (where n is the number of iterations, or rows).  Everytime I scan an entry in, I would like to add two things:  the temperature it was scanned at, and the time it was scanned at.  I am getting the temperature from the serial port, and am getting the time stamp using LabVIEW.  This would then make the array a n x 3 array. 
 
2.  The second thing I would like to do may sound simple.  I would like to make the n x 3 array I scanned in a drop-down menu.  It need not have the temperature and time appended to it, but it needs to have the tag IDs.  I am only doing this to convserve space on the PDA screen. 
 
I am attaching a sample file of what I am currently working on.  The "Read String" field represents the tag ID's i'll be reading.  It'll be in ASCII.
 
I'll appreciate any help 🙂
Thank you!
 
 
Amal Patel
0 Kudos
Message 1 of 3
(3,858 Views)
1. Simply make a 1D array of your 3 elements first (using "built array" with three inputs) inside the loop, then make it into a 2D array (e.g. at the loop boundary using autoindexing. You can also built it after the loop as in the image below.
 
2. Actually, you're not getting a "n x 1" 2D array, but a simple 1D aray of size N. You could for example feed it to a "strings[]" property of a ring control.
 

Message Edited by altenbach on 10-29-2006 08:35 AM

0 Kudos
Message 2 of 3
(3,852 Views)
Thank you for your help.  I will try it out 🙂
 
Amal Patel
0 Kudos
Message 3 of 3
(3,827 Views)