Physical channel NIO-DAQmx on easytabs

Hello

I am a new user of LabWindows CVI 9.0. I have a problem with the easy tabs and loading of channels on each tab. I get the since the acquisition of data on the first easy tab but I am unable to get them on the rest.

I load the Panel and then convert canvas to load the tabs. I have four tabs with CH_1, CH_2, CH_3, CH_4 names.

Can I use

NIDAQmx_NewPhysChanAOCtrl (tabCtrl, CH_1_PHYS_1, 0);         where PHYS_1 is a constant on the first tab

When using

NIDAQmx_NewPhysChanAOCtrl (tabCtrl, CH_2_PHYS_2, 0);

NIDAQmx_NewPhysChanAOCtrl (tabCtrl, CH_3_PHYS_3, 0);

NIDAQmx_NewPhysChanAOCtrl (tabCtrl, CH_4_PHYS_4, 0);

It does not compile, but gives an unknown error. My DAQ has four channels. Please help me and tell me what's the prob?

Hi lahorimunda,

the most common cause for problems on tab controls or controls easytab is the use of an incorrect handle Panel: NIDAQmx_NewPhysChanAOCtrl takes a handful of Panel as the first parameter, while you spend "tabCtrl" which seems to me is a control ID. I may be wrong, but I would like to check this first.

Now, for easytab controls, when you add tab with EasyTab_LoadPanels control panels recover you the handles of the Panel, while if you use EasyTab_AddPanels you already have the handles; are these handles that must be sent to all functions facing a control on a tab page.

This also applies if you want to use available in CVI9 instead of the EasyTab native tab controls: planning pages of tabs at design time and get the Board running with GetPanelHandleFromTabPage handles.

Tags: NI Software

