Counter in three States

Hello

I use a meter on OR-6351 namely PFI13 which generates a certain frequency. It works fine as I am able to start and stop the job.

My question is how to get this channel in high impedance state (high impedance). I try to do it by calling the function DAQmxTristateOutputTerm ("Dev1\ctr1"), but it returns me an error code:-89129 and 'Terminal for the device is invalid' as respective error message.

No idea why I can't perform this function?

Concerning

RB

I couldn't find much information about this together on our internal database.

However, I found a property that you define a digital line in three States. First question would be:

* What happens if you change your code this way:

/* For setting aPFIPortName in High impedance state */
aPFIPortName = "Dev1/port2/line5";   // PFI13 and P2.5 are the same line
DAQmxTristateOutputTerm(aPFIPortName);

as the tristate property is only for digital lines, turning the port name of the line might help.

* The second idea would be to commit a fake digital task for the digital tristate property to true. The syntax is the following:

DAQmxSetChanAttribute (taskHandle, "Dev1/port2/line5", DAQmx_DO_Tristate, 1);

I hope it's useful for you.

Best regards

Tags: NI Software

Similar Questions

  • FPGA - count inside a statement box

    Hello, LV users - type of intermediary with the LV, fairly new to FPGA.  I use LV2010 with the FPGA with a PXI-7852R RIO module.  I have my working for all practical purposes, with the exception of a decision point FPGA application that is controlled by a simple integer (what-I-thought-should be).  This integer that I tried first with registers at offset, then tried a knot of comments I've seen that had been used in the FPGA Debug.lvlib in 2008.  STILL does not work!  What happens in my code is as follows: whenever I detect the negative in my modulating wave, a Boolean value is True and penetrates in a case where it is appropriate to update my account by 1.  Rather than be updated by one, it is updated the order of 10,000 or more, the same number each time + / a.  Not sure where that number comes from.  Count a tick maybe?  It's a larger number if I slow down my modulating wave.  No idea why this is happening?  Even better, any ideas how to do a 'simple' metering works as expected?  Thanks much for any help.

    Out of curiosity, when the SaddlePtCount is true, only it prevents you from returning the 0.08 Hz, 0.0159 case? If you are not prevented from returning the case then your counter increment will continue to increase while your modulated signal is in the stubborn interval +-0.0003055. To check this possibility, you might reduce the scope delimited to say +-0.0001 to see if this reduces the number. Depending on the whether it works, everything you have need to do to stop the counter would be to have a "Triggered" local variable that is set to true the first time that the SaddlePt Boolean value is true. Then, if you wrap the feedback node increment in a nest additional cases, you could check the status of "Triggered" and if it wasn't it true value and leave the real case in the case empty structure. Therefore, the first time the County will be updated at each time consecutive that the signal is between stubborn in a given cycle, it will not change the County. The only other change would be to set the variable false "Triggered" when the SaddlePt is set to false.

    Hope this helps,

    Blayne Kettlewell

  • the Manager passwor used always ask if I wanted a password remembered, count about three days, it is most requested.

    I use the password manager. Firefox used to ask if I wanted a saved password. I have some passwords saved in the Manager, but he adds no news because it is more requested

    This has happened

    Each time Firefox opened

    == I've updated firefox

    Make sure that you are not running Firefox mode of private - browsing using Firefox without saving history .
    In private browsing mode that some menu items are disabled (in gray) and some features like the visited links and others are disabled and does not.
    You're in private browsing mode, if you see "tools > stop private browsing."
    See Private Browsing - use Firefox without saving history and http://kb.mozillazine.org/Issues_related_to_Private_Browsing
    .....
    You enter private browsing mode, if you select: Tools > Options > privacy > History: Firefox will be: "don't forget the story ever.
    To view all the history settings, choose: Tools > Options > privacy, choose the setting Firefox will: use the custom settings for the story of
    ---
    http://KB.mozillazine.org/User_name_and_password_not_remembered
    http://KB.mozillazine.org/Password_Manager

  • In the state machine loop counter

    Hi all

    I have a state machine, and one State in particular is very busy.  I want to State in a loop several times.  I thought about that, but I don't like them.  Let me know if you have a better idea.

    1 Add a registry to offset as a counter for the State.  The State will keep looping to himself, while decrementing the counter.  If the counter is reset, it will go to the next State.  If this isn't the case, it will keep the loop.  I don't like this, because I'll have to add a register to offset.  If I have a little more State requiring a different number of iteration, I'll have to add a counter for that State.  My main VI will be too shift registers.

    2. Add a loop around the code in my case for iteration.  I do not, because too many wires will be going in and out of the loop.  I don't want to do cluster either.

    Yik

    jyang72211 wrote:

    Node of a feedback by counter I need?

    Yik

    With precision.  See this example, each State 5 times before moving earrings.  Beats having 5 shift registers and all of these threads passing through other cases.

  • Module NI 9403 terminal State after the beginning of task

    Hi all

    We have some problems with a relay connected to the NI 9403 module card. There are probably a few Chin-ups correct definition outputs during the initialization of the 9403 (high logic out the relay).

    After feeding the 9403, no relay are activated, which is good. If the default value of the input terminal has no consequences.

    However, directly after the Start the task defining the outputs as 9403 (without writing again to real data), all relays are activated. This behavior is independent of the 'InvertLines' property and thus independent of the default logic level.

    My question: what happens with the terminal type (and the input impedance) during the market and directly after starting the task to DO? Does it change to a situation of three States? And he leaves the tri - state after writing the first data word?

    Can we resolve this problem by adding 4 k 7 pullup to the terminals?

    Thanks for the help!

    Martin

    Hello Martin,

    The best way to solve this problem is to use a pull-up resistance. Then, you can start the task unit and lines appear at the bottom. The lines have a nominal input of 50kOhm impedance. And not the 9403 does not work in a sort state.

    I hope that the resistance will solve your problem! I will close this topic at the moment, but if you find any problems or have any other questions, please keep posting on this subject.

    Best regards

    Jarmo Levo

    Technical sales engineer

    National Instruments

  • State ban of the NI PCIe-6535 b

    Hello

    I make sure that my PCIe-6535 b never down all active lines at the same time, not even in the transient state or power up/down. This means hardware failure that this control panel.

    Is there a setting I can put this advice to make sure that this will be the case?

    Is there a "prohibited" State that I can configure?

    Dear Pawel

    6535 b, behavior at the start of each line is software-configurable, can be set to three States, 0V, under 2, 5V or 3, 3V. For normal operation, please make sure that the lines are in the correct state of the software. The best way in my opinion is to build an API that always performs a check of the other lines before defining an active line, then use the card only through the API. (If there are other users, you can lock to prevent overrriding audits)

    If the safty software is not applicable in your case (for example, you want to use maximum speeds possible, so there is no time for the controls, or do you need a more secure evem solution) I sugest an e minor addition.

    Kind regards:

  • Details FDMEE not get Stat accounts

    Hi people,

    We created two or three Stat entries in the EBS using a paper system and displayed in the EBS. The values for the Stat is already in the GL_BALANCES table. I created a rule in FDMEE to fetch it Stat amounts to FDMEE of this great book where we posted in EBS.

    When creating the rule, we mentioned below the filters.

    But we are not able to recover data from the EBS by using the rule that it not showing any available documents. Please advise if I am doing something wrong here.

    Concerning

    Hello

    I suggest that take you a look at this document of support given charges that extract statistical balances are not extract data when it exists in the Source GL EBS system (Doc ID 1535184.1)

    You may need to set measures in EBS.

    Concerning

  • State multi objects - how to create a State asset/down AND a visited State Captivate 9

    Hello

    I hope someone might be able to help me understand how I am best at what a "assets/down" State and a "visited" .

    I have a screen with a number of buttons - when the learner clicks on a button, they appear different information (easily click reveal sort of interaction) can I do now with the functionality of the State multi 9 Captivate object.

    But can I use "States" to show that they have visited a button.

    The scenario is as follows:


    Screen has 10 buttons.

    By example, Normal (not yet visited) - button is blue.

    Active/low (learner has selected the button)-button is purple.

    Visited - button is green.

    Thank you.

    Lisa

    Sorry, but Lisa doesn't quite ask on built-in States (Normal, Rollover, Down)! Read each question carefully, please.

    She questioned an integrated State and a State of 'Clicked', which is NOT at all.

    @Lisa the easiest way is to States. I use above all form buttons, because they are much more flexible than the old types of buttons. You see in this Panel of State of the object, I've changed the text on them and rolling to the bottom of the State, which is impossible for the transparent buttons and text and for text image buttons must be in the image, which means that whenever you want to change the text, you must re-create the three images. Not very friendly, because it must still occur in another program.

    You see that on top of the InBuilt three States I created a custom state "Clicked". Do not confuse this Panel: the button has the same size as in the integrated States, but the thumbnails have a fixed size, where the last State of the scene shows that three States integrated.

    If you want the State Down to be the same as the clicked State, you can do it as well, but I wanted to show that it's a different State. With this configuration, you can have the Clicked State, replacing the Normal State (attention: the flyover States and down will remain the same) after clicking on the button with this workflow:

    • Create a tip or shared action standard (in this article, I used shared actions: 1 share = 5 buttons toggle - Captivate blog )
    • Add the command "change the State of MyShapeButton, Clicked
    • Put the command you want to be executed by this button (like the jump to slide X)

    If you navigate away from this slide, the "Clicked" State is only kept in 9.0.1.320 - not in the previous version - if you check the option "Maintain state on the overview of the slide" which you will see in the upper part of the properties of the button panel.

    I would like to know if that's what you're looking for? If you want to have the rollover state change, you will need two buttons and will have to replace the first box of the other which shows all States in a version Clicked.

  • How to create a State "?

    I couldn't find a clear direction on how to create a State visited for a button.  Can someone give me please with the steps?

    Thank you!

    Captivate buttons have only three States by default. Normal / rollover / down.

    If you add a custom object called visited State supplement, it won't automatically appear if the button has already been clicked.

    You manipulate the State of the button via shares advanced by using the State of change to action.

  • Accuracy of counties line in the MySQL Table

    I was just looking at the counts of row of the table for some of my MySQL tables listed in HQ... some of these tables should only increase in number of lines (never delete us rows), but table varies greatly as to how many lines is in the table.

    So I have two questions...
    (1) these figures are absolutely not accurate... his watch a table which always increases in length as having 100 lines, then 75 and 90 and 88, etc..  IT should show 100, 101, 104, 110.

    (2) I know that the MySQL "SELECT COUNT (*) FROM tablename" statement is VERY slow on my servers.  HQ runs this command on my database?  If so, I need to disable this "feature" because he's going to kill my database.  The COUNT command on a table over 1 million lines takes an incredible amount of resources on my MySQL server... and we try to avoid to execute commands to COUNT on these large tables...
    (a) if it executes a SELECT COUNT?
    (b) can I turn that off?

    Thank you!
    Stephen

    Hello

    It seems to me that hyperic is not a command select count(), but one
    display the State of the table. It is incorrect when you use innodb tables...

    "Some drivers of storage, such as MyISAM tables, store the exact number. For others
    engine storage, such as InnoDB, this value is an approximation and may
    changing the actual value by as much as 40-50%. In this case, use
    SELECT COUNT (*) to get an accurate count. »

    The advantage of this is that it is not processor intensive.

    Rgds

    Simon.
    >
    > I was just looking at the counts of row of the table for some of my MySQL tables
    > listed in HQ... some of these tables should only be more and more
    > lines (never delete us lines), but the picture varies greatly as to how much
    > rows are in the table.
    >
    > So I have two questions...
    > 1) these numbers are absolutely not accurate... its a table showing that
    > increasing in length as having 100 lines, then 75, then 90, then 88,.
    > etc.  IT should show 100, 101, 104, 110.
    >
    (> 2) I know that the MySQL "SELECT COUNT (*) FROM tablename" statement is
    > VERY slow on my servers.  HQ runs this command on my database?  If
    > then I have to disable this "feature" because he's going to kill my database.  The
    > Order of COUNTY on a table over 1 million lines takes an incredible amount
    > resources on my MySQL server... and we try to avoid running COUNT
    > orders on these large tables...
    (> a) if he executes a SELECT COUNT?
    (> b) can I turn that off?
    >
    > Thank you!
    > Stephen
    >
    > --
    > This message has been scanned for viruses and
    > dangerous by MailScanner and is content
    > supposed to be clean.

  • using Query... three conditions

    Hi all

    I have a table with the following data

    EmpNo emptype empstatus
    best Active 1
    2 good fall
    3 best assets
    1 good cancel
    4 good left
    5

    This table consists of three columns
    EmpType has two distinct values - well, better
    Empstatus consists of a single State - Active for best type
    Empstatus is to cancel the State three - Drop, left for the right type.
    A PMC can get either one of these three State in good type

    The highest level of the type is best followed by good

    A PMC can get the types

    I need to get the highest level of the status achieved so far for an EMP
    For example, emp 1 has got two types of best and good
    Then exit to emp 1 will be

    EmpNo higheststatus
    1 active

    If the PGE did not have everything, it should display NULL.

    The output for the above data should be
    EmpNo higheststatus
    1 active
    2 drop
    3 assets
    4 left
    5

    Thank you very much for your help!

    I don't want to use ~ in the application mainly
    The min and max are so confused
    It has nothing to do with alphabetical order...

    It has everything to do with alphabetical order. "~" is just the character earlier in the sort order of the ascii characters - this is AFTER A... Z and a... z.

    The min and max are so confused

    As NVL, you should learn what they do. I used MAX in the solution below. You MUST use the Min or Max to search for the correct line when you have multiple lines to an empno.

    I wanted to use something like case / if else or simple method

    Your so-called 'easy' with CASE method is below. It took a lot more time to develop.

    I have no time now... I need to do today...

    Good luck!!! :-)

    create table emp
        (empno varchar2(5), emptype varchar2(7), empstatus varchar2(9) );
    Insert into emp values('1', 'best', 'Active');
    Insert into emp values('2', 'good', 'drop');
    Insert into emp values('3', 'best', 'Active');
    Insert into emp values('1', 'good', 'cancel');
    Insert into emp values('4', 'good', 'left');
    Insert into emp values('5',  null,   null);
    set feedback on
    select * from emp order by empno,emptype;
    
    EMPNO EMPTYPE EMPSTATUS
    ----- ------- ---------
    1     best    Active
    1     good    cancel
    2     good    drop
    3     best    Active
    4     good    left
    
    Column t_high format a6
    
    Select empno,
           Case when emptype='best'  then '3'
                when emptype='good'  then '2'
                when emptype is null then '0'
                else                      '1'
           End as t_high,
           emptype
           from emp
    order by empno;
    
    EMPNO T_HIGH EMPTYPE
    ----- ------ -------
    1     3      best
    1     2      good
    2     2      good
    3     3      best
    4     2      good
    5     0
    
    6 rows selected.
    
    column t_max format a6
    Select empno,
           Max(Case when emptype='best'  then '3'
                    when emptype='good'  then '2'
                    when emptype is null then '0'
                    else                      '1'
               End)   as t_max
      from emp
      group by empno
    order by empno;
    
    EMPNO T_MAX
    ----- ------
    1     3
    2     2
    3     3
    4     2
    5     0
    
    5 rows selected.
    
    select empno, empstatus
     from emp
     where ( empno,
             Case when emptype='best'  then '3'
                  when emptype='good'  then '2'
                  when emptype is null then '0'
                  else                      '1'
             End )
        IN (Select empno,
             Max(Case when emptype='best'  then '3'
                      when emptype='good'  then '2'
                      when emptype is null then '0'
                      else                      '1'
                 End )
             from emp
             group by empno )
     order by empno;
    
    EMPNO EMPSTATUS
    ----- ---------
    1     Active
    2     drop
    3     Active
    4     left
    5
    
    5 rows selected.
    
  • Transparency of connections is inherited on the States?

    Hello

    I'm working on this menu bar, which has three States. The first State is black characters on a white background, which I want to have transparant in the final .gif. The second and third State are white type on a colored background, what I want is, in a .gif file.

    I export all three States (which consist of several slices as well) at the same time, really handy. So far so good.

    But, when I select the color white in a slice in the first State to make it transparent in my .gif, white in this particular slice my other States (2 and 3) switches to transparent as well... And this isn't what I want. Since there are three different States, I need to be able to select the transparency by the State. (The results are about 18 even when different .gif files)

    Anyone experienced this? With the help of fireworks CS5.0.

    As I export all at the same time, it's a pain to export the first State separately again, as you will understand.

    Maybe someone knows a workaround solution, or is it just something I have to live with...

    Thanks in advance for your answers,

    Anke

    Whatever it is covered with a single slice, like a button, inherits the same export parameters. If you choose white as transparent, white will be the transparent color to all States. What is the background color of the page on which you will place the navigation bar?

  • I can't load a ModuleLoader in the current state.

    I have an application with three States. In one of the States is a ModuleLoader.

    If I put the url in the ModuleLoader fine

    < mx:ModuleLoader

    x=" 0 "y =" 0 "id =" w orkPane Ml "width =" 100% "height =" "url =" modules/MyModule.swf " " / > 100% "

    But if I try and change it, nothing happens. It's only a problem when sound by using a State not if I do this in an application of the State alone.

    currentState =

    'LoggedIn' ;

    w

    orkPane Ml . un loadModule();

    w

    orkPane Ml .url = ' modules / ' + event.moduleNm;

    w

    orkPane Ml . loadModule();

    Is there anything I should do

    currentState.ModuleLoader...

    Or must be in a State initialization function

    Hello

    Is this before you entered the State?, as components in a State are only created when you view this State, flex 3, you can set creationPolicy = "all" in the statement addchild to a State to instantiate the component so its accessible.

    in Flex 4, you set itemCreationPolicy = "immediate" on the property of the component

    David.

  • States and vertical scroll

    I have an assistant who has three pages and menu which uses three States, one State for each page.  Each page is long enough to require a vertical scroll bar.  When I scroll down on a single page and click on the 'next' button to see the next page (and therefore change state), the next page was scrolled down.  I would like for each page to start at the top, i.e. for each state change, to reset the position of the page at the beginning (top).  Is this possible?  Thank you.

    -los

    of course, just change all your 3 States to have this attribute

    enterState = "{verticalScrollPosition = 0}" / > "

    If you think this message responds to your question or assistance, please mark respectively

  • Frequency divider, the setting input PFI support

    Hello

    I'm sure it's a very simple question, but I can't seem to find the answer myself.  I would like to bring a signal from a cutter to 15 Hz and split the signal into 2 or 4 and send this signal to my meters.  I have a NI 6216 and I thought I'd put in the signal in CTR 1 CBC (PFI 0) and out CTR 1 (PFI 5) and use a pulse generation counter Subvi.  I can't even get to the point test the software because I don't understand well enough of my hardware.  When I wire my chopper in the 6216 signal signal is pulled to the bottom of the unit.  The manual for the 6216 mentions something about programmable start States, but says to use the DAQmx my ports are currently set to three States.  Change to high or low?  Is it still my problem?

    I thank very you much for your time.

    Hi colleenalana,

    The attached code must be if all goes well in the sense of what you need.  You must use the implicit synchronization to tell the counter to generate impulses permanently.  Otherwise the meter will generate just a single pulse.

    Best regards

