01-02-2008 10:40 PM
01-04-2008 10:43 AM - edited 01-04-2008 10:44 AM
Welcome to the discussion forums, deathelement!
Since your VI wasn’t attached, I created this code myself and ran it, but I don’t get an error. I used a feature within LabVIEW to describe the error code -89130, which is choosing Help » Explain Error and typing the code in. The message I get with this error code is attached. If you have the same error explanation I’ve shown, there are two things to check:
1. Try resetting the device in Measurement & Automation Explorer (MAX) by right-clicking the device and choosing Reset Device.
2. Are you using this as a subVI inside of a VI that uses Traditional DAQ (T-DAQ) driver functions? If so, you can’t use T-DAQ functions with the DAQ Assistant because it is based on the newer DAQmx driver. I would recommend writing your entire VI in the DAQmx driver unless you need the Traditional DAQ driver for hardware supported only in it. Search for “NI DAQ” or “DAQmx” at ni.com/updates and check the readme files for the driver’s supported devices.
Side note: Did you want Timeout to be an indicator or the input to the DAQ Assistant? You can right-click and select Change to control if it should be an input control.
Assuming that gets rid of the error, I want to point out that you can also start with code that has already been written for common applications. These are called shipping examples and can be found in LabVIEW by selecting Help » Find Examples. There are several that might be of interest to you in the “Browse” tab under the Hardware Input and Output » DAQmx directory or by searching in the “Search” tab.