Similar Questions

  • call by reference and physical channel OR DAQMX

    Hello

    I call a VI of reference and one of its entries is a physical channel OR DAQMX.

    Normally when I call the VI (no ref) control of the physical channel OR DAQMX fill itself with a list of detected devices / channels.

    Still by reference it does not work because I'm the appellant on a server of VI. He shows me the channels on the local computer instead of the remote computer.

    How will you address the list of physical channels OR DAQMX on a remote machine?

    Here is an excerpt of how find my DAQ card by searching all DAQ hardware in the system, and then query string types I want. Note that this must be running on the remote system. Perhaps could you run on the remote system and use the TCP/IP, Messaging Protocol to transfer the results?

    Charles

  • Constant physical channel error DAQmx

    Hi all

    I try to get the labview 10.0 working in opensuse 11.4. I installed components and all of them seem to work well.

    The PCI card is also detected by labview. When I lsdaq of tpe on the command line. I get the following output

    --------------------------------
    Detect of National Instruments DAQ devices
    Find the following materials:
    NEITHER 6025E: "Dev1" (PXI8::15:INSTR)
    --------------------------------

    But when you enter ' Dev1/ai1' or ' Dev1 / ai0:3 "in the the physical channel DAQmx constant I get an error stating that the invalid string name. How can I get rid of this error?

    Necklace

    Hello Chiran,

    You use DAQmx 8.0.2 or use DAQmx Base 3.4? If you use DAQmx Base, then you will need create a task before you create channels.  "" Try to run an example program which can be found by navigating to help"find examples" material input and output "DAQmx if you have DAQmx 8.0.2 and can be found in /examples/daqmxbase if you have DAQmx Base 3.4.

    Thank you

    Justin P

  • ini to physical channel DAQMX channel

    I would like to save all my physical channels DAQMX as strings in an ini file.  My program reads information in string and convert to the physical channel DAQMX.  Is a kind ride the only way to convert a string to a type of DAQMX channel?  I wanted to tell all of my information communications in an ini in case something change.  Thank you!

    Not cataloged. You can wire a string directly to the entrance of the channel.

  • The actual voltage of a physical channel of a DAQmx device display

    Hello!

    Quick question: is there a way to read the voltage of a physical channel of a DAQmx device, when there is no task that is running? I want this information after that I ran several tasks. It is important to know the real tension before you start the new task. Any ideas? Thank you!

    Best regards

    Michael

    Hello Michael,

    You are right.

    The 'PCI-6110"and the «PCI-6711" have no internal channels.»

    Could you please describe your exercise.

    Why do you want to know your output voltage before you start a new task.

    Best regards

    Phanuel

  • How to use NI 9211 to monitor more than 1 physical channel of temperature?

    I use NI 9211 with support USB 9161, which is supported only by DAQmx base. I try to use the ' data OR recorder of "come with the DAQmx base control at least two physical channels with connected thermocouple, but actually just a channel can be achieved at once.

    I wonder if anyone knows how to configure for multiple channels (OR 9211-4 channels) working simultaneously. Is that what I can do without programming Labview? Thank you!

    Hello

    The following link provides information on sampling multiple channels with data logger of NEITHER:

    http://digital.NI.com/public.nsf/allkb/4A1CCB039AD2131286256F550004208A?OpenDocument

    Kind regards

    Justin

  • cRIO 9076 Unable to Detect physical channel

    Hi all

    I'm currently trying to acquire data using NOR cRIO 9076 controller integrated, but I am unable to create virtual channels using DAQmx. My situation is summarized below.

    Material:

    NEITHER cRIO 9076 integrated controller RT

    NI 9205 analog input module

    E/s digital NI 9403 module

    Software:

    LabVIEW 2011

    Compact-Rio 4.0

    MAX 5.0

    NOR-DAQmx 9.3

    All channels of the C-series module and chassis are visible in NOR Distributed System Manager and Labview Project Explorer.

    But when you use MAX to create a new task DAQmx, I can't detect the physical channels. The two NOR-DAQmx in Labview and right-click to headquarters of the MAX data to create NI DAQmx task / Global Virtual Channel give the message "No. supported Devices Found."

    In addition, material also doesn't seem to appear under "devices devices and Network Interfaces.  When comes to "find NI DAQmx your network equipment", he stated that "no devices were found. The controller was named "VIGREN. Detect manually by using the host name and intellectual property also failed to detect.

    My question is:

    1. How does the PC detects the chassis and modules, but when it come to NI DAQmx, it does not detect the physical channels? What is a software/hardware or network junk?

    2 not compatible with NI DAQmx RT 9076 cRIO controller? And that's why Scan Interface or Interface FPGA used instead? In light of the seamless functionality, I prefer to continue OR DAQmx to configure my acquisition of data.

    Thank you.

    Hi Vigren,

    I think you misunderstand some of the concept here.

    cRio is a real-time system and is not a DAQ board that you can not use DAQmx with it.

    You can refer to this link for discussion for more information

    http://forums.NI.com/T5/Multifunction-DAQ/cRIO-9073-compatibility-with-NI-DAQmx/m-p/1194163#M58721

    You can use the scan or FPGA to purchase.

    TuiTui

  • Discover the number of physical channels

    When you configure a DAQmx device in LabVIEW code, is there a simple way to discover and to report the number of physical channels that have been selected?  I looked for property nodes to do this, use the "Physical channel" control as well as the indicator 'task out', but I have not found anything so far.  Any help would be greatly appreciated.

    Found!

    Measurement of e / s-> NI - DAQmx-> Advanced-> Confi task-> task node-> NumChans (number of channels)

  • Duplicate the physical channel with virtual channel

    I accidentally created more global virtual channel with a single physical channel, for example:

    global virtual channel physical channel

    A0 vtc00

    A0 vtc01

    A0 vtc02

    My questions are:

    1. How can I change the virtual channel as follows:

    global virtual channel physical channel

    A0 vtc00

    A1 vtc01

    A2 vtc02

    2-How do I re-name/remove the virtual global channel, when it is not in the task?

    Thanks for your time, Dylan

    Hello Carisa,.

    I decided to go head re - install the DAQmx tonight and re-imported the right config file known about it.  So far, all global virtual channels are now under the management of devices and interfaces plus all unwanted virtual channels have disappeared - Yippee!  I tried to browse a unit test to make sure that the virtual channels work too, they seem good.

    Finally, the issue is resolved.  I would like to say thank you to you for you and Roberto Bozozlo have spent the time to help me through this.

    Sincerely, Dylan

  • How to get the physical channel for USB card as ENET

    Hello

    For my application (VB .NET, using NIDAQmx 8.8), I need to access the 2 cards:

    a USB-6008 and an ENET9163.

    I would like to read the physical channels automatically with this feature NI-DAQmx

    Physicalchannel1ComboBox.items.AddRange (DaqSystem.Local.GetPhysicalChannels (PhysicalChannelTypes.AI, PhysicalChannelAccess.External))

    Unfortunately, he didn't get a single card at once.

    When the USB card is connected, he read the physical channels of the USB card

    When the USB adapter is not plugged in, it read the physical channels of the ENET card.

    I hope someone can help me with this problem!

    Thank you

    RB

    Hello RB.

    To read from multiple channels, you can enter in the drop-down list box "Physical channel", the comma separated channels, custom channels or if you read physics, the string "DevX/Benjamin: Z", where X is the number of device, and X and are the first and the last channel you want to analyze (for example to read to ai0 to ai4 from your device 1 enter "Dev1 / ai0:4"). Among the names of your channels, I guess they are global channels created in MAX? You can always read channels multiple and different advice by separating the comma.

    I hope this helps!

    Kind regards

  • get the number of wired physical channels?

    Hello

    I need to create a Subvi, and in this sub - VI, it is important to know the number of physical channels connected to the entrance of the Subvi.

    Is the only way to do than writing another "channel search and County" - Subvi, which examines the "physical" channels - wire? Something looking for a ': 'and',' and who treats this information then.

    Or is there a better way to do it?

    Or has someone already written such a Subvi, which counts the number of channels wired?

    Thank you very much

    Andy

    If you ask to know how many channels is in a physical channel DAQmx? If so, just the physical channel to Unflatten DAQmx channel chain wire. You'll get a table. The size of table function will give you the number of channels.

  • Devantech TPA81 read temperature table "physical channel be unspecified.

    Hi, I'm new to Labview.

    I need to use a heat of TPA81 sensor in my Dani robot project, so I found the 'Devantech TPA81 reading temperature table' example in examples of robotics. I connect my sensor with a USB - I2C converter and then connected to my PC. I run the program, but the problem "the physical channel is not specified" still exists. How to choose the physical channel in labview for the clock channel and the data channel?

    Could someone please help me and thank you in advance.

    Jason

    Hello.

    The example given here "Matrix of the temperature read Devantech TPA81", works with acquisition cards supported by the driver "DAQmx" therefore, I think that this will not work with a simple "USB - I2C" converter.
    Now, on the other hand, if you just want to work with the "TPA81" sensor in the robot, DANI, you could see the example "Devantech TPA81 (FPGA). Lvprog' in the help of LabVIEW, where, in the "target FPGA", you will find the VI "Devantech TPA81 (FPGA). saw', where you can configure the channels (data and clock).

  • Simulating multiple virtual channels per physical channel

    I have make steps high speed with several channels simultaneously and am wishing to be able to store the raw data and the version to the unique scale of the data both in tdms files.  However, I am wanting to be able to apply properties for the versions on the scale and not scaling separately, mainly to keep the data clean and usable, as well as to ensure that in 6 months when we look at the old data to establish anything confused reports.  I know that several virtual channels may be established by a physical channel, but then they must be played in order.  Is it possible to simulate this process, or give an another stream of distinct to write to the tdms file properties?

    First of all, media DAQmx LabVIEW 8.2 9.0 and later, so you should be able to use the new feature.  That being said, for your application, it wouldn't work that well, since you are eager to keep the original DAQ signal so a new signal scale.  This function stores the data as you would see in DAQmx Read.  Information of scaling you apply can be performed by using a custom in DAQmx scale, but you 'lose' the original file (RAW).  However, if you store the scale factor in the properties (as explained below), you could get back to the original data at a later stage (by dividing by the appropriate scale factor).  If you buy 2.5 MECH data. / s, you can consider this solution in the interest of performance.

    That being said, if you need signals separated for raw and scale, this feature might not do what you are wanting.

    Therefore, in answer to your question immediately, if you want these signals to be in the same file, PDM, it's quite possible.  Here are comments by looking at your VI to this effect:

    1. on the PDM write call and son in a 'group name' such as 'Gross' or 'ladder '.  Which splits the data properly to make it obvious what is what.

    2. If you want additional information must be stored with the Group (as the scale factor), wire in your group name in the PDM Set properties VI you have and set the 'names' and 'property values' properly.

    3 certainly, wire in the same refnum TDMS to all functions of PDM.

    Let me know if you have other questions about it.

  • Physical channel selected does not support the type of output required by virtual channel

    I use a box USB-6251.  Inside of MAX, I can set the device to Dev1 / ao1 sine wave generation and if he have output a sine wave.  When I use DAQmx DAQmxCreateAOFuncGenChan function I get error: selected physical channel does not support the type of output required by virtual channel.  The pilot DAQmx does FuncGen on the box USB-6251 or MAX out a set of tensions?

    Hi Paul,.

    Welcome to the Forums EITHER!  The DAQmxCreateAOFuncGenChan is supported only on products Elvis II.  For other devices, including the 6251, you must use the ordinary DAQmxCreateAOVoltageChan and create your own data buffer.  I would recommend looking in the following example:

    Start > all programs > National Instruments > NOR-DAQ > textual Code > ANSI C examples...

    Analog on > generate voltage > Cont Gen Volt Wfm - Int Clk

    In MAX the Sinewave output is used as a test signal - in this case MAX is a period of the wave sine values to write to the buffer and generate these data.  Again, you can produce a sine wave (or any other function) using the AOVoltageChan, but the AOFunctionGenChan is used only with Elvis II.  Just generate data points for the sine wave that will produce DAQ hardware.

    -John

  • How to control the sequence of scanning channels in DAQmx

    I have an application written for the traditional DAQ C API that I need to convert to use DAQmx drivers. The application uses the SCAN_Setup function to create a canal complex analysis sequence of taste effectively at different rates on each channel and to vary the rate on one of these channels. The following example shows the sequence of sweeping strings passed as an argument to the call of SCAN_Setup chanVector:

    0 0 0 0 0 0 0 0 0 0 0 1 0 2 0 3 0 1 0 2 0 3 0 1 0 2 0 3

    The sequence of I is synchronized with a waveform of the AO and is designed to measure response on AI0 from an external system to this waveform while taking other measures from other sensors at the same time: AI1, 2 and 3. This sequence provides a higher AI0 at the beginning of the wave sample rate.

    How can I do this using DAQmx?

    I tried to use a loop to make several calls to the DAQmxCreateAIVoltageChan function, one for each sample in the vector of channel, but the result does not seem to read the right channels in the correct order.

    Is there a problem with the addition of several times the same physical channel in the same task?

    Thanks for your help.

    Hi TradLuddite,

    Material of the series E have a specification 'size of the memory configuration' of '512 words', which means that they can sweep up to 512 unique physical channels. I would wait until a depth of 1000 causes the DAQmxStartTask() return an error. However, it may be possible to exceed this limit, if the scanlist consists only of the groups of the same size of the identical physical channels (where the entry terminal configuration limits are the same within each group), because the material is supported by a very simple form of compression scanlist. Material of the series M have a specification corresponding loads "scan memory list" 'entries of 4095', to a depth of 1000 would not be in this limitation on the M series.

    Definition of the data property of transfer mechanism is probably not necessary. DAQmx chooses a default value for this property, depending on the type of device and the type of calendar sample property. The use of DAQmxCfgSampClkTiming() to set the calendar type of sample to "Sample clock" will result in a mechanism for transfer of data by default "DMA", "USB in bulk" or "Pauses" depending on the type of bus (PCI/PXI, USB and PC Card, respectively). Not configuration synchronization (or by calling DAQmxSetSampTimingType (taskHandle, DAQmx_Val_OnDemand)) will result in a mechanism for transfer of data by default "set of I/o.

    What DAQmxRead() function are you? You specify DAQmx_Val_GroupByChannel or DAQmx_Val_GroupByScanNumber for the fillMode parameter? Have you checked the value returned in * sampsPerChanRead?

    Only repeated channels return incorrect data? It works when you repeat all the channels? Otherwise, maybe the terminalConfig parameter does not correspond to how signals are wired, you have ghosting, or there is a problem with the wiring for signals. It still works in NOR-traditional DAQ?

    Brad

Maybe you are looking for