To a port mentioned in MAX output frequency

Hello

I'm trying to AC output. 100 kHz on a port PIF using NI 6351. I used the example of Bank OR example and it works fine with the following code.

       DAQmxErrChk (DAQmxCreateTask("",&gTaskHandle));
        DAQmxErrChk (DAQmxCreateCOPulseChanFreq(gTaskHandle, aChannel, aVirtualAddress, DAQmx_Val_Hz, aIdle, 0.0, aFreq, aDuty));
        DAQmxErrChk (DAQmxCfgImplicitTiming(gTaskHandle, DAQmx_Val_ContSamps, 1000));

In the above example, I am creating a COPulseChannel and consolidate represents its physical address (for example Dev1/ctr2) and aVirtualAddress is that I can attribute to this physical address for later use.

My question is:

How can I create a virtual channel in MAX and use its name here with a name to say "myFrequencyChannel" and then write a function for the output channel frequency?

Motivation:

This has been possible until now for all channels as I/AO/DI/DO, where I set all channels with virtual names in MAX and then everything just accomplished tasks by sending their names (only) to my duties. Therefore the user must remember always physical channel but just virtual channel names.

Thanks in advance.

Concerning

RB

Hello

That should be feasible through the channel attributes. You can read or crush your channel (such as real estate in LabVIEW) attributes. Two of these attributes are high and low times:

DAQmxSetChanAttribute (gTaskHandle, "", DAQmx_CO_Pulse_HighTime, 0.1);  //high time = 100ms
DAQmxSetChanAttribute (gTaskHandle, "", DAQmx_CO_Pulse_LowTime, 0.2);   //low time = 200ms

In addition, I join a screenshot of the Service Commission:

Was what you were trying to get?

Best regards

Tags: NI Software

