05-27-2008 03:21 PM
Property | Value | |
---|---|---|
CI.AngEncoder.PulsesPerRev | 1024 | |
CI.AngEncoder.InitialAngle | 0 | |
CI.Encoder.ZIndexVal | 0 | |
CI.Encoder.ZIndexPhase | A High B High | |
CI.Encoder.ZIndexEnable | 1 | |
ChanType | Counter Input | |
CI.CustomScaleName |
Bottom encoder |
|
CI.MeasType | Position:Angular Encoder | |
CI.AngEncoder.Units | From Custom Scale | |
PhysicalChanName | Dev4/ctr0 | |
CI.Encoder.DecodingType | X4 |
Property | Value | |
---|---|---|
Lin.Slope | 0.045454545454499999 | |
Lin.YIntercept | 0 | |
PreScaledUnits | Degrees | |
ScaledUnits | Degrees | |
ScaleType | Linear |
Property | Value | |
---|---|---|
ProductType | PCI-6221 (37-pin) | |
DevSerialNum | 0x12225AD | |
ProductNum | 0x71BC | |
BusType | PCI | |
PCI.BusNum | 0x1 | |
PCI.DevNum | 0x2 |
Property | Value | |
---|---|---|
Name | CB-37FH/Dev4/0 |
05-28-2008 11:47 AM
Hi JFKAGroup,
I see that you have a couple of options for getting LabVIEW code to work in C:
1. If it’s heavily based off of an example program that we ship with the driver, start with that and just build on it. You can find examples here in the “Counter » Measure Position” location.
2. You could build a dll out of the VI and call it from C.
Hopefully that’ll be a good place to start. Post back with further questions.
05-28-2008 12:09 PM - edited 05-28-2008 12:09 PM
Property | Value | |
---|---|---|
Channels | MyAngularPositionTask/AngularPosition | |
SampQuant.SampMode | Continuous Samples | |
SampClk.ActiveEdge | Rising | |
SampQuant.SampPerChan | 100 | |
SampClk.Rate | 1000 | |
SampTimingType | Sample Clock | |
SampClk.Src | PFI0 | |
Channel | Property | Value |
AngularPosition | ||
CI.AngEncoder.PulsesPerRev | 24 | |
CI.AngEncoder.InitialAngle | 0 | |
CI.Encoder.ZIndexVal | 0 | |
CI.Encoder.ZIndexPhase | A High B High | |
CI.Encoder.ZIndexEnable | 0 | |
ChanType | Counter Input | |
CI.MeasType | Position:Angular Encoder | |
CI.AngEncoder.Units | Degrees | |
PhysicalChanName | Dev4/ctr0 | |
CI.Encoder.DecodingType | X4 |
05-29-2008 08:59 AM
Hi JFKAGroup,
I’m not sure if you’re getting that
error due to any Borland interaction or not. There are a few KBs that talk about support for
Borland/Delphi. I’d recommend checking those out as you mentioned using
Borland.
Whenever an issue arises from a program, I strongly recommend you try the NI shipping examples as a starting place to eliminate any incorrect uses of functions, etc. Please navigate to the folder shown in this KB. I recommend the example in the Counter » Measure Position folder called “Angular Position-Buff Cont”.
Please post the results of running that example. Once that is working, then you can build upon it. I hope that helps!
Hopefully that’ll be a good place to start. Post back with further questions.
05-29-2008 01:36 PM
05-30-2008 11:25 AM
Hi JFKAGroup,
It sounds like you might be using the encoder signal itself as the sample clock, rather than an external signal. For buffered acquisitions, an external sample clock is required. The acquisition frequency you may be setting could be just for buffer allocation purposes. Try using an external clock.
I’d really like for you to get more help, but baseline results are needed to know how to approach the situation. Please run the attached code and inform the community of the results.
Hopefully that’ll be a good place to start. Post back with further questions.