Well, I've configured the VI to do the following so far:
In the case structure for the "false" case, I have added in an addition
Port Write and wired it up to the Port Config. When the VI is run, and
the switch(es) toggled, this results in an immediate spike in voltage
followed by a drop off (i.e. turns on, then turns off).
Afterwards, I have added a Numeric Control wired to a Wait (in
milliseconds) to the "True" case in the case structure. However, when
the numeric control that specified the Wait time was set to (say) 3000
milliseconds (or 3 seconds), and the VI run, there is an unwanted 3
second delay when the switch is toggled, then the voltage is on for 3
seconds, and then turns off.
I have managed to get rid of this 3 second delay for the first
iteration of the loop, but I have not managed to be able to get rid of
it for the proceeding iterations (i.e. if the delay is set to 3
seconds, for the first time the switch is toggled, I will get an
immediate voltage being read for 3 seconds, and then it will turn off.
However, if I were to toggle the switch again, there would be a 3
second delay.)
Is there any way to fix this problem? I was thinking of using a state
machine, but am unsure as to how to proceed with its usage. (Please see
attached VI "Write to Digital Port Auto off. vi")
On another note, is there a way to be able to control the writing of
the lines on the DAQPad-6507? For reference, I have attached another
file that does a (much) better job of what I am about to describe:
In essence, there is a numeric array that has many "cells". Each cell
is in unsigned 8 digit binary format. In essence, what I want is to
have the user input a series of values, i.e.
00000001
Followed by
00000011
Followed by
00000010
This should (theoretically) then be formatted in such a way so that at
time = 0 seconds, the first line is written to for some user specified
time (i.e. 3 seconds). Then LabVIEW should be able to "read" the next
cell, and see that it should write to the second line as well (for some
user specified time, say 1 second). Finally, LabVIEW should then read
the final cell, and see that it should write to the third line, while
turning off the first line.
All in all, I'd like to know if any of this is possible, and if it is, are there any hints that can be provided?
Anthony Wong
University of Toronto
Chemistry Department