01-22-2007 02:52 PM - edited 01-22-2007 02:52 PM
Message Edited by Rizy1976 on 01-22-2007 03:13 PM
01-24-2007 08:02 AM
Hi Riz!
Before I can fully answer your question, I would like to get some clarification on a few items. Are you using separate PXI and SCXI chassis or are you using a PXI/SCXI combo chassis? How are you connecting your chassis to the computer – Are you using a MXI controller, an embedded PXI controller, or connecting through the SCXI chassis? On that note, can you please put a bit more clarification around how you have all of your equipment setup?
Not all applications require synchronization - Is there a reason why you need synchronization? How are you trying to route your signals?
01-24-2007 08:37 AM
Failed Start Scan. Error:
Source terminal to be routed could not be found on the device.
Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names.
Property: DAQmx_DigEdge_StartTrig_Src
Property: DAQmx_DigEdge_StartTrig_Edge
Source Device: NI6143SCXI1
Source Terminal: ai/StartTrigger
Task Name: NI6143SCXI2
Status Code: -89120
What it seems like to me out here is that I did recognize the device address for Mod1 "NI6143SCXI1" but failed to recognize the terminal name provided for this device. I have tried other terminal names for this device too from the list of terminal names in the documentation. Nothing seemed to work. It seems like SCXI do not have these terminals/internal channels defined.
As a work around, I have synced all four of my SCXI cards with the left most PXI card by providing PXI mod1's device address. But the best way would be to have SCXI being synced on their own.
I hope this explains the problme.
Thanks
Riz
01-25-2007
06:08 PM
- last edited on
02-06-2025
09:49 AM
by
Content Cleaner
Riz,
Thanks for all of that information! (Especially the error code and description). From what you are describing, I believe you basically want to sample all 32 channels simultaneously, true? One suggestion is to make sure all of you equipment is setup correctly in Measurement and Automation Explorer (MAX) – this article may help. Please notice it says NOT to configure the 1120D (Bottom of DAQmx Software Configuration section).
Also, what is your sampling rate and how long are you sampling for? Lastly, what do you mean by synchronization? Do you want to share triggers in order to start all of your DAQ cards at the same time? Or do you want to share trigger and clocks, so that they not only start at the same time, but all share the clock off of one DAQ card?
01-26-2007 07:25 AM
01-29-2007
12:38 PM
- last edited on
02-06-2025
09:50 AM
by
Content Cleaner
Riz,
I'm including some code that I tested with 2 PXI-6143 and 2 SCXI-1143. Including both SCXI modules with their channels in the same task does automatically enable simultaneous triggering and clock sharing as long as the cards being used are both S-Series.
The configuration of your SCXI system in Measurement and Automation Explorer should be to have each 6143 control each 1143 in parallel mode. Clicking on Details... of each module in the SCXI chassis property page will allow you to specify the cabling connection to each module and verify that they are set up for parallel.
The function for creating the channel should look similar to this:
DAQmxCreateAIVoltageChan(taskHandle,"SC1Mod1/ai0:8, SC1Mod2/ai0:8, SC1Mod3/ai0:8, SC1Mod4/ai0:8","",DAQmx_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL);
You should be able to use the example located at C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq-Int Clk and make modifications to it in order to see this in action.