Maybe you are looking for

  • Windows 7 RTM + Windows Live

    Ultimacy Windows 7 RTM 6.1.7600.16385 x 86 + windows live is good until the help live movie maker a serious error error Log:Signature of the problem:Problem event name: APPCRASHApplication name: MovieMaker.ExeApplication version: 14.0.8091.730Applica

  • Problems with OS 2

    I had a list of tile with custom background images with skin. I've also just updated Air api 1.1.1. Now, images doesn't show correctly and app download data from the server correctly. Any help? -Edit The images appear after I click on them... The res

  • Cannot view videos from SD card on Windows 8

    I got the new laptop with Windows 8 OS.  My Sony DC-SX45 camera has an SD memory card with the files it contains. I tried to load the files on my computer to edit and publish of MovieMaker.  The files were showing the file system "MPEG" instead of no

  • Problems of Smartphones blackBerry 8330 with Desktop Manager backup

    I have problems to backup my BB. It starts back, arrives at a certain time (sometimes the database "Quick Contacts" and other times of the 'Options of TLS' database) and then comes back with the error message: "cannot save the databases. I downloaded

  • Memory Cache of clean blackBerry Smartphones

    Hi Forum, My question is, when you go to 'OPTIONS' - 'Security Options' - then 'Advanced Security Options"you will see what is called"GARBAGE COLLECTION ". Under garbage collection there are things under "Registered cleaners" who say that if you want