Multiple channels with multiple callbacks

Dear sir,
I have recently purchased NI-DAQ 6034E. I have met some problems while programming my application.
I tried running scanning two analog channels and which will trigger my two different callback functions.
My application shows error 10698-Cannot use this combination of scan and sample clock timebase for this board.
Please Advise.
Yours sincerely
C.J

CJ,
The error 10698 specifies the following reason for the error: "You cannot use this combination of scan and sample clock timebases for this board." From this error, it sounds like you are attempting to manual configure clocks of your device for values that conflict with each other or are not allowed based on the specifications of your device.
For the application that you are performing, I would recommend looking through the shipping examples (location will depend on what you are programming this in and other details not included in your post) as well as searching through the examples online at http://www.ni.com/support. I would take a look at how they configure the timing of their devices to make sure that you are specifying these settings correctly in the
configuration of your 6034E.
Also keep in mind that the sample and scan clock refer to the clock that controls when a scan begins. For multi channel scanning, a convert (channel) clock is used to determine when each channel in a single scan is sampled. Be sure that you are not mixing Traditional and NI-DAQmx functions.
If you have any more questions then please include more information on your application, API, and details as to when the error occurs.
Regards,
Michael H
Applications Engineer
National Instruments

Similar Messages

  • How do set up multiple devices with multiple graphs in labview

    Hello,
    I am new at LabView, and we are trying to setup a test rig to measure voltage, pressure and flow rates. We are currently using a NI-6009USB box and Labview version 8.2.  Our problem lies in setting up the actual measurements on separate graphs. How do i go about setting up the daq-assistant to measure mulitple devices, and graph them on their own graphs?  We also need to know how to program in when measuring flow, how to convert it from square wave form to a calibrated curve?
    Any help would be greatly appreciated!
    Nate

    When you configure the DAQ Assistant, you will be first asked to select the measurement type. Assuming that you have voltage sensors because you have the 6009, you select Analog Input>Voltage. You then get a list of devices. Since you only have one, it should be listed as Dev1. Expand that and then pick the channels you have connected to the sensors. Just like it says at the bottom of the of the channel window, you can select multiple channels with  <CTL> or <SHIFT> click. After you've done that, the next window is where you select your sample rate, number of samples, etc. You can also select a custom scale for each channel. This is where you would enter any formula you have from the sensor vendor in order to convert a voltage reading to scaled units.
    The output of the DAQ Assistant is a dynamic data type. You can wire this to a single graph to display all readings together or use the Split Signals function to break out individual channels for separate graphs.
    Message Edited by Dennis Knutson on 02-22-2007 03:33 PM
    Attachments:
    Split Signals.PNG ‏4 KB

  • Multiple Macs with multiple user accounts

    I have a Mac computer connected to airport and use Time Machine for backups. This works well.
    I have now purchased a second Mac and would like to include this second Mac so that I can move between Macs and work. There does not appear to be any mechanism to allow this.

    After searching the web and the discussion here, here's my minimal impact solution for multiple Macs with multiple users in a household:
    1) Set up Mac1 for myself only
    2) Set up Mac2 for the wife and kid
    3) Set up each Mac to backup to the Airport base station using Time Machine (this would create two separate backups on the Airport base station's drive, which from what I've read has its own problems)
    4) On Mac1 setup "empty user accounts" for the wife and kid. These will not have any files in them - just an access mechanism. If they want to access their files, they can use Time Machine's "The Browse Other Backup Disks Option" to get their file from Mac2, work on it and then drop it in the Shared Folder. Next time they are on Mac2, remember to copy the updated/created file from the Shared Folder into their Mac2 user account. If possible, get Time Machine to not backup the "empty user accounts".
    5) Do the same for me on Mac2.
    Not the most elegant solution, but until Apple get off their backside and make this seamless, I can't think of anything else :-( .
    P.S. iCloud is not a soluton since it costs hundreds of dollars a year, uses up intenet data allowance and is slow.

  • Multiple Quizzes with multiple results (in Captivate 6)

    Hey guys, Thanks for reading!
    Does anyone know if it is possible to do multiple tests with multiple results in captivate 6? or if it is possible to have a pre-test with a quiz, and have separate results for each?
    I've been having a play with captivate 6 and when I put a quiz in, it overrides the results slide for my pre-test.
    Looking at the results slide master properties I can choose to have results for one of my quizzes but not both (even on separate slides):
    It wont even let me insert another slide based on the other result.
    I would like to know if multiple quizzes with multiple results is possible in Captivate 6?, or if I am simply doing something wrong?
    Thanks!

    Sorry for way-late reply...
    It's really more how your LMS handles 'courses' and the terminology it uses.
    Essentially, most often, a 'SCORM Package' (SCO) is a 'course'. I'd rather call each SCO a 'lesson' as, to me, 'courses' should be setup in the LMS with a series of 'Lessons'.
    Regardless of the terminology, each 'SCO' is launched by the LMS and one score can be recorded for it via SCORM.
    So if you need multiple final scores recorded, each of those final scores need to be in their own SCO.
    A common approach is a Pre-Test SCO (or 'lesson', or 'course', whatever term), a 'Content' SCO perhaps with some interspersed scored interactions, and a Post-Test SCO...all three merged together as a 'course' (or whatever term) within the LMS.
    That said, as said, it really all depends on how your LMS handles various SCOs...
    Clear as mud?
    E

  • How  to use multiple channels with one remoteObject .

    hi,
    I have an application which is accessed through HPPS some
    times , also it can be access on server with http service.
    so I want to know how to configure config files or add
    runtime channels which will support either channel depending on
    the server it is accessed over.
    Is there any one who can help me to solve this...i need it
    soon.
    thank you...

    Hi,
    Please visit the URL below for details on adding channel sets
    at runtime. Add multiple channels to the channel set so that the
    fall back mechanism works.
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/runtimeconfig_5.html#194376
    Hope this helps.

  • Reading multiple channels for multiple graphs

    Hey I am fairly new to Labview and am using it just temorarily. My project is to take in readings from a Gaussometer (X,Y, and Z axis) and graph them in read time. The Gaussometer outputs a DC Voltage equal to the gauss of the magnetic field. The X,Y,Z all come in on three differnet channels. Connected to a NI USB-6009
    I know I can use the Express> DAQ Assistant, however that outputs "Data" and I was hoping to use this in an Array. So I used the DDT to Array to convert it to the Array format that I needed (thanks to the forums for the help there). My only problem is that I don't know how to do this with multiple channels at the same time. But I have possibly been going about this all wrong.
    So I just wanted to know if I could get some help on how to read multiple channels and write to them to three different graphs in real time that would be of great help.

    Whether or not you use the Convert From Dynamic Data or the Split Signal, your data should be shown as soon as the DAQ Assistant returns. How you format the data is irrelevant. If the number of samples you request is greater than the sample rate, then it will take longer to acquire the data and there is nothing you can do about that except reduce the number of samples and acquire in a loop. You can append new data to old and display everything in a graph if you want.

  • Would like assistance with multiple devices with multiple iTunes accounts syncing on one PC

    I have had an iPhone for some years now and have been syncing with my PC without issue (first with iPhone 3gs and now with iPhone 4s). My wife bought me an iPad 3 retina in December 2012 which syncs with the same PC as my phone and shares the same iTunes account. Apps downloaded onto one device are automatically downloaded to the other, iMessages are sent and received to both devices also.
    My Wife now has an iPad mini with retina (using her own existing iTunes account which she previously used for an iPhone she no longer uses). I synchronised her new iPad mini with my PC assuming iTunes would manage the device and related account and contents separately to my existing account and 2 devices. However this has caused an issue with the sharing of apps. Since doing so I have started seeing updates available on my devices for apps which I have never downloaded, but my wife has.  If I tell my iPad to update said apps, I am asked for my Wife's iTunes account password. 
    On doing some searching via google I now understand that I should have created a second windows profile on my PC for my wife and installed iTunes onto this profile for the purposes of syncing her device.
    I would very much like to do this, but would like some assistance on the best course of action for doing so. If I proceed and created a second profile and sync her device to this, I presume I would need to tell iTunes to treat her iPad as a new device (and wonder what would happen to her existing content)? Assuming we do this, I presume the issue of my seeing her app updates would still persist?
    Could someone advise if they have any experience with similar issues/queries?

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • Multiple iPods with Multiple computers

    I have two iPods and each syncs with a different machine. Each has a unique music library. What would happen if I switched iPods. i.e. plugging two different iPods into one machine? Will they somehow merge the libraries, or will iTunes just complain that I'm confused.
    Thanks,

    Have a look at this article: How To Use Multiple iPods with One Computer
    Also, before you connect an iPod that is currently linked to a different library, read this one: Using iPod with Multiple computers

  • Issues with multiple Files with multiple subdbs on a single environment.

    I'm having an issue with Berkeley DB 4.2 on 32-bit platforms, regarding multiple physical files with multiple subdatabases in a single database environment. Specifically, when I open a subdatabase for a physical file, Berkeley DB thinks that it is using the same subdatabase in a different physical file.
    I'm doing the following:
    1. Create and open a db enviornment.
    2. Move file1 to the common area.
    3. Open, get and close the subdatabases in file1.
    4. Move file2 to the common area.
    5. Open, get and close the subdatabases in file2.
    6. remove file2 from the common area
    7. Move file3 to the common area.
    8. Open a subdatabase from file3. About 1/2 the time, the fetches
    return data from file2, not from file3.
    It's possible that at some earlier time (i.e. before step 1 of this
    test case), file1, file2 and file3 were the same file. I noticed
    that there is something called env->fileid_reset, but that is not
    in 4.2.52.
    Any ideas?

    Looks like I've resolved the issue

  • Help with multiple contacts with multiple phone numbers

    I'm fairly new to the iPhone so thanks in advance for any help with this issue.
    I have contact list with records for a lot of people (300+), each with several phone numbers each, home, mobile & work, etc, .I can't seem to find a way to have the iPhone announce the name & number or name & type (home,mobile,work) of the caller from the contact list, my old cell phone could do that easily.
    At the moment what I've been doing as a work around for a few (important) people is to create a custom ringtone for that caller & that phone number.  Since it also seems there's no way to attach a different ringtones to each number in a single contact record I've had to create multiple contact records for each person, each with a different name/number combination such as "John Doe Work", "John Doe Home" or John Doe Mobile" then assign to it the custom ringtone I created for that name/number. 
    I need to this so that if I receive a call while I'm driving (or whatever) that I can't answer right then for some reason (often happens),  the ringtone I created for that name & number helpfully lets me know  who & where their calling from.  It's very important to know where someone is calling from, if someone's calling from home then I know I've got some time,  but if their calling from work then I need to get back to them quickly.
    This is a real pain!, having to make multiple contacts & ringtones for a every person with multiple numbers is a extraordinary waste of time.  My old cell phone could do this with no problem but there doesn't seem to be any way to do this with my new iphone.  Am I missing something here?  I am new to the iPhone so if there’s a solution to this that I’ve missed I'd very much appreciate the assistance.
    Thanks in advance.
    Al

    https://discussions.apple.com/message/18271382#18271382

  • Multiple SSID With Multiple VLANs configuration on Cisco Aironet APs: Assotiated clients cannot obtain IP addresses

    Hi Surendra,
    I was just given this task to see how i can configure a second ssid for guest access in our environment.
    this is our network setup prior to this request: Internet----Firewall (not ASA)---ce520---C1131AG and CME router is also connecting to the ce520 switch. we only have two vlans: one for voice and two for data.
    Presently, there is no vlan configured on the AP because it on broadcasting ont ssid and wireless users gets IP from a windows DHCP server on the LAN. the configuration on the ce520 switch port for the AP and other switches say access vlan is the DATA vlan which automatically becomes the native vlan for all trunk port connecting the AP and other Stiches to the network.
    Now with this new requirement, i have made my research and i have configured the AP to broadcast both the production and the guest Vlans. The two vlans are 20-DATA and 60-Guest. I made the DATA vlan on the AP the native vlan since the poe switch is using the DATA vlan as native on the trunk ports. I configured the firewall to serve as DHCP server for the guest ssid and i have added the ip helper-address on the guest vlan interface on all switches while the windows server remains the dhcp server for the production DATA Vlan. I have confirmed that the AP, switches can ping the default gateway of the guest dhcp server which is another interface on the firewall. I can now see and connect to all broadcasted ssids but the problem is I am not getting IP addresses from both the production dhcp server and guest dhcp server when i connected to the ssid one at a time.
    My AP config is attached below.
    Please tell me what am I doing wrong.
    Do i need to redesign the whole network to have a native vlan other nthan the data vlan?
    Does the access point need to be aware of the voice vlan?
    Do the native Vlan on the AP need to be in Bridge-group 1 or can i leave it in bridge-group 20?
    I will greatly appreciate your urgent response.
    Thanks in advanced.

    Hi,
    As far as i know we dont set the ip helper address on the radio interface. It should be on the L3 interface of corresposding VLANs i.e.
    int vlan 20
    ip helper-address 192.168.33.xxx
    int vlan 60
    ip helper-address 130.20.1.xxx
    I'm assuming that your using SVI's (int Vlan 20 and int Vlan 60) rahter than physical interfaces. Also hope you have configured switch port as trunk where this AP is connected.
    Modify the AP config as below since you are using data vlan as the native vlan
    interface Dot11Radio0.20
    encapsulation dot1Q 20 native
    interface FastEthernet0.20
    encapsulation dot1Q 20 native
    Ideally your AP fastethernet configuration should looks like below and not sure how you missed this as this comes by default when you have multiple vlans for multiple ssids.
    interface FastEthernet0.20
    encapsulation dot1Q 20 native
    no ip route-cache
    bridge-group 20
    no bridge-group 20 source-learning
    bridge-group 20 spanning-disabled
    interface FastEthernet0.60
    encapsulation dot1Q 60
    no ip route-cache
    bridge-group 60
    no bridge-group 60 source-learning
    bridge-group 60 spanning-disabled
    Hope this helps.
    Regards
    Najaf

  • Multiple Channels with Firewire Input

    I posted this in the podcasting forum, and it occurred to me I might have better luck getting a response here. Apologies if you've seen this one before! I quote:
    I have a feeling this is a stupid question, but I'd hate to go without asking, so... I'm using a Behringer Eurorack UB1202 with a Behringer F-Control firewire interface to record a podcast with 3 (sometimes 4) microphones. Is there a way I could use that setup to split the audio onto 3 (or four) separate tracks? I'm assuming the answer is "no," since it ultimately dumps into one firewire input and therefore (I guess) one signal. I imagine I might be able to split off left and right channels, yes? But with 3 mics, that would put one on one track and two on another? (I'm using an iBook, by the way, so I've only got one firewire port to work with...)
    Thanks for any advice!
    Quicksilver G4 | G3 iBook   Mac OS X (10.4.4)  

    ..just because all the signals go
    into my computer through one cord, that doesn't
    necessarily mean that they can't be divided
    out again, with the right equipment?
    Yes exactly right. They make firewire audio devices that accept multiple analog inputs and have many analog outputs and it keeps it all straight.
    Firewire is MANY times faster than a digital audio stream so the data can be "multiplexed". In other words, it only takes a few microseconds to send a few milliseconds of audio data so it sends some data from each channel, one channel at a time and then maybe some data to/from the disk(s) all on the same cable. Same goes for USB and Ethernet. Kind of like a hiway - every car does not need it's own road.
    Figure that audio sampled at 96K is about 2MB/Sec and firewire can handle 400MB/sec Even 16 audio channels is only 32MB/Sec, well within Firewire's ability (but maybe your disk drive could not handle that rate?)

  • Single virtual channel with multiple digital ports

    Hi all,
    I have created a program that creates a task to read continuously from 3 digital port lines from the same device (PXI-6133). I am trying to figure out how I can retrieve the data from each port line to put into a waveform graph. Currently, I am using the DAQmx Read instance with "1 Channel N Samples" but I get a waveform with all values at the same time or a waveform graph with all three lines transposed.
    I am using Windows XP and LabVIEW 8.6.
    Appreciate any help!
    Solved!
    Go to Solution.

    Hi Matt,
    Thanks for your reply. Unfortunately thats not quite I am looking for. I am sending the DAQmx task the 3 port lines that I want therefore as I have read it bundles them all into one channel by default. What I want to do is take that one channel and parse out the data of each of the 3 port lines to create 3 new waveforms to work with individually.
    After fumbling around a little bit, I was able to sort of get what I wanted. I've attached a screen shot of that portion of the program. The red circle in the bottom right hand corner is how I want to end up. I only did it for one of the pieces of data just to try it out and the conversion to string is just for me to print out what I'm working with. Unfortunately, when I look at the waveform it seems like maybe some extra 0's are being thrown in because its not the same graph that appears from the beginning (when all 3 pieces of data are transposed on each other). Let me know what you think.
    Thanks,
    julissa
    Attachments:
    LabVIEW-ss1.JPG ‏57 KB

  • How do I acquire multiple channels with NIDAQmxBase?

    Sorry for the double post, I just thought my previous message subject looked more like a tutorial rather than a question.
    My question is the same, I am looking to acquire more than 2 channels worth of data using C++ and NIDAQmxBase. I have tried initializing with and without the timer. Without the timer I will get an actual response, with it the program stalls. I don't know if I am splitting up the data correctly...not sure how the DAQmx_Val_GroupByChannel works or whether I should use GroupByScanNumber.
    Here's my code (snippets from my prog):
    char Dev1_joint1_channels[] = "Dev1/ai0:1";
    char Dev1_joint2_channels[] = "Dev1/ai2:3";//the only reason I split this is to test with and without
    //buffersize is 500
    uInt64 samplesPerChan = bufferSize/4;
    // Data read parameters
    float64 data[bufferSize];
    int32 pointsToRead = bufferSize;
    /---------Initialize the task--------------------/
    DAQmxErrChk (DAQmxBaseCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle,Dev1_joint1_channels,"",DAQmx_Val_Diff,min,max,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxBaseCreateAIVoltageChan(taskHandle3,Dev1_joint2_channels,"",DAQmx_Val_Diff,min,max,DAQmx_Val_Volts,NULL));
    DAQmxErrChk (DAQmxBaseStartTask(taskHandle));
    WHILE LOOP
    /---------Acquire data--------------------------/
    DAQmxErrChk (DAQmxBaseReadAnalogF64(taskHandle,pointsToRead,timeout,DAQmx_Val_GroupByChannel,data,samplesPerChan,&pointsRead,NULL));
    /---------Assign to variables after averaging---/
    joint1_chanA = arrayAverage(data,0,pointsToRead/4);
    joint1_chanB = arrayAverage(data,pointsToRead/4,pointsToRead/4);
    joint2_chanA = arrayAverage(data,pointsToRead/2,pointsToRead/4);
    joint2_chanB = arrayAverage(data,pointsToRead*3/4,pointsToRead/4);
    }//END WHILE LOOP
    This works perfectly for just 2 channels, without even using the timer. I tried to stick the timer in, but the acquisition would not even go at that point. With 2 channels, I simply average the first half of data and assign it to the appropriate variable and then do the same for the second half. This works very well for just 2 channels, it's when i get into 4 channels that the data is messy.
    Help is appreciated!
    Thank you!
    Nathan
    [email protected]

    >I tried to stick the timer in, but the acquisition would not even go at that point.
    What timer? There's no timer in your code. Since putting in the timer makes it stop, that would seem to be the problem, and you're going to have to show it to us.
    A quick and not-very-careful read of your code seems to be OK, assuming the variables whose definitions and initialization you have left out are OK.
    >not sure how the DAQmx_Val_GroupByChannel works or whether I should use GroupByScanNumber
    The way you're doing the averaging requires DAQmx_Val_GroupByChannel.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Multiple Channels with Single Digital Edge Trigger

    I have a simple vi where two analog channels are read in and recorded simultaneously to a lvm file and plotted on a waveform graph. I need a digital edge to post trigger the data acquisition for both channels. 
    I can get this vi to work with one analog channel and the digital edge trigger just fine.
    When I remove the digital edge trigger, I can get the vi to work with both analog channels. Both signals plot on a waveform graph, and record nicely in the lvm file.
    The issue is how I am setting up the digital trigger (see attached).  The program is never entering the while loop. Where am I going wrong?
    Chassis:cDAQ-9172
    Analog Card:NI 9205 (Trigger Source PFI0)
    LabView: 8.6
    OS: Windows XP
    Solved!
    Go to Solution.
    Attachments:
    Analog Input with Digital Edge Trigger.vi ‏52 KB

    Gardma,
     I am going to take a quick guess (I'm lazy and haven't actually tested the code ), but, since it works without the trigger and given that you have it so that the read never times out (i.e. = -1), there is something going on such that the trigger is never generated on the source pin.  Just a thought.
    Cheers, Matt
    Matt Richardson
    Certified LabVIEW Developer
    MSR Consulting, LLC

