03-15-2007 04:53 PM - edited 03-15-2007 04:53 PM
Message Edited by MatthewZ on 03-15-2007 04:55 PM
Message Edited by MatthewZ on 03-15-2007 04:56 PM
03-18-2007 09:09 PM
Hello Matthew.
Thank you for posting to the NI Discussion Forums.
From what I understand, you are collecting data on 2 input channels of your 6111 card. However, when you display the acquired points on a graph, an unexpected line appears on that graph at a seemingly random time. Does this mean that you see 3 plots on the same graph: one that is the random plot and then 2 plots representing the 2 analog input channels that you are trying to measure? If so, are the other 2 plots acccurate readings of the inputs that you are trying to sample?
Can you also post some sample code that is stripped down (excludes other functionality not associated with this behavior), which still shows the odd behavior that you are talking about? This would allow us to troubleshoot it a bit further. I would also recommend double checking that your task configuration is only for 2 analog input channels.
Let us know these details and we would be happy to help further!
Have a great day!
Brian F
Applications Engineer
National Instruments
03-19-2007 11:23 AM
Hi Matthew,
Hmm... sometimes your graph is displaying all 0's. We need to narrow this down a little further. Is it a problem with the Graph, a problem with the DAQmx Read call itself, or a problem with the hardware setup.
Is there any way you can detect whether DAQmx Read ever returns all 0's in your code? You could write some code that runs after you call Read but before you graph the data - in the code, loop through all the sample values and if they are all 0, flag this bad condition in your user interface.
If you see the problem but you don't flag a bad DAQmx Read, this means there is something wrong with the way the values are getting displayed on the graph.
If you can flag a bad DAQmx Read, this means there is something wrong with the hardware setup or the Read call itself.
Hope this helps,
Jonathan
03-19-2007 12:08 PM
04-18-2008 12:22 PM
I am seeing a similar problem on my 6111 card.
To be exact, though, here is what I am doing:
I am setting up a reference trigger at a varible collection rate on a varible (1 or 2) number of channels. Before I run the reference trigger I run a good about a single reads to get basic data back from the device. All of these work fine. However, the aquisition never returns, and times out after 30 seconds.
The same software/hardware works fine on a 6115 and pci-meo-16c.
I also saw this when porting my product to .NET
04-21-2008 11:56 AM
04-21-2008 03:21 PM
What do you mean by simple acquisition? When I do a single read on the task, the data comes back fine. When I try to do an asyncronous collection, the trigger doesn't respond. Is it possible to using the Measurement and Automation program to "monitor" that channel to see if it is coming?
The source of the trigger is a digital flag coming in from our hardware. I am using a reference trigger not a start trigger because I need to the pre-scan ability, as such, a simple start trigger really won't work.
04-21-2008 03:35 PM
[Edit] I tried changing to a start trigger and didn't get the flag that time either.
Also, I see this on 2 of the 6111s we have here, but not the other. Is there a way I can get a guid off the board and look for particular service annoucements about it?
04-23-2008 10:36 AM
04-23-2008 11:15 AM - edited 04-23-2008 11:16 AM