Correlated analog and encoder readings with M-series
Hardware: PCI-6220
Driver: NI-DAQmx
Software: VC++ 6.0
My goal is to collect synchronized (correlated) analog and encoder readings to provide position-based voltage and current information.
First question is regarding the potential alternatives and which is the best approach between these options:
1) A single task that reads required analog and counter information into the same buffer, seems easy to align the data using this approach.
2) A task to read analog data and a second task to read counter information, complicated by the need to reliably align the informatio from seperate buffers.
Next question is simple: can the PCI-6220 read 2 seperate encoders?
Hopefully, last question: where can I find documentation about where to connect A, B, and Z? So far all my searches have resulted in E series or 6602 counter examples and nothing on M series.
Thanks, Ed
Hi Ed,
To answer your questions:
>>First question is regarding the potential alternatives and which is the best approach between these options:
>>1) A single task that reads required analog and counter information into the same buffer, seems easy to >>align the data using this approach.
>>2) A task to read analog data and a second task to read counter information, complicated by the need to >>reliably align the informatio from seperate buffers
First of all, option one is not actually an option because you cannot have one task acquire two different types of data (eg analog and counter data). Therefore, option two is the way to go. It is not as hard as it seems. You can use Channel Z to trigger the analag input channels and once the analog and counter channels are triggered at the same time their data will automatically be aligned.
>>Next question is simple: can the PCI-6220 read 2 seperate encoders?
The PCI 6220 has two 32 bit counter channels, so it is possible to read two separate encouders. Here is a link to the product data sheet for this card: http://sine.ni.com/apps/we/nioc.vp?cid=14130〈=US
>>Hopefully, last question: where can I find documentation about where to connect A, B, and Z? So far all my searches have resulted in E series or 6602 counter examples and nothing on M series.
You are right, it is difficult to find out where to connect channels A, B, and Z! The easiest to find this information is to create an NI-DAQmx counter Task in MAX (Measurement and Automation Explorer). Once you have followed all of the steps to create the task you will see the task information in the middle of the screen. There will be a settings tab and inside this tab it will tell you what pins to connect A, B and Z to. I went ahead and created tasks for ctr 0 and 1 in MAX to get the information on which pins to connect to A, B, and Z.
For ctr0: For ctr1:
A: PFI8 PFI3
B: PFI10 PFI11
Z: PFI9 PFI4
Please let me know if you have any further questions. Have a great day!
Jennifer
Similar Messages
-
Problem description:
keyboard can’t type soe letters and relaces the with strange series of other letters. beachball all the tie. 16 gb rabcvxz . idk what to do. lease help0.
EtreCheck version: 2.0.6 (91)
Report generated October 25, 2014 at 3:36:04 PM EDT
Hardware Information: ℹ️
MacBook Pro (13-inch, Mid 2012) (Verified)
MacBook Pro - model: MacBookPro9,2
1 2.5 GHz Intel Core i5 CPU: 2-core
16 GB RAM Upgradeable
BANK 0/DIMM0
8 GB DDR3 1333 MHz ok
BANK 1/DIMM0
8 GB DDR3 1333 MHz ok
Bluetooth: Good - Handoff/Airdrop2 supported
Wireless: en1: 802.11 a/b/g/n
Video Information: ℹ️
Intel HD Graphics 4000 -
Color LCD 1280 x 800
System Software: ℹ️
OS X 10.10 (14A389) - Uptime: 0:37:54
Disk Information: ℹ️
APPLE HDD TOSHIBA MK5065GSXF disk0 : (500.11 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted> : 210 MB
Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB
MACINTOSH HD (disk1) / [Startup]: 498.88 GB (475.08 GB free)
Core Storage: disk0s2 499.25 GB Online
MATSHITADVD-R UJ-8A8
USB Information: ℹ️
Apple Inc. BRCM20702 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. FaceTime HD Camera (Built-in)
Thunderbolt Information: ℹ️
Apple Inc. thunderbolt_bus
Gatekeeper: ℹ️
Mac App Store and identified developers
Kernel Extensions: ℹ️
/System/Library/Extensions
[not loaded] com.livescribe.kext.LivescribeSmartpen (1) Support
Launch Daemons: ℹ️
[running] com.livescribe.PenCommService.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
User Launch Agents: ℹ️
[loaded] com.littleknownsoftware.MailPluginTool-Startup.plist Support
[loaded] com.littleknownsoftware.MailPluginTool-Watcher.plist Support
User Login Items: ℹ️
LivescribeHelper Application (/Applications/Livescribe Helper.app/Contents/MacOS/LivescribeHelperAutoLaunch.app)
Internet Plug-ins: ℹ️
Default Browser: Version: 600 - SDK 10.10
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.4.5 - SDK 10.6 Support
3rd Party Preference Panes: ℹ️
None
Time Machine: ℹ️
Time Machine not configured!
Top Processes by CPU: ℹ️
13% Safari
8% parentalcontrolsd
5% WindowServer
1% com.apple.Safari.SearchHelper
1% launchd
Top Processes by Memory: ℹ️
155 MB Safari
103 MB mds_stores
103 MB Contacts
93 MB com.apple.WebKit.WebContent
86 MB Spotlight
Virtual Memory Information: ℹ️
10.43 GB Free RAM
4.80 GB Active RAM
696 MB Inactive RAM
1.24 GB Wired RAM
1.02 GB Page-ins
0 B Page-outsThanks, I'm typing this message from an external keyboard borrowed from one of my schools iMac. It is working fine so could this be a serious hardware issue? I upgraded the RAM from 4 gb to 16 gb thinking that would solve the slowness/beachball issue but it didn't. Could it possibly be a faulty SATA cable or time to upgrade my hard drive as well?
I'm feeling like this is beyond my reach and do not want to damage my MBP further. I'll shut it down and take it to the tech store on campus and hope they have mercy on my wallet. Thanks for the help. -
Analog and Encoder being collected only on encoder pulses.
I currently have the setup below and the XValue timestamps from the Write to Measurement File are not exactly at the rate I specified in the DAQ Assistant. The DAQ Assistant just has analog channels with Samples to Read set as 10 (or 1, which does not affect this example) and the Sample Rate (Hz) set to 10 Hz. The main problem that I am having is that the analog channels seem to follow the Frequency Counter in the sense that it alters the XValue timestamps in the Write to Measurement File and will only log the analogs and frequency channel when the encoder (frequency counter) encounters the edge of a pulse. How do I get the analog channels in the DAQ Assistant to log as well as getting the Frequency Counter to log simultaneously with the correct XValue timestamps from the Write to Measurement File with or without the encoder moving?
Also, is the 100 ms Wait Until Next ms Multiple needed for the Frequency Counter?
Thanks in advance for the help.The *.vi works correctly except for the fact that when the encoder is not reading any pulses, not moving, it delays all data acquisition for all channels (analog and counter) until the encoder rotates again or the counter channel for the encoder times out according to the timeout specified. I would like for all of the channels to be able to continue logging at the specified rate in the DAQ Assistant for the analog channels and the specified rate for the counter channel (encoder) if the encoder is not reading any pulses. Also, when the counter channel is reading pulses, the timestamp XValue of the Write to Measurement File is not at the exact rate I specify in the DAQ Assistant. An example of some data is shown below.
X_Value
Analog
Encoder
0
2.231008
0
9.237507
0.942442
0
20.366281
3.523876
5.227699
20.725778
-4.150966
1.09365
22.304438
6.117589
70.197237
When the encoder is not receiving counts, it halts all data to be written to the Write to Measurement File and the X_Value timestamps are not exactly at 10Hz as I requested in the DAQ Assistant.
Thanks again for any help. -
PXI 6602 and encoder reading with two counters
I'm reading three encoders with 2000 pulses for each revolution with a PXI 6602. As the loads are connected to the motors through a transmission ratio of 200 I need to count both the encoder pulses in each revolution and the number of revolutions.
I think I could use one counter, with the standard connections, to count the number of pulses in each revolution and another counter, with the source connected to the Z index signal and the up/down connected to the B channel, to count the number of revolutions.
Does somebody know if there is a simpler solution or a solution that needs only one counter?
ThanksYou can do this with one counter. Since you know the relationship between counts and revs (2000:1), you don't really have to count the index pulse separately. Just take the total count and divide by by the counts per rev. The quotient is the number of revs and the remainder is the position within a particular revolution. Make sure to turn off Z indexing with Counter Set Attribute (attribute 20), so that the counter does not reset each revolution.
Take a look at the NI-DAQ shipping examples in LabVIEW 6.1\examples\daq\counter\ni-tio.llb or at the example linked below. Just add the division operation to get the number of revs.
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/8bebc7cce0aa65f686256866005e411b?OpenDocument
This
seems like a fairly simple solution. Please let me know if I have misunderstood the question.
Good luck,
Brent R.
Applications Engineer
National Instruments -
Synchronize multiple tasks and multiple boards with X-series USB devices
Hi all,
I am trying to figure out how to synchronize multiple tasks across multiple X-series USB boards (6353, to be precise).
I have to run a digital output task AND an analog output task on each board. All four tasks (the DO and AO on Board 1, and the DO and AO on Board 2) must be synchronized.
I know how to synchronize multiple tasks on a single board. I've been doing that for years. That works fine.
I know how to synchronize a single task across multiple boards (say, a DO task across 2 different boards). That works fine too.
For the life of me, I can't figure out how to marry the two. Everything I've seen, all of the examples, etc. assume you want to do one or the other, or that you have a RTSI cable available. Are there any examples out there that synchronize multiple tasks across multiple USB boards?
I tried exporting the AO clock signal from my master AO task to PFI12, and then using the signal on PFI12 to as the clock source for the remaining tasks (Dev1/PFI12 physically connected to Dev2/PFI12, and Dev1/PFI12 set as the clock source for Dev1's DO task).
I have also tried setting Dev1/aoSampClock as the source for Dev1's DO task.
Under both configurations, I invariably get error -89137 when I try to start the tasks -- required resources (PFI12) in use by Dev1/do/SampClock. I understand what the error is telling me. What I don't understand is why I'm receiving this error when I don't have any of my tasks configured to use the DO Sample Clock. It seems as though it is not possible to export a clock signal to a PFI line and simultaneously run a clocked digital task, even if the clock source for that task is specified as something other than the DO Sample Clock?
So, my question is, is it possible to do what I want to do? And if so, how do I do it? How do I configure a common clock source across multiple tasks running on multiple USB boards?
Hoping for insight from those wiser than I...
Diane
Solved!
Go to Solution.Update: I decided to try using a counter as the source clock. One cannot use counter 0 to accomplish this, but it does appear to work with counter 1.
I'll take what I can get. Fortunately I have two spare counters. (Yes, I'm running counter tasks too -- 6 of them -- but they don't have to be synchronized.)
I have to add both digital and analog input tasks as well -- all synchronous with each other, but not with the output tasks since they'll be running at different sample rates. I hope I'm able to use a counter as the source clock for those as well.
My head aches. -
Default cables and accessories delivered with SX series
Hi
Do we have any document which have the details about the different accessories like cables used to connect camera and codec with the default length and presentation cable connect from Codec to the PC and the default length etc.Hi
Cisco have good manual for telepresence endpoints:
www.cisco.com/c/dam/en/us/products/collateral/collaboration-endpoints/telepresence-mx-series/components-and-cables-for-cisco-telePresence-endpoints.pdf
br Oleksandr -
Having problems with encoder readings due to motor commutation noise
Hello everyone,
I wanted to ask for advice with a hardware problem which I believe is rather usual.
Here I describe my application:
We are controlling an electric actuator for a robotics application. We are using encoders to take position readings and we need to perform analog acquisition for other measurements (such as force measured with strain gauges).
The problem is:
In summary, I am having problems to acquire properly position readings from a quadrature linear encoders and also some analog inputs. The cause is the commutation noise generated by the motor drive we are using (which is a brushless dc motor Moog BN-23-23).
Our acquisition platform is a NI PXI-8106 with a PXI-1042Q chassis. We have two possibilities to acquire the signals. We have a multifunction DAQ M series NI PXI-6259 and a FlexRIO NI PXI-7951R with a DIO module NI PXI-6581R.
The commutation noise have a frequency of 30 kHz. In an oscilloscope we can see a series of noise peaks that are only present during a short period of time (about 1/10 of the period of the noise). The rest of the time the noise is not present.
The Accelnet amplifier module that feeds the electric motor provides us with a clock signal synchronized with the noise (which frequency is about 1/4 of the noise frequency). This clock signal provides a mean to solve the problem of the analog acquisition. We can use this clock to perform a buffered acquisition with an external clock in LabView connecting the clock to a PFI pin or to the FPGA card. But the noise is also corrupting this clock signal (we get a daqmx error warning us about possible glitches in the clock signal, and also stopping the acquisition). I believe that solving the encoder problem we can solve also the analog acquisition problem.
In the encoder readings the noise is making our counter count upwards or backwards gradually rather fast. We can get an increase in position of about 10 cm/second without any appreciable movement in the linear actuator.
It would be of great help if anyone could post the solution he is using to solve this problem.
Thanks in advance for your help,
jespestana
PS: I insist in my belief that we are having a hardware issue, because we are only having bad readings when the electric motor is working. I am convinced so because we have already performed encoder and analog readings using other drives, such as hydraulic cylinders. Thus, I think that it is not a problem of our software (of our LabView VI).
Solved!
Go to Solution.Hi jespestana,
I'm not sure why the noise would be causing your encoder measurement to increment more slowly... However I do have one suggestion on the M Series board (6259):
The M Series cards have built-in digital filtering on the PFI lines (see the M Series User Manual). It sounds like the noise is a series of ~3 us pulses (1/10 of 1/30 kHz). One of the available filtering frequencies that you may set on your M Series is 6.425 us, which should ignore any pulses (high or low) that are less than 6.425 us. You may set digital filtering with a DAQmx Property Node:
A caveat is that the driver only allows you to configure digital filtering for counter inputs on M Series devices. So, you could use digital filtering directly on your encoder task but not for your AI Sample Clock. A workaround can be found here, which involves configuring a dummy counter task to set the PFI filter for your AI task. If you're using the same PFI line for your encoder and AI task, you should just be able to set the PFI filter through the encoder task and not worry about the workaround.
With regards to the Flex RIO, I believe you could implement something similar on the FPGA, but I'm probably not the best person to comment about this. It would likely be a great deal more work than using the built-in filtering of the DAQmx API.
Best Regards,
John Passiak -
Itunes is not up to date with these series, Revenge series 3 and The Americans 2 & 3, can anyone help were I can stream this to my Mac or ITV please
It is up to the content owner as to when, and if, specific content is available on itunes (or any outlet for that matter). Very often a network or production compnat willhave exclusive deals with streaming outlets for a period of time before a seaon of a series is available elsewhere.
I can't speak to most of the shows you reference, but in the case of The Americans, there has only been one season so far. Season two isn't schedule for broadcast until February of next year. -
Hi friend,
i have issue regarding mandatory self life field (SELD/BBD and Date of manufactor)in migo for Batch Tab for particular Material start with '1' Series and material type.
i want to make mandatory above field during GR from migo..any one let me know exit or badi for that to full fill this goal..
Regard's,
shaikh Khalid.Hi Shaikh
First of all Thread is not closed seconldy as a good practice if you have resolved your issue kindly document it here so that it may help someone in future
Nabheet -
I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me
Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
-Kevin P.
Message Edited by Kevin Price on 12-01-2006 02:42 PM
Attachments:
Binning example.vi 51 KB
Binning example.png 12 KB -
Simultaneous analog and digital waveform read with PXIe-6361 and BNC2120 ?
Hi there,
I am trying to collect both analog and digital signals from a PXIe-6361 linked to a BNC2120, using the attached VI. I am running Labview 2011 64bit. This is the first time I am working with digital input. On the 2120 board, I have the digital input BNC cable connected to User Input 1 and wire between the screw terminal of UserInput 1 and the P0.1 (Digtial I/O) screw terminal.
I have two questions related to this:
1) When I try to run the VI in its current state, I get the following error:
Error -89137 occurred at DAQmx Start Task.vi:3
Possible reason(s): Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
Property: RefClk.Src
Source Device: PXI1Slot2
Source Terminal: PXIe_Clk100
Required Resources in Use by
Task Name: _unnamedTask<6>
Source Device: PXI1Slot2
Source Terminal: None
Destination Device: PXI1Slot2
Destination Terminal: RefClockInternal
Can anyone point me in the right direction for troubleshooting this?
2) I would like to combine my regular waveforms and the digital waveform into one array which would then be written to file. I can't figure out how to combine the two different waveform types...can anyone give me a hint on this?
Thanks for your help,
Claire.
Attachments:
Export Waveforms To Spreadsheet File (1D)_wo extra line.vi 33 KB
Multi-Device Synch-Analog Input-Finite Acq-Analog Start_Claire_wDigitalin.vi 105 KBHi ClaireJ,
Sounds like a reference clock conflict. This KnowledgeBase (KB) talks about this error when using simultaneous sampling. Also, might want to check the device routes in Measurement and Automation Explorer (MAX) as discussed here. Finally, if you are routing your PFI line over a RTSI connection, this error can occur. This KB discusses it.
As to your second question, this post should help.
Bill E. | Applications Engineer | National Instruments -
Continuing font encoding and tag issues with snow leopard and CS4oI
I am looking for help with a font handling issue with snow leopard and cs4 Indesign. Despite numerous calls and hours on the phone neither Apple nor Adobe has been helpful. I have had this issue open with Adobe since oct 5 but they remain totally unresponsive to date. I need to be able to use Type 1 fonts and do the following , export a pdf from Indesign with the following attributes: 1) xml tags for stories and objects. 2) have the fonts encoded as ansi and embedded.
Some additional information - exporting to ps is not an option as it destroys the xml tags. and doesn't guarantee that the fonts won't become CID or some other odd encoding.
As it stands now,
Leopard (10.5.8) and CS3 creates ansi encoded fonts with xml tags.
Leopard (10.5.8) and CS4 creates ansi encoded fonts with xml tags.
Snow leopard and CS3 creates ansi encoded fonts and xml tags
Snow leopard and CS4 creates custom subsetted fonts and some xml tags.
If any one has any advice on how to force specific font encodings from CS4 pdf exports so that i can preserve the tags and get the correct fonts I would be grateful.The font encoding is not a function of the OS version, but rather of how a font is internally encoded and the content you are representing with the font.
If you are seeing a difference between MacOS 10.5 and 10.6 with the same Adobe software, it probably has something to do with use of a system font that is somehow different from one version of the OS to another. InDesign does not use any of the OS' font handling software.
Assuming that the fonts are embedded, subset or not, what is your issue with whether a font is ANSI-encoded, custom-encoded, or CID-encoded? It should make no difference for purposes of workflow beyond InDesign for software that adheres to the PDF specification (including all versions of PDF from 1.3 and up to 1.7 plus ISO 32000-1 PDF and all versions of PDF/X and PDF/A).
Neither InDesign or any other Adobe application provides user choices for the encoding since it shouldn't make a difference. The encodings chosen by Adobe's core technology components are for a combination of optimization and to support proper text search, copy, etc.
- Dov -
Revision: 7661
Author: [email protected]
Date: 2009-06-08 17:50:12 -0700 (Mon, 08 Jun 2009)
Log Message:
Change from charset=iso-8859-1" to charset=utf-8" and save file with utf-8 encoding.
QA Notes:
Doc Notes:
Bugs: SDK-21636
Reviewers: Corey
Ticket Links:
http://bugs.adobe.com/jira/browse/iso-8859
http://bugs.adobe.com/jira/browse/utf-8
http://bugs.adobe.com/jira/browse/utf-8
http://bugs.adobe.com/jira/browse/SDK-21636
Modified Paths:
flex/sdk/trunk/templates/swfobject/index.template.htmlsame problem here with wl8.1
have you sold it and if yes, how?
thanks -
Acquire encoder position with Motion and DAQ
Hi,
I am trying to acquire an encoder position with Motion. It seems impossible to set the frequency of the acquisition with Motion and I must poll for the position in a do-while loop.
I have read in a lot of threads that one can use RTSI lines to retrieve encoder position with a DAQ Board though it is acquired with a Motion board. But there are no examples at all about this.
To sum up, I need to send Encoder Phase A to RTSI0, Encoder PhaseB to RTSI1 (which I already do), retrieve info with a DAQ device and then calculate rpm.
Christophe
PS: please don't answer with measure angular position.vi or explain me in what this Vi can help meHi Christophe,
I'm not sure I understood well what you need. You have the angular position and you need to know the timing, am I right? Can you use an other counter on your card to get the period (or the frequency) of your signal? From that, I think you should be able to calculate the velocity.
I hope this helps,
Charlotte F. | CLAD
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> "Du 11 octobre au 17 novembre, 2 sessions en parallèle : bien démarrer - approfondir vos connais... -
i can't seems to print using my macbook air with hp series printers. When I plug the printer via usb to my system, the printer was recognized and installed. But when i send a doc for printing, it doesn't print all . Any help?
Greetings,
Here's a direct link to the drivers you need, they should work perfectly for your situation.
Maybe you are looking for
-
Videos, no matter type of player, Flash or otherwise, do not display in Version 12
No matter what the source, or the type of player a video plays in, since I installed FireFox v12.0, no videos show. The screen goes black, that's it. RealPlayer doesn't work, etc. Help please!
-
How can i stop iphot delete my flickr photo?
what design function? can i disable sync to delete my flickr photo?
-
Static ip address 97.82.184.234
Hey, i need help with a static ip address setup on a linksys E1200 wireless router. i want to use the ip address 97.82.184.234. i want to use this address because it was the default address of my minecraft server, but, however, has changed after the
-
Sample BSP rpogram to output xml file
Hello All, Is there a sample BSP program to output an XML file,if the the BSP url is executed in the browser an xml file should be ouputted. regards kaushik
-
Remove Carriage Return between elements
Hi All, Below is my xml document: <Message> <AccNo>100</AccNo> </Message> I want to convert the above document as: <Message><AccNo>100</AccNo></Message> I mean, without carriage return in between elements. The above two documents are generaring a dif