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.

Tags: NI Software

Similar Questions

  • 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

  • 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

  • Addition of several global virtual channels

    Hello

    I had a very simple function written in CVI which adds several global virtual channel

    DAQmxErrChk (DAQmxAddGlobalChansToTask(g_TaskHandle, linesName)); //linesName consists 2 global virtual channels seperated by ",". E.g. "Power, Com" where Power = port1/line0 & Com = port1/line2
    

    There is also AddGlobalFunction in MEasurement Studio, but it allows adding of single channel only:

    Task localTask = new Task();
    localTask.AddGlobalChannel(linesName); //Get Expetion here = -200486, Specified Channel not in the task. When I give a single channel name..it works
    DigitalSingleChannelWriter doWriter = new DigitalSingleChannelWriter(localTask.Stream);
    doWriter.WriteSingleSampleMultiLine(true, states); //atates is the array of type bool which consists of value for each channel
    

    It is not possible to add multiple Global channels to a task?

    We have recently acquired license Measurement Studio and try to port/compilation/write our old libraries (written in CVI) inside.

    Is there a help line that compares the CVI C functions with the respective functions of DAQmx .NET?

    Thanks in advance!

    Ciao

    Ricky

    Hello

    It seems you are right. The method definition specifies that it only adds a channel:

    public NationalInstruments.DAQmx.Channel AddGlobalChannel(string channelName)
        Member of NationalInstruments.DAQmx.Task
    
    Summary:
    Adds a preconfigured, global channel to the task.
    
    Parameters:
    channelName: The name of the global channel to add to the task.
    
    Returns:
    The global Channel.
    
    Exceptions:
    NationalInstruments.DAQmx.DaqException: The NI-DAQmx driver returned an error.
    

    This could be explained by the fact that the function returnes the proper object of channel associated with the global virtual channel you created.

    I tried to check the reading code 2 Global virtual channel using the DAQ Assistant in Measurment Studio but I wasn't able to get a large part of it (the generated code creates two consecutive calls to the method "CreateVoltageChannel".

    What happens if you call AddGlobalChannel twice?

    Task localTask = new Task();
    localTask.AddGlobalChannel("Power");
    localTask.AddGlobalChannel("Com");
    

    I don't have the time to try this so far, but my understanding of the help file, I guess it could work.

    Best regards

  • Help the evolution of the scaling of a virtual channel?

    Can anyone help me please with this block of code that I have?  I don't understand why on the first run it works fine without error exception daq, but on the second run, I get an error.

    More detailed, I create a virual channel in a Sub with a button click event.  This virtual channel is set to the default values (MIN = - 10, MAX = + 10, linear scale with scale and Offset 1 and 0 respectively).

    The click event, is where I'm having difficulties in the other slot.  In this Sub I am creating custom scales and assigning values to them, setting the MIN and MAX values of the virtual channel on the same minimum and maximum values of the custom scale being used and assigning custom for the channel finally this new scale virtual to use.  The code works for the first run.  When I change the scale and then run the code again to a second iteration, I get an Exception of daq error.

    Its seems that the MIN and MAX are ready on the second run, but the scaling is not reset to the new scale of values.  Can someone check and if so, what is wrong and must be changed in my code?

    First execution of the click event of the 'Download' button to assign the custom scale with its values to the virtual chanel... works very well.

    Change the scaling, in the case of 400 to 600 and then run the same code with the 'Download' button click event and I get the daqException error

    myTask.Control (TaskAction.Stop)

    PreScaledVals.TrimExcess (): PreScaledValsArray = PreScaledVals.ToArray
    ScaledVals.TrimExcess (): ScaledValsArray = ScaledVals.ToArray

    If chkBoxTblScale.Checked = True Then
    Try
    min = ScaledValsArray.First
    Max = ScaledValsArray.Last
    Catch ex As Exception
    MessageBox.Show (ex.) Message & "" scale of table must contain at least two values prééchelonnés and two nationally. ")"
    Return
    End Try
    Else if chkBoxLinScale.Checked = True Then
    min = numEdtMIN.Value
    Max = numEdtMAX.Value
    Else if chkBoxMapScale.Checked = True Then
    min = numEdtSMin.Value
    Max = numEdtSMax.Value
    End If

    LinScale = New DAQmx.LinearScale("Linear Scale", scale, offset)
    RMPScale = New DAQmx.RangeMapScale("Ranged Map Scale", prescaledMin, prescaledMax, scaledMin, scaledMax)

    If chkBoxTblScale.Checked = True Then
    Try
    TblScale = New DAQmx.TableScale ("Table scale", PreScaledValsArray, ScaledValsArray)
    Catch ex As DaqException
    MessageBox.Show (ex.) Message)
    End Try
    End If
    Try
    If cboBoxChannels.Text = "6" then
    ChannelSelected = 6
    Else if cboBoxChannels.Text = "7" Then
    ChannelSelected = 7
    Else if cboBoxChannels.Text = '8' then
    ChannelSelected = 8
    Else if cboBoxChannels.Text = '9' then
    ChannelSelected = 9
    Else if cboBoxChannels.Text = "10" Then
    ChannelSelected = 10
    Else if cboBoxChannels.Text = "11" Then
    ChannelSelected = 11
    Else if cboBoxChannels.Text = "12" Then
    ChannelSelected = 12
    Else if cboBoxChannels.Text = '13' and then
    ChannelSelected = 13
    Else if cboBoxChannels.Text = "14" Then
    ChannelSelected = 14
    Other: ChannelSelected = 15
    End If

    Select the ChannelSelected box
    Box of 6
    myTask.AIChannels (lblCh6Wfg.Text). Minimum = min
    myTask.AIChannels (lblCh6Wfg.Text). Maximum = max
    If chkBoxLinScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "linear scale".


    Else if chkBoxTblScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "Table of scale".
    Else if chkBoxMapScale.Checked = True Then
    myTask.AIChannels (lblCh6Wfg.Text). CustomScaleName = "stood at the map scale.
    End If

    TblScale = Nothing
    RMPScale = Nothing
    LinScale = Nothing

    Thank you

    Look at what you are doing with the New .

    If the object does not exist then prompts you to create it, but when it is created, you must be change it.

  • DAQmx create virtual channel (VI) error-229771 reports

    Hello

    When in a project that I am working to get error-229771 code whenever I try to run 'DAQmx create Virtual Channel (VI)' this does not happen when I create a vi not in a project.  The problem is that this project is very large and it if poster impossible to recreate. It's several hundred vi. Y at - it something that I missed in the forums and support that could explain this. I created the VI below in the project and outside the project. In the project, the error occurs outside the project, it runs without any problems.

    Message:

    229771 error occurred at .vi:1780003 DAQmx create channel (I-voltage-Basic)

    Possible reasons:

    Internal software error has occurred in the MIG software. Please contact the support of National Instruments.

    Task name: _unnamedTask

    Any help would be appreciated.  Thank you, Matt.

    LabVIEW version: 15.052(32bit)

    OR Max Version: 15.0.f0

    NEITHER DAQmx Verson: 15

    OS: windows 7 service pack 1

    PC: Intel Core i7-2600, 8 GB of ram

    Data Aquistion: NEITHER DAQ USB-6289 calibrated June 2015

    This code snippet returns the name of the first channel of analog input on the device first, and then tries to create a task for her. The bed of the canal, then close the task.

    Error message

    Hi Matthew,

    Thank you for following up after you fix your problem.  I'm glad to hear that you do not encounter this problem more.

    Here is an article that lists the reasons for this error (although unfortunately, I cannot pin down which is the exact cause in this case).

    http://digital.NI.com/public.nsf/allkb/03123D0E8A36C48E862577A4005B6BAA

    NOTE: This article specifies that the error occurs at startup task VI DAQmx.  You do not use the start task VI, so the task starts automatically in the DAQmx Read function.  The error will occur instead in the DAQmx virtual channel create, that you encounter in your error.

    I hope this gives you an idea about what could have gone wrong, and I'm sorry he is no more details.

    Good programming!

  • That does Create DAQmx Virtual Channel (TEDS AI accelerometer) actually?

    Hi all

    I have a logging application of fundamental vibrations for which I use TEDS accelerometers active.  I set up a task using the virtual channel create (TEDS AI accelerometer) to add the right channels, but none of the data in the table of TEDS seems to be get attracted to my channels.

    This VI pulls information of the TEDS scaled such that the values I have read are resized to the appropriate unit?  Is it possible to force it to drag all the TEDS data by so that when I save a waveform to a tdms file they end up like channel properties?

    I've included a screenshot of VI, which creates the task for reference.  Thank you!


  • Missing virtual channels PXI-4070 DMM


    Problem has been resolved in office. Cannot create global to the DMM virtual channels as the DMM uses the pilot DMM and global virtual channels are a method of the DAQmx and traditional DAQ drivers.

    LeeM
    NIUK

  • Save a virtual channel of a vi

    I used to work with LabView and DAQ traditional just now.

    I'm moving now (only!) to DaqMx and I run a few beginners in disorders.

    I create virtual channel in my VI and I would record in global virtual channel so I can access it from other VI. In other words, I would like to know if it is possible to create channels as we do at Max, but in the moment of execution, the runtime of the VI?

    Thanks in advance

    OK, found it.

    You can forget the question

  • problem setting daq virtual channel to PCI-6229

    Hello

    I have trouble to set up a virtual channel to PCI-6229.  It comes to LABVIEW 7.1.  I am updating a VI in LABVIEW 6.1 to 7.1.  When I go through the Assistant of MAX, I get it configured how exactly it is about the version of LABVIEW 6.1, but then under device, there are not listed, although MAX recognizes the labview map in the NOR-DAQmx devices section.

    Please help me on this one, as I'm new to labview and cannot find another way for this VI to work but with virtual Renault.

    Thank you

    Hello

    The PCI-6229 is a map of series M and it is supported only by DAQmx Device Driver

    Since you MENTIONED that it is the virtual channels in LabVIEW 6.1, your old VI must use of the API OR-DAQ traditional (old)

    Howerver the transition from the traditional DAQ in the DAQmx will certainly not be a major concern for you

    Since you're new to LabVIEW, you can quickly adapt to the use of DAQmx

    The following links should help you to learn and get into programming with DAQmx

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3021

    http://digital.NI.com/public.nsf/allkb/BB06D0620FDD7ADB86256D2700557BFC

    http://zone.NI.com/DevZone/CDA/tut/p/ID/5375

    http://zone.NI.com/DevZone/CDA/tut/p/ID/2744

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4342

    No matter what other assistanceyou seek, let us know

    Kind regards

    Dev

  • Time scale does not properly after separation of the two signals of virtual channel

    Hi all

    I have a problem when I use a virtual channel with two analog inputs. I'm cutting the two signals into two separate tables of waveform, as shown in the attachment. The two signals seem to be reading very well, the problem is that the time scale (x-axis) begins to act on the strange. Seconds displayed time seems to keep jumping up and down at a high frequency, resulting in the two signals of displayed does not correctly in the table of waveform. Could someone please try to help me? Any help would be greatly appreciated!

    Thanks in advance.

    Try to acquire a signal with first time information. You can replace the DBL 2D with a data type of 1 d wave. You don't need this code extra silly - just a function of Board Index to get the separate channels.

  • Can NOR-DAQmx application read a virtual channel with two independent

    Two standalone applications OR-DAQmx need to read the same virtual channels of the same material at a different frequency at the same time. Is this possible?

    Thank you

    This is not possible since which application is executed, the source is reserved so that the second application cannot read.

  • Duplicate a CTR Global Virtual Channel Max does not update the CO. Pulse.Term setting

    Hello

    Here is the description of the problem:

    MAX version: 4.6.2f1

    DAQmx: 9.0.2

    Material: cDAQ-9178, output digital OR-9474.

    This module to:

    • CRT out 0 <-->PFI3
    • CTR 1 to <-->PFI7
    • TRM 2 on <-->PFI1
    • CTR 3 on <-->PFI5

    1. in MAX create a Global as an exit CTR on ctr0 virtual channel.

    2 use the double in the menu to create a second output of counter. Change its name and replace it with ctr ctr output OUT 1.

    3 al ' MAX, the pulse output configuration pane must take into account the change showing the terminal output pointing to the appropriate forum

    4 export settings in an INI file and look at the CO. Pulse.Term settings for both channels CTR: they will appear together with the SAME exhortations!

    5. with the help of LabVIEW write a vi that generate pulses on these 2 ways, you will get the error-89137 saying that a PFIi resource is already in use. If you look at the Task CO. property Pulse.Terminal, it returns the same to two piles, which is the same error in the ini file.

    Can someone at arrival OR this? THX.

    Laurent

    PS: I posted this message in the LabVIEW Board as I have not found one for MAX

    Hello

    Corrective action request (CAR) ID: 228780

    Best regards

    M Ali

    Engineering applications

    National Instruments

  • PIX 515e, multiple VIRTUAL networks on a physical interface to DMZ

    We try to set up multiple VIRTUAL networks on a physical interface to the DMZ on a PIX 515e.

    The goal is to have logical subnets linked to our single, physical interface DMZ.

    Here's what I've tried so far without success:

    The switch

    -created the vlan 30

    -added switchports fa0/1 to 30 of vlan

    -attached host 192.168.100.1 in fa0/1

    -added switchport fa0/24 to the vlan 1 and vlan 30 with multimode

    -interface PIX DMZ connected to fa0/24 switchport

    -attached host to switchport fa0/10 172.16.1.55 (vlan 1)

    PIX:

    Auto interface ethernet2

    logical ethernet2 vlan30 interface

    nameif DMZ security50 ethernet2

    nameif vlan30 dmz2 security50

    address IP DMZ 172.16.1.254 255.255.255.0

    IP address dmz2 192.168.100.254 255.255.255.0

    Results:

    -172.16.1.55 has full connectivity to the PIX and beyond.

    -192.168.100.1 cannot ping the PIX to the 192.168.100.254 or anything else besides.

    Any help would be greatly appreciated. Also, I realize that I could buy a four port NIC and use the physical interfaces, but I can't get the approved purchase.

    Thank you

    Creation of VLANS on Ethernet1

    We want to create a new interface VLAN - VLAN30 and name DMZ2. Also affect the security level 50 in it.

    Step 1: Create a physical Interface:

    PIX (config) # interface ethernet1 vlan2 physical

    Step 2: Name the Interface and set the security level:

    PIX (config) # nameif ethernet1 inside the security100

    Step 3: Assign the IP address of the interface:

    PIX (config) # ip inside 192.168.1.1 address 255.255.255.0

    Step 4: Create the logical Interface:

    PIX (config) # interface ethernet1 vlan30 logical

    Step 5: Name of the Interface and set the security level:

    PIX (config) # nameif vlan30 DMZ2 security50

    Step 6: Assign IP address to the interface:

    IP pix (config) # DMZ2 192.168.100.254 255.255.255.0

    Step 7. Switch, set the port where from the inside, to the Isls or dot1q physical interface. Place the sheath in the native vlan2 as in step 1.

  • PCoIP and RDP virtual channel

    Hello, I'm new on the Horizon of VMware View, and I have a question about the PCoIP Protocol.  Do you know if the 3rd driver RDP Virtual Channel can work with this Protocol in VMware View Horizon? If so, what are the steps to configure the driver in this environment?

    Thank you very much in advance for your help.

    > If I understand correctly, the RDP virtual channel driver can be enabled when you choose the RDP Protocol for use with VMware View Horizon.  Do you know if > there is a way in VMware View Horizon so that she and it can also work with PCoIP Protocol?

    "Not without change anyway. We have a layer of compatible virtual channel RDP we were those who have developed a solution of RDP based VC can use our improvement of session SDK to modify and recompile their solution and it will work on a view session PCoIP. This requires that RDP VC functions uses the solution are implemented by our CR of compatibility, we have never found a case where they do not.

    This SDK is available to partners although our TAP / Alliances programs. "

    WP

