04-07-2017 02:39 AM
I am making a program to acquire signal from ocean optics usb4000 spectrometer. But if I am setting the integration time 20 seconds it is showing error after that read.
I am attaching the VI.
Solved! Go to Solution.
04-07-2017 05:50 AM
Hi,
What error it throws up? Have you tried searching the forum with that error code?
Mathan
04-07-2017 08:18 AM
it show error code 1073807339. As i increase the integration time to certain value say 20000000(us) it sometimes run but most of the time it shows this error only. I read about the error but I couldn't able to figure it out.
04-09-2017 11:00 AM
please reply
04-09-2017 04:05 PM
Your VI is pretty much all subVI's that we don't have, so we don't know what they do other than by the title.
Obviously, it uses a VISA port, and it configures that port. Exactly what it does is buried in the subVI we don't have. But a typical, default, timeout for a serial port is 10 seconds. Then you configure an integration time for 20 million microseconds, or 20 seconds.
Perhaps the 20 seconds it takes to integrate means that it isn't done when you go and request the data and the VISA timeout of 10 seconds has passed.
04-10-2017 12:05 AM
so what should i do to remove this error??
04-10-2017 07:39 AM
Read the manual. Understand how the device works.
See if there are any commands that you can send and request a response to determine when an operation is complete. Put in an explicit wait between the one command to start the operation and the command to read the results.