cDAQ9188 in C

Hi all

I am trying to run cDAQ9188 with 03 OR 9205 modules installed on it in a single task (for automatic synchronization) using the given C API by NOR. For the NI 9205 single module installed on cDAQ9188, following works fine:

.........

DAQmxErrChk (DAQmxCreateTask("",&masterTaskHandle));

DAQmxErrChk (DAQmxCreateAIVoltageChan (masterTaskHandle, "cDAQMod1 / ai0:31","",DAQmx_Val_Cfg_Default,-1.25,1.25,DAQmx_Val_Volts,NULL)); "))

.........

When I install all 03 modules, I have cDAQMod1, cDAQMod2, cDAQMod3 the names of devices. How can I define three devices in 'DAQmxCreateAIVoltageChan' API so that I can acquire all 96 channels in a single task (with automatic synchronization of three modules)?

Thank you

Best regards

Asim

Hey Asim,

I'm not sure, but I believe that it may be similar to:

DAQmxErrChk (DAQmxCreateTask("",&masterTaskHandle));

DAQmxErrChk (DAQmxCreateAIVoltageChan (masterTaskHandle, "cDAQMod1 / ai0:31,cDAQMod2/ai0:31,cDAQMod3/ai0:31","",DAQmx_Val_Cfg_Default,-1.25,1.25,DAQmx_Val_Volts,NULL)); "))

Let me know how it works.

Best regards

Tags: NI Hardware

Similar Questions

  • How to read the counter NI9411 using C API data?

    I use the API C of NOR-DAQmx to read the data of a cDAQ-9188

    I am able to read analog voltages and entered digital fine (NI9201 and NI375).

    Problems with counters (frequency of measure) (NI9411).

    I just get error "all or part of your samples are not yet acquired" after the timeout.

    My pseudo-source:

    DAQmxCreateTask ("", & taskHandle);
    DAQmxCreateCIFreqChan (taskHandle, "cDAQ9188-189E9F4Mod1/ctr0","", 1, 1000, DAQmx_Val_Hz, DAQmx_Val_Rising, DAQmx_Val_LowFreq1Ctr, 0.1, 1, NULL "");
    DAQmxCfgSampClkTiming (taskHandle, "pfi0", 5.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 5);
    DAQmxStartTask (taskHandle);
    DAQmxReadCounterU32 (taskHandle, 5, 10.0, (uInt32 *) data, 5, & read, NULL);

    My device and any other names are correct?

    Thank you.

    Have you compared it against examples of api C?  I think that you have the option to install the examples when you install the daqmx drivers.

    If you have done this, and it looks the same then I would say you should try Troubleshooting If you produce any data at all.

    -Bear

  • How to use a control to change the part of array of strings? Insert in the string table?

    Please see the attached illustration.  The paintings of two strings which I'm trying to maniuplate are surrounded and the value is (bad) highlighted in yellow.

    It is a part of a Subvi on a comprehensive program where I address three different cDAQ chassis, which are named cDAQ9188-TBL01-Remote, remote-TBL02-cDAQ9188, cDAQ9188-TBL03-distance max.

    I intend to have three separate executables running simultaneously but independently, each dedicated to a different frame.  Rather than manually changing the only integer and create a new Create_Task 002 and 003. VI for each of them, I would have the whole selectable by the user.  Simple 1, 2, or 3 before starting the program and inserted it in the correct place (cDAQ9188-TBL0X-remote X of the location).

    I managed to insert characters in the simple strings, but nothing seems to work with table 1 d of string.  Is there a chance for this or should I be building my channels tables quite differently?

    You'll just have to change the 1,2,3,... in your tables of strings with the appropriate format specifier, then add digital control and two knots in String Format and Bob is your uncle.

  • Example: "-Conitinuous digital output" how it works?

    I generate a sequence on three channels (with my NI 9375 output digital map on a cDAQ9188).

    In 1 second, the sequence consists of, for example:

    channel 1: start low... on 15 high ms... on 865 ms low again

    Channel 2: from high... of 115 low ms... on 650 ms high again

    Channel 3: start low... of the 85 high ms... on 920 ms low again

    It must be generated and material conituously timed.

    For this application, they advised me to work with the example of 'Digital - continuous output. Can someone explain to me how to get this sequence with the control box "Write data" on the front panel? And how can I visualize my generated sequence?

    Thanks in advance!


  • Synchronization of the NI 9205

    Hi all

    I use cDAQ9188 with 03 modules OR 9205. One thing I want to clarify is that cDAQ9188 will provide synchronization between the three 9205 modules or or other devices also require for this purpose?

    NO DAQMAX software provides some guidance if these three modules mounted on the cDAQ operate on the same clock (sync) or independentaly?

    Best regards

    Assuming you have the 9205 s 3 in a single chassis 9188:

    If you configure a single task with each of your 3 9205 s it contains DAQmx will synchronize the modules for you.

    If you make 3 separate tasks (what is actually possible on the 9188 with up to 3 analog input synchronization engines), they would not synchronized automatically (you could still make the roads yourself, but it would just add complexity to your application in relation to all 3 modules in a single task).

    Best regards

Maybe you are looking for

  • I cannot see how many messages is in or the size of the trash or sent folders after upgrading to 3.1.10

    Recently, I upgraded my Thunderbird client to 3.1.10 of 2.2xx and I see is no longer the size of the files or how many messages are in some cases. Records show how many are unread, but not the total number of messages or the size of the data in the f

  • Safari crashed, continues to crash on opening

    I received an email from a person whose name and surname was identical to names and unusual names of my daughter. It was sent from a different email address, which I did not notice, initially. The message greeted me by my first name, offered a link t

  • impression of old faxes

    I try to print a fax that was faxed about 2 months ago... when I printed the activity log fax that he only dates back to about 1 month... doesthis mean that the fax, I'm to research is in the fax memory? or is there a way to choose date and re - prin

  • Error code 1306 and Runtime Error

    I tried to upgrade my dell support center and received the following error message: Saturday, November 20, 2010 MsiInstall er Product: Dell Support Center (Support software) - error 1306.Another application has exclusive access to the file nter\SYSTE

  • Intel alert does not

    After the installation of Service Pack 1 (for vista), on my Windows Vista PC I suddenly started to get a warning stating; Intel Alert has stopped working and was closed. Since the Intel VIVI icon is missing in the notification (to the right of the ta