Similar Questions

  • 6211 DAQ high output frequency

    HI guys.

    Ive had my hands on hardware DAQ USB 6211. Im trying to generate a signal of high output frequency of one of the 2 counters. The frequency is of the order of 5 to 20 kHz. Can someone tell me if this is possible with this device USB 6211?. Ive been searching but cant seem to find the answers. Are the counters on this device just to read the entries of high frequency or can also ouput. Any help would be appreciated.

    Thanks for your reply . Ive since found code that does exactly what I want. This isn't in the examples of labview so can someone find it useful. See the attached VI.

  • Output frequency

    I created scripts as follows
    CREATE TABLE STUDENTS(
      STD_ID Number,
      STD_NAME Varchar2(25 ) CONSTRAINT SYS_C002716 NOT NULL,
      PHONE_NUMBER Char(20 ),
      FATHER_ADDRESS Varchar2(100 ),
      BASIC_GRADE Number(38,0),
      REGISTER_DATE Date,
      COMMENT_ON Char(200 ),
      STD_ADDRESS Varchar2(100 ),
      STD_RESPONSIBLE Varchar2(100 ),
      RESPONSIBLE_RELATION Varchar2(50 ),
      MOTHER_NAME Varchar2(30 ),
      STUDENT_TYPE Varchar2(10 ),
      YEAR Char(50 ),
      STD_NUMBER Number
    )
    /
    
    -- Add keys for table STUDENTS
    
    ALTER TABLE STUDENTS ADD CONSTRAINT SYS_C002717 PRIMARY KEY (STD_ID)
    /
    
    -- Table CLASSES
    
    CREATE TABLE CLASSES(
      CLASS_NAME Char(40 ),
      CLSS_NUM Number(38,0) CONSTRAINT SYS_C009724 NOT NULL,
      LEV_ID Number(38,0)
    )
    /
    
    -- Add keys for table CLASSES
    
    ALTER TABLE CLASSES ADD CONSTRAINT KEY3 PRIMARY KEY (CLSS_NUM)
    /
    -- Table STUDENT_AND_CLASSES
    
    CREATE TABLE STUDENT_AND_CLASSES(
      STD_ID Number NOT NULL,
      CLSS_NUM Number(38,0) NOT NULL
    )
    /
    
    -- Add keys for table STUDENT_AND_CLASSES
    
    ALTER TABLE STUDENT_AND_CLASSES ADD CONSTRAINT Key4 PRIMARY KEY (STD_ID,CLSS_NUM)
    /
    insert into students(std_id,std_name) values (1,'abk');
     insert into students(std_id,std_name) values (63,'saad');
     insert into classes(class_num,class_name)  values (3,'abk');
     insert into classes(class_num,class_name)  values (2,'osm');
     insert into classes(class_num,class_name)  values (1,'amr');
    
    insert into student_and_classes values(1,1)
     
    insert into student_and_classes values(2,63)
    I wrote a query: -.
    SELECT STD_NAME ,CLASS_NAME FROM STUDENTS S , CLASSES C
     WHERE
      STD_ID IN 
     (SELECT STD_ID FROM STUDENT_AND_CLASSES)
     AND
     CLSS_NUM IN
     (SELECT CLSS_NUM FROM STUDENT_AND_CLASSES)
    STD_NAME                  CLASS_NAME
    ------------------------- ----------
    abk                                amr
    saad                              amr
    abk                               OSM 
    saad                              OSM 
    I expect that the query gives me student_name
    in the class name and a not to expect to get the output frequency

    Hello

    Thanks for posting the CREATE TABLE and INSERT. Be sure to only test instructions before committing. Do you really want to use class_num in some places and clss_num (without the letter ' a') in other places?
    In addition, you must explicitly name the columns in INSERT statements. For example:

    INSERT INTO student_and_classes (class_num, std_id)
                              VALUES  (2,         63);
    

    Don't forget to post the exact results you want from the sample data you give and explain how you get these results from these data.

    The query you posted checks corresponding to the std_id of the students table a few std_id in the student_and_classes table, and the class_num of classes corresponds to some class_num from the categories table, but these student_id and the don'thave to class_num to be on the same line. I susepct you want something like this:

    SELECT     s.std_name
    ,     c.class_name
    FROM     students          s
    JOIN     student_and_classes     sc  ON     sc.std_id     = s.std_id
    JOIN     classes               c   ON     sc.class_num     = c.class_num
    ;
    
  • Wide output frequency input

    I'm trying to identify the frequency of the sine wave signal and convert it in full. Is it easier to measure in the time domain or frequency domain? According to what is easier, should what modules and functions I use? Another engineer and I was able to go around and around to try different approaches, but just cannot find a working solution. Any help you can give is appreciated.

    Bill

    Bill,

    I see two ways:

    For higher frequency sine waves - use module of the FFT. Then the module of statistical values in mode 'Position Max' retrieves the frequency of the amplitude higher in the range.

    For low-frequency sine waves, especially those where the full waveform is not in a single block, so you want to try the Pulse analysis Module. To do this, you must change the sine wave to a pulse, using the trigger module. This assumes a pure sinusoidal signal and it becomes a trigger pulse when the value rises above 0. In the simulation, this works well. I don't know how it will work with real data.

    I have attached an example illustrating the techniques and results for each frequency of waveform using FFT and analysis Pulse.

  • Can not read the serial port VISA without MAX

    Hello

    I'm trying to build an application that will interface with a Black Cat Systems GM-10 radiation detector.

    The app works fine on my computer (with the full development system OR) but when I install it on another computer, without LabView, the application cannot see the serial port!

    I checked that the driver is installed correctl and Windows can see the device, but when I run my program, he can't seem to access the serial ports.

    I then tried to install MAX on the second computer, how the application worked well, but as I install this app in other places, I don't really have the ability to install MAX everywhere (software must be autonomous).

    Any help would be appreciated!

    Z

    I would have joined the project file, but the forums seem to not want to allow me to download that big of a file.

    What version of LabVIEW are you using? With 8.x, the installer is very able to install the runtime of NI-VISA and MAX. If you are using an older version of LabVIEW, there is an option to include the series VISA support. Install just MAX will do nothing to make the available ports. This is the VISA that does this.

  • PXI-6120 digital output frequency

    Hello

    before that I have to post my question some technical information:

    LabVIEW: 2011.

    IO digital 8 PXI-6120.

    I read the user manual and search the Forum and there is no reference to the frequency of digital output (only for a meter).

    My question is what is the maximum frequency that I can generate outputs digital?

    The best I could do is 50 kHz using the example.

    Thank you

    Sokal


  • Can query serial port with NI MAX, but does not work in Labview

    I'm controlling a 488 Sapphire consistent with labview. It is connected by a series of converter USB in the computer. I can communicate with a device using NI MAX, but when I try to run the vi (attached), he works for multiple queries, but evetually returns a null character, after which I can no longer communicate with the port. If I then go into the NI MAX interface, whenever I try to read it give "VISA: (Hex 0xBFFF0015) timeout expired before the operation ended" error message. There are also several queriess of the manual of the instrument which do not seem to work at all (with or without MAX) and always returns a null character. Any help is appreciated. I'm definitely a novice with the communication of the device. Thank you.

    Usually a problem with the stop character.

    And you send-r and no CarriageReturn.

  • configure separate lines on a DIO port as input or output

    IM using a NOR-DAQmx map (6251) in LabWindows/CVI environment.

    My problem is with the EEPROM reading, but both his (output of 6251) clock and data lines (entrance at 6251) are on the same physical channel (Port1 DIO)

    How to use CVI to configure individual port lines, so that a single line (say Port1.6) is a release and another (say Port1.7) line is an entry.    And therefore not have to keep starting and collapses of the NIDaq read or write operations across the port only once, but just let each line separate running as a read or write until the operation is complete.

    Thank you

    Hi Rob,

    The map of PCI-6251, you can configure different lines on the same port for the inputs and outputs with CVI.  I've attached an example that does what you are asking here: it uses port1, line6 port1, line7 as input and output.

    Also, for others reading this post, more information on this topic are in this post on the forum as well.

    Best regards
    Erik

  • Digital output frequency seems to be twice the frequency generated by the basic function generator

    Hi Labview forum,

    I wrote a program (attached) Labview to generate 3 PWM, square wave, signals that has the same frequency and phase delay right (so that when a signal is off, the other signal is lit. Then the next signal). Everything seems to work fine except that the frequency of the PWM signals generated seems twice as the frequency given to the basic function generator. Anyone have any idea why this is happening? Anyhelp would be greatly appreciated.

    Thank you!

    Totally agree with the advice of all GerdW than the hardware timing of your hardware DAQ will be much more reliable.  That said, part of what you are probably hitting is a little quirk of the primitive delay msec.   Requests for 1 msec have long been particularly little reliable (although they * seem * to have improved in recent years, probably due to the better OS support in Win 7 or something).

    I did minimal mods to your code with comments from you switch to a timed loop.  My quick test showed he is good enough to hit the 1 length of loop of target msec.

    -Kevin P

  • How to synchronize two ports data series at different frequencies of sampling?

    I have a .vi I'm reading two different sensors that operate at different sampling rates high.  I am able to read these two, however, there seems to be some problems of synchronization/strange offset with the devices.  The first device is a device running at 5 Hz GPS.  This is convenient because the time GPS is included in the data that I read.  The other device is a sensor operating at 6 Hz.  Ideally, I am recording the data of these two devices in the same file.  An example is attached.  It seems he collects GPS data, although it seems to write at much lower rates.  Strangely, as it is written to the file, it will slowly store 'blocks' of data in order to a much lower rate.  It seems that a lot of the GET of a buffer, and then it jumps ahead by about 5 seconds (see lines 214-220 of the attached file).  Meanwhile, the data from the sensor 6 Hz are get recorded normally.  I'm puzzled.  Would it not be better to connect these as separate sets of data in separate files?  Creating two executions of read/write "parallel" within the same .vi?

    Any help or examples, would be much appreciated!


  • is the hdmi port, an input or output set

    I use net flex, I was woundering if I could plug my rj48 cable computer cable and hdmi to my tv?

    HDMI is OUT.

    Vista HOWTO

    Windows 7 howto

  • Calculation of the frequency of real output of a PXI-5402

    I have a card PXI-5402, sitting in a high chassis. I'm only interested in the sine wave output at frequencies up to about 10 kHz. I know that it is possible to request an output frequency and then interrogate the acutal output frequency but I prefer to be able to calculate before hand. All I can find in the literature is a figure of 0.355uHz for the frequency resolution.

    Is there a better description of the frequency resolution? If this is not the case, the resolution is exactly 0.355uHz or is it an approximation (to 3 significant digits)?

    This webcast is a great way to learn the process including the NI 5402 5406 OR exploit to generate periodic duty: http://www.ni.com/webcast/75/en/

    The 0.355uHz value is a theoretical value of the frequency rate achievable depending on the size of the accumulator Phase and clock frequency. It's the closest thing I can find on ni.com that you can use to calculate the value: http://zone.ni.com/reference/en-XX/help/370524R-01/siggenhelp/ni_5401_11_31_frequency_resolution_and...

    According to me, Fc for the NI 5402/5406 must be 100M and the size of the accumulator is 48 bits. Frequency resolution so = Fc / 2N = (100 × 10 ^ 6) / 2 ^ 48 = 3.55271368e - 7

    Keep in mind that the device has a VCXO frequency accuracy specification of + / 25ppm, if you have no PLL block him to a better source.

  • PXI-6133 Pulse frequency output and input with DAQmx

    I am trying to set a pulse meter output frequency task and read this signal with a frequency counter input task input pulses.  I use a 2 PXI-6133, each connected to a BNC-2090 case has.  I want to output a square of a certain frequency with the task frequency meter pulse output and then read the frequency of this signal using a task of cost input frequency.  I don't know how to property set up these tasks, or how to define which device to use for each heap.  I don't know what terminals on the BNC-2090 is the counter of entry/sortient channels correspond to them because that is not displayed in the documentation of the PXI-6133 or documentation of BNC-2090.

    Please see the attached VI for my attempt to put this in place.  Currently, I get two errors:

    (1) error-200452 took place at the property Node DAQmx channel meter Test - referred to as property is not supported by the device or is not applicable to the task.

    2. the error-89136 at DAQmx Start Task - specified route cannot be met because the hardware does not support.

    If I remove two channels of property DAQmx where I try to put the terminals for the counters, while the program is running, but then I know not what terminals on the BNC-2090 meters are connected to!  This causes the DAQmx read for the cost in the tasks of frequency to timeout because it does not detect a signal.

    I would really appreciate the help to properly configure these tasks and determine what terminals on the BNC-2090 case has the task of counter will work on.

    I see a few problems in the code originally:

    1. For your CI task, you type is defined as a counter entry > frequency.  But on the node property of DAQmx channel for this task, you modify the CI. Property of PulseWidth.Term.  It should be CI. Freq.Term. set the entry regardless of the PFI line you do not want the input signal on.  Tip: you don't have to type the name of the device in at all.  Enter "PFI0", it's the same as "DevN/PFI0" since the unit has already been specified in the DAQmx Virtual Channel Create function.  The name of the device, leaving aside will make your code more flexible where you decide later to change the name of the device.

    2. Maps of the S series, such as the 6133, do not have the same flexibility to change the output terminals of tasks of meter you might find with M or X series device.  Page 83 of the S series manual watch what signals can be extracted to PFI lines - Ctr0Out is not one of these.  Instead, Ctr0 out is, by default, pin 2.  Cabling to a BNC-2090 6133 is certainly difficult to understand out (probably because the 2090 was designed to work with the materials of the E and M series), but if you compare the pinout of a PXI-6255 0 with the 6133 pinout connector, you will notice that they are essentially a match 1-1.  Pin 2 is PFI12 on the 6255, so I assume the same for the 6133.  All this to say, Ctr0Out always appears on the pin 2/PFI12 for the 6133 and you therefore cannot change the output terminal that your code is trying to do, having for result error-89136.  Remove this node from the property altogether and the error should disappear.

  • Comm port not detected by VISA / MAX after the device power cycle connected

    I have a device communicating via USB virtual comm port. The device and labview program both work very well, most of the time. The program is designed for the automatic connection for the connected equipment. It works perfectly when I unplug and reconnect the USB cable.

    However, if the unit power cycled as the USB cable is connected and the program/vi is running of things go wrong. The device enters a phase of boot loader for a few seconds to the power upward, if labview tries to query the port comm during this phase the comm port is corrupted in some way and is no longer recognized by VISA / NI MAX. However, other programs, hyperterminal, etc device manager can see and communicate with the port when the boot loader is complete. For Labview / NI MAX to see the port I have to physically disconnect the USB cable. The program does not need to be restarted in order to detect the port comm again and, infact, labview is restarted or my compiled program does not solve the problem. Physically disconnect the USB port allows visa / MAX OR see the port is connected.

    It seems to me that there is a problem with VISA where somehow if a device is not correctly identified by VISA during the first attempt it just does not take into account the port until a physical intervention. Is there a way to force VISA to reassess completely all connected comm ports?

    Hello MJanus,

    As far as I know, most of the virtual com ports are not fully supported by VISA so some quirks in its operation are to be expected: http://digital.ni.com/public.nsf/allkb/6E1922B526572CB8862571AA00544057?OpenDocument

    Officially, we do not support the use of com virtual ports, if unfortunately, the feature you have now is probably as good you'll be able to get with this configuration. I know it's not the answer you were hoping to hear and I apologize for the inconvenience, but it is not really possible visa work well with all software virtual com port due to the wide variety of products available.

    Kind regards

  • Output power of the frequency spectrum

    Hello

    I have a pretty simple question. I m using the power spectrum of FFT and PSD vi. and have trouble understand output frequencies. If I understand the first line is DC-value and delta frequency then describe the following frequencies. But when I put for example in 8 points say sampling frequency of 4 Hz = 2 seconds of data to analyze, I'll be back 4 lines of data (including 0). If the first is DC, then the 2nd should be 1 / 2 Hz 1 Hz = 3rd place and 4th place = 3 / 2 Hz, but what about the frequency of 2 Hz Nyquist, why Don t I get this one? or is there something I don't understand?

    I also tried the example of Units.vi of FFT spectrum and can understand, but I still Don t get it.

    Help, please!

    Best

    Jesper

    FFT returns to power in frequency bins. The frequency of the bins is determined by the Fs (sampling frequency) divided by N (number of points), from DC (0Hz). For your case, the table returned would be:

    Bin 0: 0-0.5 Hz

    Bin 1: 0, 5 - 1 Hz

    Tray 2: 1-1.5 Hz

    Bin 3: 1.5 - 2 Hz

    So effectively Bin 3 holds the power of 1.5 to 2 Hz (which contains your Nyquist frequency).

Maybe you are looking for

  • How can I change the outgoing mail server

    There is no account setting in the tools. How do the name of the server to change?

  • Satellite Pro R50 - B - 10 K - RAM upgrade

    Hello everyone, I just want to know if the back of the satellite Pro R50 - B - 10 K gives access to the Ram and maybe to HD without opening the machine.Thank you in advance for your answer. Thierry

  • House-sharing has stopped working on my AppleTV 4

    Apple TV 4 - A1625 rMBP (end 2013) iTunes 12.3.2.35 Home sharing my collection of videos iTunes worked and then it didn't.  It's the good Apple ID on Apple TV and the Macbook Pro.  The computer and the Apple TV are connected to the same network, and

  • Acer apps?

    I just bought a new acer & want to know if I need to keep the theses of the app? Acer docs Acer media Portal of Acer Acer remote files Identity card Live update AB Photo Acer Portal let me download Chrome? It must update & install but cannot connect

  • DVD drive no longer works Code 10 failure initialization

    My computer is less than two years.  It came with Vista.The CD/DVD multi Recorder initially worked, but has stopped working.Diagnosis say the drivers are up to date, but there is a problem with the device:HL-DT-ST DVDRAM_GSA - H60N ATA.I had not used