07-16-2006 07:55 PM
07-17-2006 07:38 AM
07-17-2006 11:18 AM
Hi All-
Actually, with NI-DAQmx 8.1 and later multi-device tasks are supported for S Series. You need to specify your channel list as "Dev1/ai0:7, Dev2/ai0:7" or similarly for the two devices. The only other requirement is that you have your PXI chassis (or RTSI cable) configured in MAX. With these settings there is no difference between programming for multiple S Series cards; any internally clocked AI example should work fine. Please post the channel/task creation portion of your code so we can help identify what is causing the error.
Thanks-
07-17-2006 01:52 PM
Here is code:
The hardware is two PXI-6123 modules in a PXI-1031 chassis. Daqmx is DAQmx 8.1.0f1.
Perhaps 6123 modules are not considered "S Series" by Daqmx?
----------------------------------------------------------------------------
Private
Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim mTask As DAQmx.Task Dim mChannel As DAQmx.Channel Dim s As String = "" Dim x As Double = 5 'Full scale volts mTask = New DAQmx.Task() 's = "dev1/ai0:7" 'This works OK 's = "dev1/ai0:3, dev2/ai4:7" 'This works OK 's = "dev1/ai0:3, dev2/ai0:3" 'This creates error: 'duplicate channels' s = "dev1/ai0:7, dev2/ai0:7" 'This creates error: 'duplicate channels' mChannel = mTask.AIChannels.CreateVoltageChannel(s, "", DAQmx.AITerminalConfiguration.Differential, -x, x, DAQmx.AIVoltageUnits.Volts)07-17-2006 02:15 PM - edited 07-17-2006 02:15 PM
Message Edited by Tom W [DE] on 07-17-2006 02:15 PM
07-17-2006 08:31 PM
07-18-2006 12:38 PM
Hi Dave-
Thanks for the additional info and sample code. I have attempted to replicate the issue with physical hardware on my end in both VS2003 and VS2005 and have not been able to reproduce. I am leaning toward thinking that there may be some version mismatch or software corruption on your end.
Are you able to create a multi-device task in MAX? The easiest way to do this is open the test panels for a single device and manually enter Dev1/ai0:7, Dev2/ai0:7 into the physical channel field. You will also need to adjust the timing parameters to select continuous timing. Whether this works or not, I would suggest that a software reinstall is in order to ensure that all the driver components are up to date. You will need to uninstall NI-DAQmx from the control panel Add/Remove Programs utility and then reinstall NI-DAQmx 8.1 from here. It may also be helpful to install NI-DAQmx to a different "clean" machine to check if you're able to see better results.
Keep us posted on how it works out. Thanks-
07-19-2006 10:49 AM
Rebuilding NI software, YET AGAIN, fixed the problem. I infer from various clues that it was apparently an incorrect version of NIDAQCommon.dll. VS2005 had complained about an our-of-date version of something unidentified. It fixed itself by adding an entry in its app.config file.
Please excuse me while I vent a bit. I think I have spent half my recent life installing, uninstalling, installing, uninstalling, re-uninstalling and re-installing NI software trying to get installed versions that were compatible with each other. AND IT IS NOT A TRIVIAL TASK TO SIT AROUND AND WAIT WHILE NI INSTALLERS REMOVE AND THEN REPLACE 70 OR 80 TASKS. I believe I could install an entire Windows operating system faster. At first all I wanted was a version of Traditional NIDAQ that was compatible with a new version of DAQmx so that I could adapt my 'old' software first to DAQmx and next to VS.Net. That was a non-trivial task and NI software continued to complain that I hadn't purchased Measurement Studio. Somewhere along the way incompatible versions of NIDAQmx.dll and NIDAQCommon.dll got installed.
Even with this latest install in which I cleaned up EVERYTHING that even smelled of starting with "NI," and then installed just NIDAQmx with support for VB6, VisualC, and MSNetFramework 2, then MAX still complains of a missing license when installing a test task in MAX to see if the problem was acceptable to MAX. The license is bypassable and MAX now showed that I could indeed use multiple modules in a single task.
I hope that NI is working actively and seriously on their version control and compatibility problems, especially the installation process.
Thanks for your help Tom. That part of this case was nice.
Dave
07-21-2006 01:32 PM
07-23-2006 01:04 PM
The new system I purchased was delivered in early June. DAQmx v8.0 was shipped with it as well as a device driver disk. Since I already had a fully debugged application written in VB6 and Traditional NIDaq, for a previous system, I wanted to simply upgrade that application to the new system. My first attempt was to load and execute the old application even though Traditional NIDaq was not supported for the ADC modules (PXI 6123) in the new system. Perhaps my fault, perhaps not, I found it extremely difficult to install Traditional NIDaq along side of DAQmx even NI documentation clearly states that it is OK to do so. Traditonal NIDAQ (specifically NIDaq32.dll) would seemingly appear and disappear dependent on what else was installed. As I said previously, I spent at least one full day just installing and uninstalling DAQmx, Tradional NIDaq, various NI modules (that I don't use) such as Visa. I even painfully downloaded a trial version of Measurement Studio to attempt to get a working version. I also painfully upgraded everything to the latest versions. Eventually I was able to run Tradional NIDaq along side of DAQmx and I was able to make a working version of my application using VB6 and DAQmx but I used separate DAQmx tasks for each module. My next step was to attempt to upgrade that application to VB.Net and in doing so I learned that DAQmx v8.1 would support multiple modules per task. That is when the difficulties started that are posted in this thread.
So I can't tell you exactly what was installed and in what order and in what version. I can only say that several versions were installed and uninstalled and installed and uninstalled and installed and uninstalled. From the preponderance of threads on this site with similar problems (which I read as I was having my difficulties with installation) I believe my experience is not rare nor "weird." I can only say that NI software and its dependencies and its versions and its documentation has been difficult for me to follow and verify.