Jump to content

DAQmx Sample Quantity.Sample Per Channel Property Node


jgcode

Recommended Posts

[cross posted to ni.com]

Problem:

LabVIEW seems to be overriding a value of 1 to a value of 2 for the Sample Quantity.Sample Per Channel DAQmx Property Node for a Continuous acquisition mode.

Information:

I have a task set up in MAX (version 4.4.0f1).

When I set Samples To Read to 1 the task runs correctly in MAX.

When I read the task in LabVIEW (8.5) the Sample Quantity.Sample Per Channel property node (which is the Samples to Read) is coerced to a value of 2.

If the value is greater or equal to 2 in MAX then the Sample Quantity.Sample Per Channel property node in LabVIEW returns the correct value.

I get the same problem with a real device or a simulated device.

Question:

Is this desired behavior?

Side note:

If N Samples (finite buffer acquisition) is selected Samples To Read cannot be 1 as it causes an error 200077 - it must greater or equal to 2.

But no error occurs when the task is saved as Continuous (continuous buffer acquisition). I don't know if this is related. The error generated is:

Error -200077 occurred at DAQ Assistant

Possible Reason(s):

Measurements: Requested value is not a supported value for this property.

Property: SampQuant.SampPerChan

You Have Requested: 1

Valid Values Begin with: 2

Valid Values End with: 8589934590

Device: cDAQ3

Not Expected

post-10325-1235031615.png?width=400

Expected

post-10325-1235031508.png?width=400

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.