Cable RTSI with PCI 6034 and 6602. Test validation of LabVIEW code.

Hi all

Please could someone take a look at my code (LabVIEW 8.5) and tell me if it does what I hope it is? (!)

My goal:

To connect to analog to a PCI-6034 and data of angular encoder to a PCI-6602 tensions. I want my tension and angle data to synchronize.

My approach:

Both cards are connected with a RTSI cable and configured in MAX. One of the counters on the 6602 is set up like a clock. I think I use this clock to make sure that my angles and tensions are synchronized. I want to read in a load of data from two sources, treat it, and repeat.

The synchronization set is a little new to me - the code execution, but right now, I'm not sure if I get the sychronisation I need. Please what could someone comment if this sounds right or give me any advice for the improvement?

Thank you!

Ian

Sorry Ian,

This code was a bit thrown together then you might need to forget it. The table of construction was incorrect, and I don't quite know how it got there.

The output of the counter in the middle of your task is not doing anything. You can remove this, and as long as you had a single start task depends on the other that you already do and share all the same settings of the clock, which should start the task at the same time and keep it synchronized to readings.

On top of that my tip for better start synchronization would be to use a hardware trigger to start tasks. the start is so dependent on a hardware clock and not software.

Kind regards

Tags: NI Hardware

Similar Questions

  • configuration of RTSI with PCI-e 6259

    Hello world.

    I just got two cards in the series PCIe-6259 M and a RTSI cable to connect the two.  (Eventually, my application will require that they have somewhere to trigger/timing info.)

    I had the chassis of the PCIe cards without a problem.  I plugged the RTSI cable to connect the two 6259 s together.

    I opened MAX and almost everything seems fine: the cards are recognized, they spend a self-test, managed to calibrate, etc..

    However, I have a small Hang Up set up the cards.  In MAX, when I try to set up one of the devices to the computer/drivers know an I connected the RTSI cable (for example NOR-DAQmxDevices > Dev1 > properties > RTSI Configuration), then I see a drop-down the menu titled "Cable RTSI.  It's the only item in the menu is 'None '.

    So, my questions are:

    (a) actually do I configure my 6259 s for RTSI in this way in MAX?

    (b) If Yes, then how / what could go wrong?

    (c) or am I missing something obvious?

    Thanks a lot for the tips/tricks!


  • asynchronous IO with PCIe-6535e and DAQ - mx

    Hi people:

    I am trying to explicitly define and use either async or sync I/O using a PCIe-6535e DIO with DAQ - mx card. Nowhere in the acquisition of data-mx vi can I find the adjustment means either async or sync I/O. Does anyone know of an explicit vi reference say examples that I missed when this is discussed and or fix.

    Also, assuming that I learn how to set the ack/write to the map mode, which defines the functionality and the strobe effect of the PFI pin which act as out of my data / data in banner? I can see that things like width pulse, delay etc. can be defined, but how to define? Or do I have to declare another channel with DAQ - mx and these control me manually. I tried, without real success.

    For example, it would be really useful to do.

    PFx pin _________-----------___________

    xxxxxxxxxxxx XXXXXX (0xe7) line0:7

    For the data from the card.

    and

    xxxxxxxxxxxxx xxxxxxxxxxxx (0xCA) line0:7

    PFx pin ___________-----_______________

    For the data of the car. In this case I'd be strobe the PFx in my FPGA.

    I'm a bit confused as DAQ - mx does not seem to give me the command that I need to set the e/s mode, and I can't find any explicit

    mention as to who, or how to properly synchronize the features of the PFI pin with my data from my vi.

    Thank you.

    Andrew

    Hi Josh:

    After discussions with our technical help academic rep, he suggested I oversample data and incorporate the pulse in the data. I did a little twist on the idea and I have attached a vi test I did. This creates just what I need. It'll work. I got def like other options, but it's good enough for now. If I had a devil FPGA I could move the world, and I can't do the code kludgy as that I joined. I would be interested in def in what other solutions that you or someone else could lead to the hearing.

    Thank you.

    Andrew

  • problem of analog with PCI-6115 and BNC-2110

    Hi, I have an acquisition of data PCI-6115 and BCN-2110 connector card I want to measure continuous analog voltage. Now I can permanently measure the intensity of light laser of photodiodes through channel 1 and get the reference through the 0. Then I can get the harmonic signals by the multichannel lock - DAQmx.vi. However, I also want to simultaneously detect another analog signal in channel of gold voltage 2. The problem is: Channel 2 voltage range is approximately 0.3 mV to 6 mV which is significantly lower than the other channel 2 (0 - 10V), how could put different prescription by channel continuously and simultaneously acquire all data?

    I found that Dennis Knutson has provided the solution a year ago, which is listed below:

    In the solution, it should be arrays of strings, lines, patterns, but I do not know how to apply it to my case. Is there a suggestion or another solution?

    Thank you very much!

    You have the autoindexed exit task and is not correct. Try the code below.

  • Question related to the entrance with pci 6221 and SCC 68 analog

    I use 6221 PCI and SCC 68 analog read of voltage between the terminals of the drain and the source of a transistor. The drain is at 0 Volt and source is connected to 5 volts via a 100 k resistor. The transistor is used as a follower of the source, and therefore the output is measured at the source of the Terminal. When I measure the voltage by using oscilloscope, I see clearly the change of output as a result of change of voltage of the door. But, when I try to acquire the same by using labview, I see nothing. I tried to change the signal to the CSR, NRSE, but nothing works. Seems to be that something related to differences in impedance. Can you please advice me on this issue? Thanks in advance

    Hi rsd111,

    I understand that you measure a circuit similar to this ( http://en.wikipedia.org/wiki/Common_drain)

    I also get that you use an external power supply with GND connected to the Drain and - 5V connected to the Source with a 100 k resistor.

    You should be able to measure the tension between D and S setup a differential measurement and connection Ai0 + D and Ai0 - s, in fact you can youse Ain you prefer.

    You should be able to do the same measure also at configuration NRSE linking Ai0 AiSense at the Source and drain.

    The Board's input impedance is greater than 10GOhm, it must behave as the oscilloscope in pairing mode high-impedance DC.

    6221 specifications: http://digital.ni.com/manuals.nsf/websearch/8117DF4C5A29C95C862573020061023B

    Nice day.

  • 2.1.0.62: problem with Package.Functions and Unit Tests

    I like the new Sqldeveloper - I startet try Unit Tests as described here: link: [http://www.oracle.com/technology/obe/11gr2_db_prod/appdev/sqldev/sqldev_unit_test/sqldev_unit_test.htm#t4]

    He has worked with a test procedure. Now I'm testing my package functions, but all I get is the following:

    ---------
    Die Prozedur ausgeführt wurde following.

    Ausfuhrungsaufruf
    BEGIN
    : 1: = "PKG_MYPACK". "CREATEFUNCTION"(IN_PROGRAMMEID = >: 2,) "
    IN_AMOUNT = >: 3,.
    (IN_SWS = >: 4);
    END;

    Bind-variables verwendet
    1 WHOLE (NULL)
    INTEGER 2 IN 1
    INTEGER FROM 3 TO 10
    INTEGER 4 TO 11

    Ausfuhrungsergebnisse
    ERROR
    Ungultige conversion angefordert
    oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
    oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227)
    oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:439)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:7723)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7496)
    oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:7978)
    oracle.jdbc.driver.OracleCallableStatement.setObject(OracleCallableStatement.java:4063)
    oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:221)
    oracle.dbtools.raptor.datatypes.strategies.callablestatement.CallableBindingDatum.customBindIN(CallableBindingDatum.java:135)
    Oracle. ...
    ------

    What can I do?

    Created
    Bug 8976245 - EA1: UNIT_TEST: CONVERSION not VALID ERROR with the HELP of the INTEGER PARAMETER
    and asked the answering machine of bug to keep you informed about the situation here in the forum.

    Bad news, it is that any INTEGER type parameter for which you specify a non-null value will fail.

    Possibly useful new, is that if you create a "clone" of you the function using NUMBER as the data type, you can continue to experiment how unit tests can be useful for you.

    Answer no sorry moment. :(

    Brian
    SQL development team

  • Problem with PCI device and network controller

    Hi, I have problems with drivers, I tried several but does not work. I have a laptop HP 2000 with windows 7 Ultimate 64-bit. These are the properties of hardware retail:

    Network controller

    PCI\VEN_10EC & DEV_8176 & SUBSYS_1629103C & REV_01
    PCI\VEN_10EC & DEV_8176 & SUBSYS_1629103C
    PCI\VEN_10EC & DEV_8176 & CC_028000
    PCI\VEN_10EC & DEV_8176 & CC_0280

    PCI device

    PCI\VEN_10EC & DEV_5209 & SUBSYS_520910EC & REV_01
    PCI\VEN_10EC & DEV_5209 & SUBSYS_520910EC
    PCI\VEN_10EC & DEV_5209 & CC_FF0000
    PCI\VEN_10EC & DEV_5209 & CC_FF00

    Help, please

    Thank you

    Hello:

    You need these drivers:

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5060882&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_105197_1%257CswEnvOID%253D4059%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-102008-1&cc=us&DLC=en&LC=en&OS=4063&product=5093394&sw_lang=

  • on my xbox, I bought a song with microsoft points and he gave me the error code 80070057 what can I do to recover my points

    I used 160 microsoft points to buy a video clip, he said not that nothing was wrong with the video. so I bought it, it says see downloads, so I did downloaded but as I tried to play, she would not play. So I deleted it tried to download and play again it gave me the error code 80070057. can I get my points

    Hello

    You can check this link:

    When you use your Xbox 360 console to download and view videos or movies, you receive an error code

    http://support.Microsoft.com/kb/948719/en-us

  • Problem with af:inputColor and af:chooseColor validation trigger

    Background:
    I have an entry form of data that allows the user to enter data, but also allows them to choose a color. I wired the chooseColor together and inputColor components, and the user can choose a color. Everything works fine until the user decides to choose a custom color. This causes the control to launch a custom color picker dialog. When the user selects their custom color and press the OK button on the custom color dialog, the control raises an event that causes page validation. The problem is that I have a number of fields required in the entry form and that, if the user has not completed those yet, they get a nasty error message requiring an entry for all these areas.

    Question:
    Is there a way to stop pressure on the OK button on a custom color picker dialog to trigger the validation of the page? I tried to set the autoSubmit = "false" on the inspection and inputColor, but it does not work.

    Thank you

    Nigel

    Hello
    a fast alternative is to use an af:subform for entry and choose.
    www.Oracle.com/technetwork/Developer-Tools/ADF/learnmore/40-PPR-SubForm-169182.pdf

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • Strange problem with analog output PCI 6251 and BNC-2110

    I'm controlling current source of third parties using the connectors of analog output on my card PCI 6251 and BNC-2110.

    The current source needs an input signal of 0.1V. I tested it using a battery, the potentiometer and the voltmeter, and by manually adjusting the voltage of power current works - current output with control voltage scales according to the specifications and is relatively stable.

    The data acquisition card works too - when I connect a voltmeter to the AO0 AO1, the measured voltage corresponds to the target with great precision value.

    But when I connect the current source of third AO0 AO1 data acquisition card, the measured output voltage drops and fluctuates. This applies to both channels of the AO.

    I wonder what is the problem here. I suspect it could be a matter of the grounding - the current analog control of the source is an entry with two floating terminals differential. I tried to return the switches FS/GS on the BNC-2110, but that makes no difference.

    Anyone knows similar behavior? Does anyone have any suggestions?


  • I have an iphone 6 it is damaged by water but I set myself and the person put it on charge and tested it with a multimeter and it worked perfectly but when I went to look for a screen tested on it, it didn't work

    I have an iphone 6 it is damaged by water but I set myself and the person put it on charge and tested it with a multimeter and it worked perfectly but when I went to get a screen tested on it because she does not have the person had not on is it did not work, even if the person has used only flow to correct and get a few corosions out with the replacement of some components of the person responsible for 10 minutes after having plugged in and the battery it wamer so it as I said her test with a multi meter test and he registered 12v and I wondered if something was wrong with it and if I could fix it easily?

    Check the liquid Indcator of Contact.

    Instructions here > liquid for iPhone or iPod is not covered by the warranty - Apple support

    Just so you know, the service of the liquid damage to an iPhone or iPod is not covered by the limited warranty of one Apple or an AppleCare Protection Plan (APP).

  • I am trying to connect a Macbook Pro with Retina display for a new monitor Dell Ultrasharp 3014. I tried to connect via HDMI and DVI cable supplied with the monitor but the monitor says "no cable dvi - d".

    How to connect a Macbook Pro with the (just bought) Retina display for a Dell Ultrasharp U3014's new? I tried to connect with HDMI and DVI cable supplied with the monitor but the monitor says "no dvi - d" cable. I never tried to do that before so I'm lost.

    Use a mini-displayport cable. Connect to one of the ports Thunderbolt the MacBook Pro to ultra-compact monitor entry.

  • HP Notebook: My Ethernet cable supplied with the laptop is damaged and needs new cord. How can I get a new one.

    Need new Ethernet cord that attaches to my router. But I have an extra cord (yellow) for my router. Can I use this rope? The case where and how to get the new cord. Connection is lowsy...

    Hello

    Many router vendors include a CAT5e cable with routers and in many cases, they are yellow. Didn't the yellow cable come with your router? If Yes, you can use it.

    Kind regards.

  • I use an analog input on a PCI-6224 and are having problems with the clock source

    I use an analog input on a PCI-6224 and are having problems with the clock source. I'm trying samples of 16 different analog inputs very quickly. I have the sample mode: Timed Single Point material. The rate, that I am running is the maximum (250 kHz (15625Hz per channel)). I left the default clock source and trying to taste several times. The analogue input works for a short time (2-3 seconds) and then everything stops. I'm doing something wrong or is there something I'm missing? Any advice would be great.

    That's how you samples using the sample clock clock. If you see a delay then something is wrong with how you track/data visualization.

    Single point NI the hardware is for PID control with a real-time operating system.

Maybe you are looking for