Hi MickeyD,
I understand that currently, the "stop" program halts the entire VI, however, I was hoping to find a method of stopping the execution of the For loop (currently, I don't believe it is possible to stop in the middle of a for loop iteration). Ideally, the abort button would first reset the device (i.e. write null values to all the line), and then prevent the For loop from beginning another iteration.
Again, the "continous run" button would allow users to press the button, and the entire For loop would repeat continously (i.e. after the last n interation is run, it jumps back to the first m iteration and repeats).
If these implementations are possible, please shed some light; as far as I was made aware, it was impossible to halt the For loops in the middle of its iteration.
For the user interface that allowed them to select each line each cell in the array was writing to, I believe your suggestion is good. I was thinking along the same lines, by generating an equivalent array. The goal is to have users specify which group of lines each cell will write to, and then input a 0, 1 or 2 value. Then the program will have to figure out which lines in reality to write to (note that currently, each cell can have 3 possible values: 0, 1, and 2. This gives boolean values of T/T, T/F and F/F. With F/F, no line is written to. With T/F, line 1 is written to. With T/T, line 2 is written to).
In reality, this means that the user will be specifying in the cells numbers from 1-48, but Labview (or the programmer!) will have to interpret a user inputted value of "3" as lines 5 and 6, and, then depending on the user input again, will have to determine whether to write to line 5 or 6.
For example: In the first cell, the user specifies "2" and in the next cell, the user specifies "3". Then another identical array appears, and this time, the user inputs (right now, using a picture ring, but it really is translated to a numerical value anyways) a translated value of 1 in the first cell. In the next cell, she inputs a value of 2.
Translated through LabVIEW, the program should then be able to write to line 3 and line 6 of the DAQPad (inputting "2" indicates we are looking at either lines 3 or 4, and the next value of "1" indicates we are writing to the first line of this pair. Similarly, the value of "3" indicates we are looking at lines 5 or 6, and the next value of "2" indicates we are writing to the second line of the pair).
Ideally, this is what the program should do, but I am currently quite unfamiliar with the user interface, and would prefer to keep it as simple as possible.
Of course, I understand that implementing this would be challenging, but that challenge has been left up to me. As mentionned in my first post, I am currently using LabVIEW 7.1 with the DAQPad-6507 (USB).
Unfortunately, I have checked the DAQPad specifications in the past, and it is unable to support DAQmx. This is the reason my program appears as it is.
Please let me know if you have any further information pertaining to this,
Thanks very much
Anthony Wong
University of Toronto
Chemistry Department