01-22-2008 11:11 PM
01-23-2008 02:45 AM
01-23-2008 01:38 PM
Hi Julianti,
Albert is right, if you have a GPIB board and cable, definitely trigger through the GPIB bus. If you want to use the BNC connector on your scope, you will have to get a usb DAQ board that you can route a trigger to a BNC cable with. NI does sell USB daq boards with BNC connectors. Alternatively you can modify one end of a BNC cable to connect to screw connectors of a typical USB DAQ board. That being said, I highly recommend using the GPIB trigger, its the best solution. I hope this helps!
Cheers,
Ted
01-23-2008 07:39 PM
02-04-2008 02:30 AM
02-05-2008 01:43 AM
02-06-2008 04:56 PM
02-12-2008 10:26 PM
02-12-2008 10:27 PM
02-15-2008 10:52 AM
Hi Julianti,
About the 50 millisecond wait in the while loop, I don't see how this is absolutely neccessary. The only reason I can see for the wait is to ensure the execution of the first iteration of the while loop is at least 50 msec. Understanding the context of this sub vi would help in understanding why this loop must take 50 msec or more to execute.
About sending a trigger from your scope to your laser. Are you sure your oscilloscope can source a trigger to an external device? I don't see this functionality exposed in the instrument driver. I would suggest consulting your instrument's manual to verify this functionality. If you scope can source a trigger, check the scope's programming manual for how to access this functionality programmatically. To send a trigger to your VI, first configure your trigger using the configure trigger VIs, then call the Actn Trigger.vi. Refer to the examples included with the driver to see the proper way to set up your triggers.
Lastly, to get the last iteration of the for loop, you could use a shift register, but a tunnel with indexing disabled would work as well. If I may make a suggestion, I would highly recommend using the examples provided with the drivers. These drivers will show you the proper syntax for using the driver VIs. I hope this information helps, let me know if you have any further questions, thanks!
Ted