LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -10007 at SingleScan

Win 2K
LabView 6.1 & 7 Express
6036E DAQ
SC-2345 Signal Conditioning Block
Traditional DAQ Virtual Channels
 
This is a very long, boring post, but please help me! I'm not sure if I can describe this well enough for you to be able to help, as I am completely new to LabView, but after many hours of probably making things worse, you are my only hope at this point, and I am looking for some troubleshooting assistance.
 
For my job, I am supposed to use a program that someone else wrote, presumably in LabView 6.1. This version worked fine a week ago.
 
The other day I came to the lab, started everything up and on starting the program I get an "Error -10401 at AI Group Config". I figured it was something small and I told a co-worker about it and came back the next day and she had tried to reload Labview drivers, libraries, etc. What this did is make every VI on the system not work. There were broken wires and incorrect input data format problems in just about every file. Then we noticed that if we opened the files in LabView 7 there were fewer errors and only in some files, so we decided to try to repair the VIs in 7.
 
I managed to "fix" all the bugs so that the program would run, however when running my force program, no data is being acquired from the device and the program ends with an "Error -10007 at SingleScan." I have looked up info on this error and tried to identify problems with the virtual channels in the MAX. There were two virtual channels assigned to the same physical channel, however, only one of these channels is used by my program. I tried assigning the one I don't use to a different channel, but with no improvement.
 
The other Labview program that's used on this computer that uses the other channel isn't working either, no matter what I change in the MAX.
I know this is vague and all over the place, but do you have any clue how to fix this error? I am at the end of my troubleshooting ability. Although I have other programming experience, this is my first intro to LabView, so please spell it out for a dummy if you have a solution.
 
Thanks!!!
0 Kudos
Message 1 of 10
(4,121 Views)

Hello Melevator,

From your description of the troubles you have run into, I suggest running a diagnostic utility to verify that the hardware is working correctly.  Since you are using Traditional NI-DAQ, you will need to run our legacy E Series Diagnostic Utility.  I am not sure what must have happened when you tried to reinstall drivers.  If you find no problems with the hardware when you run the diagnostic utility, perhaps you can post the VI you are getting this error from so that we can give you other troubleshooting tips.

Thanks,

Laura

0 Kudos
Message 2 of 10
(4,107 Views)
Thanks for your reply. The diagnostic was aborted - here is the output:
 
10/11/2005, 1:51:00 PM, Device 1
 
NI Diagnostics -- National Instruments E Series Device Diagnostics
-------------------------------------------------------------------------------------------------------------------------------
Welcome to the National Instruments E Series Device Diagnostics, a web-based utility that allows you to test your E-Series Data Acquisition hardware using Internet Explorer. After testing is complete, you may submit your test results to National Instruments. This utility was written in Visual Basic using Measurement Studio 6.0. 
Need help from an engineer? Visit http://www.ni.com/ask.
 
Caution: In order to test this device, NI Diagnostics will write and read from various analog and digital lines. To prevent inadvertent operation of external hardware, disconnect the cable from Device 1 before continuing.
 
 
Detection -- Device Detection and Resource
-------------------------------------------------------------------------------------------------------------------------------
This test verifies the driver and hardware installation by resetting the device and reading various attributes. To pass, the device must be properly installed and configured via the Measurement & Automation Explorer (MAX). If the installed NI-DAQ driver is older than version 6.9.1, you will be advised to upgrade. If a SCXI connection to the device is detected, you will be instructed on how to temporarily disable this connection. Testing will be aborted if the device is not supported by this utility.
 
NI-DAQ Version: 6.9.1 (PASS)
Resetting Device 1: PASS
Device Name: DAQCard-6036E
Serial Number: D4FC84
Checking Device Support: Please Wait. . .
Error 1 occurred at NI Diagnostics:   DAQCard-6036E detected (device type 348). The device is not supported by this utility. Verify that the device number you selected corresponds to an E Series Data Acquisition Device. Testing will be aborted.
 
 
FAIL: Device 1 has failed the Device Detection and Resource Test
 
***********************
 
Is this the wrong utility for my device?? Do I need to install an upgrade to my NI-DAQ?
 
I am also posting my vi, as you suggested. Is there any way to send you my MAX config as well?
 
Thank you!
0 Kudos
Message 3 of 10
(4,099 Views)

Hello Melevator,

The hardware that you are using, the DAQCard 6036E is a pcmcia device and as such is not compatible with that utility.  I was under the impression that you had a PCI device (quite wrongly).  I apologize.  There is no utility that works with pcmcia devices.

Can you give us the exact error message that you get when running this program?  Perhaps take a screenshot of it?  I ask because I cannot find any "SingleScan" or AI SingleScan VIs the program that you attached, which is where the error is occurring. 

The other two things that can be tried to determine whether or not the hardware is functioning properly are:

1.  Use a test panel in MAX to acquire an analog voltage.  Expand the Devices and Interfaces section until you see your hardware, right-click on it and choose "Test Panels."  Connect a voltage to one of your analog input channels and read that channel with the test panel.

2.  If step 1 goes fine, then try running an example program from the Example Finder.  Go to Help >> Find Examples >> Hardware Input and Output >> DAQ >> Analog Input and choose an example to run.

Let us know the outcome of this,

Laura