Maybe you are looking for

  • I have a 'Virus '... search engine

    I have a 'Virus' search engine (mystartsearch.com) that comes up when I restart Firefox, even though I have reset the default home page and removes it from the list of search engine, like a God darn evil virus...I've included a screendump of "subject

  • card mother ipibl-lb of Benicia

    the benicia IPIBL - LB does AHCI in the bios? I want to install a SATA of Samsung 830 of 128 GB ssd drive

  • Satellite P300 connected via HDMI receiver Onkyo 607 - no sound

    Hello I have the Satellite P300 1BB for awhile and I'm very happy with it. But now I have a problem with the P300 HDMI port. I connected with my Onkyo TX - SR 607 5.1 receiver HDMI. The image is there, but there is no sound. If I connect the P300 dir

  • Error to delete using the Delete Trigger

    Hi people:I tried to use the following trigger. She inserts updates, okay, okay, but gives mutating table error when I try to delete the BALES_HARVESTED table...The trigger fires when an insert, update, or delete occurs.Table, the trigger is set at:

  • Black screen of Studio 1557

    Hi all. I have a problem with my 4 years old computer laptop dell studio 1557... It happened one day that, while I was with her, the screen (maybe for overheating problems) turned completely black, then I've liquidated it down. Now when I turn it on,