Two channels reading same value

Platform : WIN_XP Pro.
LV Version : 7.1
Card : PCMCIA 6024E  or PCI M6221
Problem : When I run the enclosed data logger, both channels ( AI0 and AI1 ) plot the same values as appearing in AI0  The sampling rate is at 2.5kHz and each channel is the average of 125 samples once every 50mS approx.
So whats wrong with the code ?
Thanks
Raghunathan
LV2012 to Automate Hydraulic Test rigs.
Attachments:
UniversalLogger_HW_Timed Folder.zip ‏444 KB

Hello Hillary,
Yes I understand. But then even if the AI_Setup.vi is configured for only 1 channel, I guess when I call this sub vi in the Main and write new values to the inputs, then th new values will prevail ?
Or am I missing out something basic here ? Of course I can try out your suggestion today.
Sorry the AI_Setup.vi was blocked. I have attached the zip file after removing the password block.
Regards
Raghunathan
LV2012 to Automate Hydraulic Test rigs.
Attachments:
LV71_DataLogger.zip ‏443 KB

Similar Messages

  • [svn:bz-trunk] 13716: since include-read-only is a server global setting, we can't have two channels with different value.

    Revision: 13716
    Revision: 13716
    Author:   [email protected]
    Date:     2010-01-22 09:26:12 -0800 (Fri, 22 Jan 2010)
    Log Message:
    since include-read-only is a server global setting, we can't have two channels with different value.  remove the test for the include-read-only false.  update the service-config.xml as well.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml
        blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ReadOn lyTest.mxml

    You can give this a try on your Ultimate machine.  While these are said to be for Vista, I used it on my Win 7 machine just fine and it fixed the problems I was having.  Hope it works for you.
    The problem is that Vista, by default, will only use NTLMv2 for authentication, which is not supported by Mac OS X's Windows Sharing service.
    The other problem is the Minimum Session Security for NTVLM SSP based Clients.
    To get around this:
    1.     In Vista, open the Control Panel
    2.     Switch to "Classic" view
    3.     Double-click Administration Tools
    4.     Double-click Local Security Policy
    5.     Or Secpol.msc
    6.     Expand "Local Policies" and select "Security Options"
    7.     Alternate : Type secpol.msc to get editor up then
    8.     Locate "Network Security: LAN Manager Authentication Level" in the list and double-click it.
    9.     Change the setting from "Send NTMLv2 response only" to "Send LM & NTLM - use NTLMv2 session if negotiated"
    10.     Network Security: Minimum session security for NTLM SSP Based (including secure RPC) Clients
    11.     Change the setting from "require 128 bit" to unchecked (No Minimum)
    12.     Click OK
    the real difference between vista and windows 7 procedure is 10 and 11

  • Changing media start time with soundtrack, fcx doesnt read same value.

    i have tryied to change the time stamp with soundtrack to use file in fcx but it  doesn-t read it same value, why _

    i have tryied to change the time stamp with soundtrack to use file in fcx but it  doesn-t read it same value, why _

  • Search help value restriction in two tables having same value table

    Hi Gurus,
    I have two tables containing same field having same domain with value table. My requirement is to restrict the values in the tables. For example the field contains 4 values:
    1) A
    2) B
    3) C
    4) D
    For table 1, only A and C should be seen in F4 and for table 2, only B and D should be seen. Also if somebody forces  B or D
    in 1st table should not be allowed and the same for 2nd table ( A & C are not allowed ). How to do this using search help exit . Which event should I use. I don't want to create two separate check tables containing only the required values.
    Regards,
    Debopriyo

    Hi Gurus,
    I have two tables containing same field having same domain with value table. My requirement is to restrict the values in the tables. For example the field contains 4 values:
    1) A
    2) B
    3) C
    4) D
    For table 1, only A and C should be seen in F4 and for table 2, only B and D should be seen. Also if somebody forces  B or D
    in 1st table should not be allowed and the same for 2nd table ( A & C are not allowed ). How to do this using search help exit . Which event should I use. I don't want to create two separate check tables containing only the required values.
    Regards,
    Debopriyo

  • Amplitude Swept Two channel reading

    Hi,
    I am currently trying to include another channel for reading in data using the amplitudeswept and swept sine.vi as I have multiple readings to take for testing.
    I am currently using a NI USB 6259 device controlling an electrodynamic shaker however I am having no luck the extra reading- simply reads in all 0 values no noise either- but no error is generated
    I have attached my VI for your review
    Your help is most appreciated Regards Tanju

    Hi GerdW,
    thank you for the reply, Really I'm not changing the running VI's just the main vi in amplitude swept I am just enetering my channel hopiong to read the data- I have attached an image of the main vi; I think the main problem is the program already calls the DAQ board and I can't do this twice.
    I just want to add an additional channel into the program as I will read a force sensor and a displacmement sensor (input channels) and my output channel is my electrodynamic shaker.
    Your help is most appreciated
    Regards Tanju

  • Max two same value in one field

    Hi,
    I have a project in hand. I can't figure out how to deal with
    it. I am not
    very good at manual script. I can handle on my own, though.
    My problem is I need check in the insert page if a certain
    value is in that
    field two time. If so, I do not want the visitor to insert,
    and system to
    warn the visitor to insert another value for the selected
    field.
    For example, below, for the file code, if the
    visitor/operator inserts 314,
    it should give error because there are two records whose
    file_code field
    containing 314.
    file_id filename file_code
    1 dummyname 225
    2 dummyname 314
    3 dummyname 225
    4 dummyname 314
    5 dummyname 532
    6 dummyname 756
    7 dummyname 225
    8 dummyname 987
    Thank you indeed
    Hakan

    OK, just noticed that you want to allow two of the same
    value, but no more than two.
    In that case, before inserting , just perform a select count
    using the attempted insert value in the where clause. If less than
    2 allow the insert, otherwise display the error.

  • All AI channels have the same value - NI PCI-6221 and NI PCI-6229

    Hello,
    I use the example aiex1.cpp for a multichannel AI read with the mseries devices 6221 and 6229.
    This example works for one channel, but the other channels have the same value (+- 0.001 Volt difference).
    For example: I set 5Volt on the first channel and then the other channel have 5Volt too.
    What should I consider in the configuration?
    Please, can someone help me?
    Best regards,
    Heiko
    Solved!
    Go to Solution.

    Hi Heiko,
    Like Moritz, I'm curious what signals you have connected to your AI channels. What voltage do you expect to read on each channel?
    Tom gave me your initialization code and it looks like you've modified aiex1.cpp. Does the example work without any changes?
    I have some more questions that will help me determine where the problem could be coming from, but these two are the easiest. We'll keep getting more and more specific as we remove possible causes.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

  • How to run two DAQmx Read (Analog) at the same time?

    I would like to measure a voltage and a current,
    but the two cannot be conbined in one task.
    Therefore, I had to use two DAQmx Read in the same program. But it did not run.

    Multiple channel types can be combined in a single DAQmx Read. One way is to use multiple DAQ Create Channel fucntions. Look at the posting here and the second example at the link in the answer.

  • Will a sequence return same value for two different sessions?

    Is there a possibility that a sequence will return same value to two different sessions when it is referred exactly at the same instance of time?

    @Justin... Thanks for your insight; indeed, we too feel this shouldn't ever happen and never heard of it either, but there it is. (No, we haven't logged a TAR yet -- whatever that is -- partly because it didn't occur to us and partly because we only recently came across the issue and sensibly want to do some testing before we cry foul.)
    However, the code is pretty straight-forward, much like this (inside a FOR EACH ROW trigger body):
    SELECT <seqname>.NEXTVAL INTO <keyvar> FROM DUAL;
    INSERT INTO <tblname> (<keyfield>, <... some other fields>)
    VALUES(<keyvar>, <... some other values> );
    (where <tblname> is NOT the table on which the trigger is fired). This is the only place where the sequence is ever accessed. The sequence state is way below its limits (either MAXVALUE or <keyfield>/<keyvar> datatype size).
    In this setup, end users sometimes got an out-of-the-blue SQL error to the effect that uniqueness constraint has been violated -- as I said, we used to have a unique index on <keyfield> -- which leads us to assume that the sequence generated a duplicate key (only way for the constraint to be violated, AFAIK). We released the constraint and indeed, using a simple SELECT <keyfield>, COUNT(*) FROM <tblname> GROUP BY <keyfield> HAVING COUNT(*)>1 got us some results.
    Unfortunately, the <tblname> table gets regularly purged by a consumer process so it's hard to trace; now we created a logger trigger, on <tblname> this time, which tracks cases of duplicate <keyfield> inserts... We'll see how it goes.
    @Laurent... winks at the CYCLE thing Our sequence is (needless to say) declared as NOCYCLE and the datatype is large enough to hold MAXVALUE.

  • Error -50103 when I am trying to access two channels on USB 6366 board in the same time

    I am trying to use two DAQmx tasks attempting to access two channels from
    USB-6366 in the same time. But it gives me an error Error -50103. So I looked
    online and find out it says ' It is not possible to have multiple DAQmx tasks
    attempting to access the same physical device. '. So I am wandering how can
    collect data from my ai0 and ai1 channels in the same time? Here is my code,
    and please help me out. Thanks very much
    Attachments:
    error_-501013.vi ‏27 KB

    Simple - use a single task with multiple channels. Surely the answers in all of the related posts said that. The channel list is just dev1/ai0:1.

  • All AI channels have the same value

    I use the example aiex2.cpp for a multichannel AI read with the mseries devices NI6280.
    This example works for one channel, but the other channels have the same value
    For example: I set 5Volt on the first channel and then the other channel have 5Volt too.
    What should I consider in the configuration?
    beilei
    Solved!
    Go to Solution.

    Hello Beilei,
    I think that you are running into the AI ghosting issue.  Are the other channels you are using connected to ground when you connect the first channel to 5V?  If the other channels are floating, they will read the same value as the first channel...5V.
    Steven T.

  • Release By two Users for the  same Value

    Friends
    I have an existing PO rel. strategy where the range is 1-10000USD  . This is currently released by one user. Now due to business requirement  client wants to introduce one additional user to release the PO as well for the same  value range.
    In a nutshell for the value range  USD 1-10000 , There will be two approvers with two different rel. codes. How do I achieve this?
    Thanks
    samuel

    Dear,
    Check this : Release Procudure for Purchase Order
    Hope Helpful to your requirement.
    Regards,
    Syed Hussain.

  • Trying to use the same ground for more than two channels (RSE configuration) with usb 6000

    Hello,
    I'm currently trying to set up a LabView code in order to get readings of voltage using 5 different locations simultaneously. I want to only use the first location as ground and obtain 4 voltage measurements between the ground and each one of the other 4 channels. I'm using a usb 6000 which for now allows me to use the same ground for only two channels. Is there a way to use the same ground for 4 channels?
    Thank you,
    Maria

    You're right it is confusing the way I describe it so I ahve attached some pictures of the set up. The first figure is the cell filled with soil and the 5 probes inserted in it. The anode is placed at the left end of the cell and the cathode at the right end but they do not appear in the figure. I'm trying to use location 1 as gournd and take measurements of voltage from the following pairs: 1-2, 1-3, 1-4, and 1-5. The second figure is the DAQ I'm using. When I was trying to set up the RSE configuration, it was ussing ground A for the channels 6 & 7 (locations 2 and 3 in figure 1) but ground B for channels 4 & 5 (locations 4 and 5 in figure 1). What I am asking is which is the best way to use the signal from location 1 as the ground for all 4 channels. Is this more clear?
    Thank you for your time!
    Maria

  • [Bug: JComboBox + JNavigationBinding] Two entries with same attr. values

    Given the folowing situation:
    A straightforward ViewObject + table (ID, NAME) + some contents.
    However, the table contains 2 records which have the same value for NAME.
    Now, in my JClient application I drop a JComboBox on a JPanel and define that it should have a NavigationBinding with the ViewObject, while displaying the Name attribute.
    Because the table holds 2 records with the same value for the column NAME, there will be 2 identical items in the JComboBox. However, I am now unable to select the 2nd duplicate from the list. When I do, the selection (and thus currency) will always be set to the 1st of both duplicates.
    This problem can be reproduced in the JClient demo application, on the "JULabel demo tab". Just add an existing state (with a unique abbreviation) to the database and alter the NavigationBinding to display the Name attribute instead of the Abbreviation attribute.

    I've tried the application again, but the problem still exists unfortunately.
    For the record, the problem occurs both with the original JDK 1.3.1_02 and the current 1.4.0_01. The fact that I run JDev itself with either of these 2 JDK's doesn't seem to make any difference either.
    My JDev version infos:
    Version 9.0.3.1 (build 1107)
    Oracle IDE     9.0.3.10.76
    UML Modelers Version     9.0.3.9.73
    Business Components Version     9.0.3.10.62
    SCM Support Version     9.0.3.9.73
    JMIG Framework (Generators)     9.0.4.1.28
    java.version     1.4.0_01
    java.home     c:\j2sdk1.4.0_01\jre
    java.vm.name     OJVM Client VM
    java.vm.vendor     Oracle Corp.
    java.vm.version     9.0.3.744 o
    user.language     nl
    user.region     <no value assigned>
    user.name     AvdKolk
    user.home     C:\Documents and Settings\AvdKolk
    user.dir     D:\JDeveloper 9.0.3\jdev\bin
    ide.user.dir     
    os.name     Windows XP
    os.arch     x86
    http.proxyHost     <no value assigned>
    http.proxyPort     <no value assigned>
    http.nonProxyHosts     <no value assigned>
    ide.patches     scmtoolbarpatch2.jar

  • Simple Channel Read and File I/O Problem

    Hello
         I am having a simple problem with reading in two channels from a usb-6259.  I have 2 channels, reading in voltages, and I am wanting to read them in at 400K Hz.  I have used the DAQ assistant and the Write To Measurement File VI.  It is just a direct connection between the two.  I have the DAQ assist set up for taking in N Samples, which is set to 8M because I want to take in 20 seconds worth of data at 400K Hz.  Now the problem lies with the fact that I am getting a Out of Memory error.  This pretty much confuses me because the file that I will get is 220MB (I know this because I put a wait and got none continuous data for a total of 20 seconds worth of data at 400K Hz), and I have 2 GB of RAM, in whic i usually have 1.3GB free when I start the simulation.  So, now on to my actual question.  How is this system running out of memory?  How else can I program this to make this work?  Any feedback on this would be great.  Thank you.
    Michael B
    Labview 8.5

    Hello Michael B,
    The DAQ assistant creates a lot of over head and this may be the reason why you are running out of memory. If you keep the Task Manager open while you are running the task, you'll be able to see that the memory keeps being used up by the data acquisition process. I would suggest not using the DAQ assistant and to use the lower level DAQmx VIs.
    A good place to start would be Help -> Find Examples. Within Find Examples select Hardware Input and Output -> DAQmx -> Analog Measurements -> Voltage -> Acq&Graph Voltage Int Clk.vi. Go to the Block Diagram of the VI and change the "time out" to a much larger value. You can select two channels at the same time by using a comma (eg: Dev2/ai0, Dev2/ai1). Hope this helps.