Maybe you are looking for

  • Distribution.xml problem in 10g reports...

    Hi freinds, Iam generalizing the distrubution.xml file for emailing from the report. It looks like this. <destinations> <mail id= "mail_id" to= "&<P_recipient_email>" cc= "&<P_cc_email>" bcc= "&<P_bcc_email>" from= "&<P_sender_email>" subject= "&<P_m

  • Encoding and app.doScript

    Hi all, I try to use the function app.doScript to run an applescript. This script use the terminal to look if an picture has an alpha channel. My function works with files who not contains special char. Has some one an idea to correct this bug? I bec

  • TS3406 Message Send Failure: "Not Delivered"

    Recently, I upgraded to iPhone. Unlike before, this error message (in the subject heading) appears when sending messages abroad to two contacts simultaneously. I've gone through trouble shooting in Apple Support and have done everything but contact m

  • I'm connected to the Wi-Fi network OK but safari and email say I'm not connected to internet

    I'm connected to the Wi-Fi network OK but safari and email say I'm not connected to internet so nothing happens.

  • Administration authorization on ALV Variant

    In SAP List Viewer we previously had Administration authorization with SD_MAINTAIN_ALL authoirzation. But since the upgrade to ERP2005 this is not enough and we can't change the layout (display variant) because the Settings -> Layout -> Administratio