Hi, I recently designed a program (attached below as "New Write.vi") that does the following:
Asks a user for their input on
m rows and
n columns, and proceeds to build a
m x
n array that is filled with numeric controls.
The numeric controls in the array have a data range of 0 to 2. When the
user hits the "save" button, the values in the array are written to an
Excel file, and the array is reinitialized to its default values. The
user can then proceed to input more values, and then hit the "save"
button again to append the data in the array to the same Excel file.
Afterwards, the user will open up the other program (attached below as
"Read test.vi"). When the user presses the "Open" button, she can
select the file (i.e. the one that the write VI creates). Somehow, when
the "Run" button is pressed, it should write to the DAQPad (I am
currently using the USB 6507 with LabVIEW 7.1).
Here is the difficult part that I am not sure whether or not is
possible. Depending on the value in each "cell" of the array, (0, 1 or
2), it will do one of the following:
0 - Lines 1 AND 2 are turned off.
1 - Lines 1 is off, but line 2 is on
2 - Line 1 is on, but line 2 is off.
Essentially, I am trying to recreate a tristate mode using two lines
(the actual tristate mode will be controlled via a relay circuit
board). The problem I am encountering is somehow interfacing the array
to the lines.
i.e. If I create a 2 x 2 array, the first cell will control the first 2
lines, the second cell will control the following 2 lines, and so forth.
Any help will be greatly appreciated.
Anthony Wong
University of Toronto
Chemistry Department