Single virtual channel with several digital ports

Hi all

I created a program that creates a task to read continuously for 3 lines of digital channels in the same unit (PXI-6133). I'm trying to figure out how I can retrieve the data from each row of port to be in a waveform graph. Currently, I use DAQmx Read instance with '1 channel N samples' but I get a waveform with all the values at the same time or a graph of waveform with the three lines transposed.

I use Windows XP and LabVIEW 8.6.

Appreciate any help!

Matt,

I'm sorry to have brought this on you but I thought about it. I misread the description of vi DAQmx create a task for a digital input. I thought that several lines of port could not be divided into several channels, but it was all physical ports.

For those seeking another response: I was able to specify 'a channel for each line' in the task of creating, and then in the DAQmx Read task, I indicated "N channel N samples" and finally analyzed the 1 d table to get the data for each port.

Thank you for your time!

Tags: NI Software

Similar Questions

  • Slide with several digital poster Down filter event Bug button?

    A key event filter on a slide with several digital screens down does not work as expected when not waived. If you for example tab of this slide with two digital screens digital display, the cursor remains on his position, rather than get KeyFocus to the next control. Same behavior at fault if you want to move the cursor on the left/right keyboard, nothing happens. Anyone an idea why?

    A simulation of that VI is attached. All other controls, a Slide with a digital display or a standard digital control, the key Down event filter behaves as expected... I tested in versions 8.5.1 LV (attachment), LV2012SP1 and LV2013.

    A teammate now found a solution or workaround. We do not know if this is the way it should be, if yes, then it's a bit hidden, but it works!

    It seems that the cursor needs to know on what digital display the FocusObj is when you use the event notifier KeyDown. Then, when to get the reference of the digital display active and the wiring of this reference to the terminal FocusObj filter event everything works as expected, numbers of tabs, typed, cursor etc and have to filter and notify events structure to the event.

    A vi and a printscreen are attached.

    The question is probably due to the specialty of slides and the class NumericWithScale in general, as its digital displays are a little under References and during the implementation of the features of event KeyDown for the class NumericWithScale filter, LV simply does not know on which side of the main action control part must be executed.

    Or someone has a better solution and explanation?

  • Problem of size of form with several Digital Signatures

    I created a form (liveCycle 8) with several digital signatures.  When each user signs the form, this section of the form is locked using collections.  The form is workflow by email after each user connects it.  Whenever the user signs and submits the form, the size of the form becomes too great.

    How to optimize the form to compress whenever a user signs the form?

    Thank you

    Lori

    Steve,

    After your request to publish the form, I wanted to remove some elements of society, such as the Logo.  Once I removed the Logo, I found that the biggest problem was a Logo image size which was the large file.  Once I reduced the size of the image, added only 46 KB signatures at each level of signature.

    Thank you for your help,

    Lori

  • 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.

  • Modbus IO with several ethernet ports?

    Dear experts LabView:

    My Labview system must communicate with three slaves Modbus (variable speed drives of motor with Modbus TCP/IP option installed) to send orders (speed set), and status of the drive reading (the actual speed, output current/voltage/power etc.). The PC has an Ethernet card to four ports with three of the ports connected via a standard Ethernet cable to the three controllers. Three ports on the PC Ethernet received (192.168.1.10, 192.168.1.11, 192.168.1.12) static IP addresses. The three controllers have been configured to give the Modbus slave static IP address options as well (192.168.1.20, 192.168.1.21, and 192.168.1.22). I also downloaded the NI Modbus (version 1.2) library and want to use its screws to perform query operations master Modbus. To do this, he must first open TCP connections on three slaves using the connection open TCP vi, and that's where my problem comes in. How TCP connection open connection to use a specific port to Ethernet (one of the first three IP addresses) on the PC? Thanks in advance for your help.

    VRA

    Hi VRA,.

    What you mean? There is a port entry.

    Mike

  • With Adobe ID, is it possible to have a single account, but with several IDs for access to limited features?

    I find it hard to manage all the needs of our unique Adobe ID is it possible to have a configuration similar to the following

    Currently I have to share the only Adobe ID credentials (security risk) and tsound would also facilitate the expansion of the users of the future


    User ID with access to the cloud, applications and tools on a per individual user basis.

    Accounts of ID to give our access accounts for the Department to manage the details of billing and payment, download invoices ect.

    Administrator ID additional administrators with full access to the purchase plans, Add users and allocate programs for them.

    I don't use a team plan, so have no idea

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific time) <===> NOTE DAYS AND TIME
    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)
    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • Model of single virtual machine with multiple entries of catalog with sizes different resources?

    I want to have the 3 sizes of master plan:

    • Large - 4 vCPU, 8 GB mem, 120 GB of disk
    • Medium - 2 vCPU, mem 4 GB, 80 GB drive
    • Small - 1 vCPU, mem 2 GB, 40 GB drive

    But I don't want or need 3 different models 2012 Windows (pain to maintain) base I want to have the 3 elements of the unique catalog that deploy the same model vcenter but with the sizes of the various resources.   What is the best way to do this in vCAC?   I guess I do via VCO?

    Thank you

    -MattG

    Yes. Change the minimum resources and leaving resources white max will give you three flavors you want. You only need a model in vCenter. Make sure that the model of vCenter is identical or smaller resources than your flavor of "small". I don't think that you can set lower than that of the model minimum resources.

  • 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

  • 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.

  • I'm trying to create a PDF file with several signature lines in that anyone can "Sign" by using their digital signature CAC (Common Access Card) active. The goal is to have a single document that people can open, sign on a designated line and save the doc

    I'm trying to create a PDF file with several signature lines in that anyone can "Sign" by using their digital signature CAC (Common Access Card) active. The goal is to have a single document that people can open, sign on a designated line and save the document (replacing the existing document) and close. Then another person can open the same document digitally sign another area of the form, save it, and close it. So on, and so on. Is there a way to do this? At the end of the day, I would end up with a PDF file with literally hundreds of signatures to enable different ACC everywhere...

    I don't understand what the problem is. In the post of the davidr96549424 on May 8, 2015 07:58 you presented a structure of a correct document. Is the issue of the creation of this structure in a PDF file? For this, you will need an Acrobat, not reader.

    XI in Acrobat, select Tools-> forms-Edit. Click 'No' on the form fields 'detect '. In the tasks Panel that opens, click on "add new field". Select "Digital Signature" and move it to the location in the document where you want to than the appearance of the signature to be. Repeat that for signature fields as you want. Users will sign by clicking on the prepared unsigned signature field which shows the dialog box "sign. Do not forget that as TSN has noted that a digital signature applies to the entire document. The entry in the document where it is is irrelevant. Each next signature covers all previous signatures.

    Your users can also sign a document from anywhere that they want without signature fields already prepared. For this select fill & sign-> work with certificates and the type of signing you want to sign up with. A dialog box that will tell you a rectangle for the appearance of signature rises and after you draw the rectangle of the dialog 'Sign' rises.

    PDF/Acrobat doesn't have a limit on a number of signatures in a PDF document. But! Don't forget that when you open a PDF file with Acrobat/Reader signatures valid all of them and takes time (several seconds - until 10 - for every signature), so if you have several signatures of dozens of their validation open can take a long time.

    I don't know how build you your workflow so that each person signs the same PDF and saves it. Economy runs on the same computer where the PDF is stored. You'll have to decide how to allow different people to have access to the same PDF. They, of course, you may sign this only one-at-a-time PDF.

  • 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

  • Write to digitall all ports (channels) with the decimal value

    Hello

    It is possible to write all digital channels with a value decimal for a device with 96 channels at the same time?

    I have a USB-6509 camera and I want to write each value of Pentecost bit 1 in the loop (for the first transfer I write 0,1,2,4,8,16, 32, 64 and 128) with the line "Dev3/port0 / line0:7", but if I want to write all ports at the same time, how to set the line and the "write.vi DAQmx?

    Thank you.

    You can configure the reading and writing in the ports of 8 bits with the 6509.  For example, you could write just 128 to "Dev3/port0.  If you want to write to all 12 ports, I recommend doing a task that is several channels on the 6509 module, each channel of the task being a port.  You can then use the channel Multiple, single sample of writing of your values.  Your values must be in a table of U8.

  • Outbreak of several digital lines of a single window using PCI 6353

    Hello

    I use a PCI 6353 to control a laser for a PIV system. The laser requires 4 pulses (F1, F2, T1, T2) on different channels. It would be easy using 4 counters on the Board, but I also need to trigger the camera. The card has a lot of output digital, so I thought I could use 2 meters and four digital outputs.

    I thought that, by setting the pulse counter from 0 at a time duration between F1 and T1 and triggering a rising edge and T1 F1 a front down using output internal), I would be able to solve the problem. However, the system I cannot trigger the two lines of the same internal output. I don't know why. I have attached two vi, one for a single channel that works very well and the other with two channels. I am also attaching a diagram of approximate time of my proposed solution.

    I am not absolutely put on this format, so if this is not possible and you have another solution, please let me know. Accuracy is the key here, the widths of pulse being about 1 microsecond and the intervals between F1 and Q1 being approximately 10 microseconds, so I think the hardware timing is essential. However, I'm not quite clear on interact it with the digital pulses and counters.

    Kind regards

    Joe

    Hey Joe,

    All the lines that you want to use for quick time ARE on the 6353 must be in the same spot.  Unfortunately, you can't start or clock several lines independently.

    That said, I think that the simplest solution would be to simply create a waveform suitable for generating all 6 signals with.  You should be able to clock up to 10 MHz, which gives you 100 ns resolution.  If you need 1 us resolution, then you could get by synchronizing the c to 1 Mhz.  While you could technically use a combination of counters and to get what you need, it should not be necessary in your case.  All you need is a single task with the waveform appropriate to generate your desired signals.

    Best regards

  • GAL/LACP with several VIRTUAL LANs

    Hello

    I have two switches SG-200-50. I created three VLANS on one and define the place of the other - there is no requirement for routing between VIRTUAL LANs. However, I want to trunk between local networks VIRTUAL using with LACP LAG. For example, A button 1-22 ports VLAN 1 and then 23-24 is the junction for this. 25-34 is VLAN2 and trunking is 35-36. VLAN 3 is 37-48 and 49-50 trunking. I seemed to be able to get 1 VLAN, the default, trunking but no VLAN 2.

    I have a few questions:

    1. the SG-200 will allow you to the trunk several VIRTUAL LANs for another switch?

    2. If so - how? I've lived the documentation and it does not mention explicitly "multiple" VLAN with DELAY.

    3 circuits is possible by a LAG (say 6 ports) happening all the VLANS on the switch?

    So the main question is that I want to achieve is possible on this switch. The reason why I'm doing it is of course of redundancy. Carrying one VLAN on both switches is preferable. I just need trunk correctly between them.

    See you soon! Any thoughts appreciated.

    Scott

    Hi Scott,.

    You had questions, which I copied in red. :

    1. the SG-200 will allow you to the trunk several VIRTUAL LANs for another switch?  Absolutely

    2. If so - how? I've lived the documentation and it does not mention explicitly "multiple" VLAN with DELAY.

    I have attached the Administrator's guide.  The OFFSET rules are defined at the bottom of page 82 of the attached document.

    The 200 series supports four lags, or in other words four groups aggregagted of links.

    3 circuits is possible by a LAG (say 6 ports) happening all the VLANS on the switch?  Yes as indicates it page 83 administrator guide.

    Assign up to eight ports active members to the static LAG.

    So the main question is that I want to achieve is possible on this switch. The reason why I'm doing it is of course of redundancy. Carrying one VLAN on both switches is preferable. I just need trunk correctly between them.

    Personally, I prefer to the trunk on gal differently, especially when you are trying only to achieve redundancy and higher aggregate bandwidth between switches.  It is also relevant to the 300 series as the product of the 300 series is just a richer product.

    You want; "I want to trunk between local networks VIRTUAL using with LACP LAG. For example, A button 1-22 ports VLAN 1 and then 23-24 is the junction for this. 25-34 is VLAN2 and trunking is 35-36. VLAN 3 is 37-48 and 49-50 trunking. It seemed to me be able to obtain VLAN 1, the default value, trunking but no VLAN 2. »

    What about using the ports numbers higher for the uplink between switches, I have no particular reason to use these ports except that they are on the right side of the switch.

    A B switch

    ports ports

    VLAN 1 1-24, 47-48 1-24, 47-48

    VLAN2 25-34, 25-34

    vlan3 35-46 35-46

    LAG ports 49-50 49-50

    The advantage of this is that now you have two ports of the traffic load balancing between switches of series two 200.  I could have more if I want, but I want to keep my simple example.

    Create a static OFFSET, by the sound of it you did already.

    I just used my 300 series switch (SF300 - 48P) as a demo, as I don't have a series 200 switch.  Configuration should be roughly about the same.  In my case, I have four ports GiG GE1 to GE4.  I will use GE1 and GE2 as my two members of a group LAG 1.  May sound a bit confusing, but follow below.

    Added two ports for the DELAY, note in the example below GE1 and GE2 are not connected to another switch, so they showup as ports of Eve;

    Also my 300 series switch supports eight groups of LAG, so captures the numbers 1 to 8 as shown in the following screen.

    Now that my LAG is created, you'll notice in the screenshot below that VLAN1 is added automatically to the LAG 1 as unmarked frames.

    Note: circled point, I selected LAG in this menu drop-down and then click Go.

    Note: 1 in the Red rectangular box represents GAL Group 1, which consists of GE1 and GE2

    Now, I add 2 VLAN group LAG 1 by selecting 2 VLAN selected then LAG and then click go, the following screen came.

    I clicked on the button marked radio in the rectangle above, to allow VLAN 2 send labeled on group GAL 1 ethernet frames.

    And so on for the other VLANS I migth.

    My methodology or train of thought, was to allow of vlan1 to just send frames unmarked on the Group LAG 1, but any other VLAN later is marked on the Group 1 GAL.

    You should be able to do exactly the same thing on the other switch 200 series.

    in my example, as I then simply take some CAT6 or CAT5e cables and connect GE1 on a 200 series switch to other Ge1 200 series

    I connect then GE2 on a 200 series switch to other Ge2 200 series.

    Now I have the aggregation of links and balancing working between switches.

    Hope this helps

    Best regards, Dave

  • Storage vmotion with several virtual disks

    I have a couple of virtual machines with virtual disks on them.  I have a need to pass one of the virtual disks in a different lun while leaving others in the current location.  I would like to move this disk without impact on our users, which means that I like to keep the operational machine.  I did several Vmotions storage with great success.  I want to know is if there is a way to use Storage Vmotion and tell him to move only a single virtual disk on a multi VM disk.

    Does anyone know if there is a way to do this?

    Thank you!

    Download and install the RCLI.

    Run the sVMotion intereactive mode.  This will guide you through the process with the ability to move the individual disks.

    command line must start with

    SVMotion - interactive

    If you feel this or any other answer was 'useful' or 'proper' Please consider awarding points

Maybe you are looking for