LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How many elements can have an Array?

Hi !!!
 
I want make an EEPROM programmer with labview.
So, my question is: HOW MANY ELEMENTS CAN HAVE A 1D ARRAY, 2D ARRAY??!
 
Are there better forms to create a "buffer" to write the bytes into an EEPROM?
 
Do you know about some VI to use the USB port to connect an electronic circuit to send and receive info?
 
 
I'll appreciate your help for any question answered!!
 
Sorry about my english and Have a nice day!
0 Kudos
Message 1 of 4
(3,051 Views)

Hi!

I don't really understand your question. Are you asking how many elements have an Array have? What size is your eeprom. typically I would write to an eeprom register by register. the size of each register will determine the width of your array. there are some usb functions in labview 7.1. look under  ALL FUNCTIONS->INSTRUMENT I/O->VISA->VISA ADVANCED->INTERFACE SPECIFIC->VISA USB

Goy

Message Edited by SG_ENGINEER on 08-14-2005 07:19 PM

0 Kudos
Message 2 of 4
(3,045 Views)
LabVIEW allocates memory for a single array from contiguous memory.  So the number of elements you can have in an array will depend on the size of each element and the length of contiguous memory in your computer.  In LabVIEW 7.1, the largest single array I have ever been able to allocate was a shade over 1GByte (if you allocate a bunch of smaller arrays, you can get pretty close to the theoretical limit).  If your memory is fragmented by other programs, this number could be considerably less.  Dimensionality of the array does not matter.

You can communicate over a USB port using VISA.  Check out Using NI-VISA 3.0 to Control Your USB Device for details.
0 Kudos
Message 3 of 4
(3,021 Views)

You should be able to create arrays of any dimension with whatever elements you like so long as you have the RAM for it.

It sounds like you are trying to set up some in-system programming for a microcontroller or FPGA.  To communicate to the electronics via the USB port usually requires some USB-to-UART interface chip.  If this is in place on your board and you have installed the drivers for the UART chip, then the device should show up as an additional com port in your operating system.  You can address this device using the VISA protocol VIs and be able read or write data to the device.

0 Kudos
Message 4 of 4
(3,007 Views)