Maybe you are looking for

  • Signature option in Adobe Reader.

    Why is the signature option in Adobe Reader one "greyed out" for iPad users, you can no longer access your signatures and add them to a document ?

  • Determining a Device That Does Not Exist

    Hello, We have a Citrix Xendesktop 7.1 PVS environment. The VHD disks are hosted on a volume on a Windows Server named S00CITRIXVHD01 that has 2 disks C drive(Disk0) and D drive(Disk1). In the event log of the server hosting the VHD disks I see this

  • 24" LED Cinema display doesn't display screen saver.

    I have my MacBook Pro set to display a screen saver- (flurry). The MBP alone functions as desired. When plugged into the Cinema display, which is 90% of the time, it has only appeared maybe once or twice since purchased, even after Snow Leopard was i

  • Ibook G4 (mid-2005)

    Please help! I have an ibook G4 that came with an airport card installed, it broke when my computer fell and I would like to replace it with the new airport exttreme card, which i have purchased. how do I do this? the manuals I have found are for the

  • Error 20413, SCVMM 2012 R2

    Hi! I tried to run command "Refresh Virtual Machines" on cluster node in VMM. And i have an error: Error (20413) VMM encountered a critical exception and created an exception report at C:\ProgramData\VMMLogs\SCVMM.74251b88-e0b8-43d0-986f-0f47295dc772