Just as a quick check, are you using DaqmxBase or Daqmx on the firmware
for the USB6008. The 6008 now uses DAQmx but I see that your
drivers in the VI are for DAQmxBase. This may not be the case
since you said that it works in the VI but not in the exe.
Is the exe run on a seperate computer or on the same computer that the
VI is run on? If it is running on a different computer, make sure
you have the correc tdrivers installed and that there is not a device
conflict (check in MAX that the 6008 is not actually named Dev2 when
you ahve named it Dev1 in your program.) Also, can you post the
actual error you are getting for both, that would really help the
debugging process.
I couldnt find the init AI vi (it appears that it is coming from some
Philips_LED.lib file from your computer) or the error_comm.vi, so I
could not actually run the VI. But I would try adding the create
task and create channel VIs to your VI and see if that helps matters at
all (see attached error.vi)
As far as the pulse measurement VI, I would make sure that you have all
of the controls "getting a value" if you are using it as a sub vi, ie
make sure each input actually is getting an input (you can check using
the light bulb button on the block diagram).
Post your results if you need more assistance.
Kenny
Kenny