Hello,
A little assistance would be greatly appreciated. I've totally run out
of ideas and my inexperience with LabView hasn't helped either. I've
attached my .vi along with this post. I'm using LabVIEW 7.0, so please
keep that in mind if you intend to modify my program. Thank you.
I'm trying to run a stepper motor and measure strain at the same time.
The counter in the program provides the input to the stepper motor. The
device in the second part of the program decides the direction of
rotation. I'm using a stepper motor driver chip. The third part (the
DAQ Assistant) measures strain.
My issues are as follows,
1) The first time I run the program, the motor does not start rotating
till I decide the filename/path for the strain, but if I run it a
second time without resetting the motor starts moving without strain
measurement. I tried to resolve this by pushing the 'Start Task' for
the motor into the loop but I get a device conflict saying that the
'specified resource is already being used'. I need the motor to start
only after the strain measurement begins. I understand that the error
occured because there are two DAQmx tasks running, but from the help
resource on ni.com, it said that one analog input and one analog output
could be run at the same time. This is digital out and analog in, so
shouldn't it work?
2) When the program is run and I'm prompted for the filename/path, and
I 'Cancel' instead of specifying a path/filename I get an error at the
end saying that "NI-488: Command requires GPIB Controller to be
Controller in Charge.
3) I need to specify the number of samples, sampling rate and
continuous/finite samples for strain measurement in the front panel of
my program. Its available in the DAQ assistant, but I need to be able
to specify it on the front panel.
Thank you in advance,
Prithiv