0 Kudos
Message 4 of 10
(4,093 Views)

Thank you Laura,

I am attaching the error message and the sub VI called SingleScan. Let me know if you also need the sub-sub VI's.

In response to your other suggestions:

1. Yes, I was able to get an analog signal from my hardware in MAX. Channels 2-7 show a response to my sensor. Channels 0 & 1 don't show any discernable response to my manipulations of the sensor, although they show what looks like noise and there are no errors popping up. I don't know a lot about this sensor and so my eyeballing the signal might not be accurate, since I'm not 100% sure what kind of data is routed to which channel (the sensor should register several different types of force data).

2. I ran an example program from the Example Finder, pretty much the simplest one there is that grabs single data points from all the channels, and there was no error. I was basically able to confirm my findings from MAX, which is that data is being collected from my transducer and I can see visible effects on the data in channels 2-7, but not 0 & 1. I will try running some of the other examples and let you know if I find anything different there.

Overall, this leads me to believe there is an error or an oversight in the code or the channel configurations, or some such other detail that I can't put my finger on.

Thank you for being so helpful. I look forward to your suggestions.

Melanie

Download All
0 Kudos
Message 5 of 10
(4,059 Views)

Dear Melanie,

The error appears to be coming from AI Sample Channels.vi. Open a new VI in LabVIEW and copy the part of your program that uses AI Sample Channels.vi. This new program should just read in from 3 channels and then put that data on a graph to see if it looks correct. If you get a new error please post a screenshot. If you don't get an error, keep adding parts of your program until you get the error again.

I am concerned that channels 0 & 1 aren't working. Double check the connections and switch out your sensors to see if you get better results. Please let me know if you have any questions. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 6 of 10
(4,038 Views)
Okay, there are some encouraging new developments.
 
1. The AI Single Scan error went away when I changed the device to "nonreferenced single ended" in the MAX device preferences. Previously it had been set to "differential". Even though I had the individual channels set to "single ended", it seems the device itself was incorrectly set. (Do you think this happened with the 7.0 installation?)
 
2. Documentation on a sensor similar to mine indicates that it outputs 6 data channels only. I believe these 6 channels to be 2-7, since I can see them change in the test panels. Thus, I am no longer worried about seeing nothing on channels 0 and 1 and feel confident that the thing isn't broken.
 
So the program runs now with no runtime errors, but the collected data doesn't seem right. I've tested the sub VIs Continuous Scan and Sample Channels by doing a continuous run and looking at all channels and they are all performing as expected, responding to sensor movement with what looks like the right values, etc. It's a mystery to me why the program output (both the waveform on the screen and the saved text files) appear to stop sampling the sensor a few milliseconds into the experiment and just repeat the same value over and over (i.e. flat line graph) for the rest of the trial. I am attaching one such output file so you can see what I mean.
 
So my question is - could this be due to some other settings being incorrect in MAX? Or is it more likely to be a bug in the code, i.e. the way the array of channel values is being formed? Remember this VI worked correctly as-is for a long time until LabView had to be reinstalled and upgraded and I did have to rewire a few nodes when I converted the file to 7.0. It seemed very straight-forward and obvious when I did it, but could I have done something wrong? I can tell you which ones they were if you think it would help.
 
Incidentally, why did you think there was a problem with AI Sample Channels in your last post? I'm not seeing any problem with it now, although when the Precision Grip VI was first converted to 7.0, I did get this alert message and it might be relevant:
 
The subVI expected to be at "C:\Program Files\National Instruments\LabVIEW 5\vi.lib\Daq\1easyio.llb\AI Sample Channels.vi" was loaded from "C:\Program Files\National Instruments\LabVIEW 7\LabVIEW 7.0\vi.lib\Daq\1easyio.llb\AI Sample Channels.vi".
 
Thank you - all your help has been very good and is much appreciated.
 
Melanie
0 Kudos
Message 7 of 10
(4,006 Views)

Dear Melanie,

Differential is the default setting, so it might have been reset when you upgraded.

I knew the problem was with AI Sample Channels because the error was coming from AI Single Scan. If you double click on AI Sample Channels and open the block diagram, you will see AI Single Scan.

I don't know why it would stop working, but I recommend copying your current program and then deleting everything but the DAQ VIs. Let me know if you still get the error. If you don't get it, add VIs until the error comes back.

Have a great day!

Marni S.

0 Kudos
Message 8 of 10
(3,991 Views)

Thank you Marni,

But as I said in my previous post, the error I was getting is no longer happening. I think it was related to the differential setting. I will try deleting everything but the DAQ VIs as you suggest, and putting them back, but I don't believe the AI Single Scan error will resurface, since the program now runs. Or am I misunderstanding you?

The problem is somewhere along the chain from input to program output. How can I troubleshoot the output and/or the arrays that are collecting the channel data?

Thanks,

Melanie

0 Kudos
Message 9 of 10
(3,989 Views)

Dear Melanie,

Sorry about the confusion. When I mentioned condensing the code, I was suggesting it so you could determine if AI Sample Channels is cutting off the data after a specific amount of time or if something else in your program was doing it. You should also try different types of Read VIs to see if you get the same results. Have a great day!

Sincerely,

Marni S.

0 Kudos
Message 10 of 10
(3,971 Views)