Jump to content

timing in ni usb modules (6009 and 6501)


Recommended Posts

Hi Lads,

I have noticed something strange while developing some code for ni usb6009 (this same behavior on 6501). I want to load some digital patterns using digital i/o's. I dont really mind that samples are flushed out quite irregular (software timing) but there is one condition for which this module acts quite weird. It seems that when samples on any line are not changing their states, they are either ignored or flushed very fast (I dont know which is true). I hope example below will make it clearer.

I trigger the scope with P0.4->channel 1 on the scope.

This is what I am sending:

post-7701-1215077231.png?width=400

This is what I am getting on the scope (1->P0.4, 2->P0.3, 3->P0.2, 4->P0.1)

post-7701-1215077241.png?width=400

Than I push the trigger 4 clocks further:

post-7701-1215077252.png?width=400

And result is exactly this same as before.

post-7701-1215077562.png?width=400

Here I put trigger sooner when something is happening on the lines

post-7701-1215077269.png?width=400

And it works fine:

post-7701-1215077349.png?width=400

Did anybody came across problem like this?

Below is the code I am using to send the waveform. I have tried to replace waveform with 2d Boolean and send each bit in separate 'for loop' iteration but it didn't help.

post-7701-1215077463.png?width=400

Thanks for help,

Krystian

Link to comment

QUOTE (kristos_b @ Jul 7 2008, 09:00 PM)

Simple case is to write to one output line pattern i.e. 010101011111111111111111111010101 and on the scope you will see 010101011010101.

But I don't see that in the code/screenshots, maybe you should widen the scope frame?

Could you specify which code/image you mean?

In het second set I count 9 '1' on p0.2 while p0.3 is high, this is perfectly reflected by channel 2 and 3 on the scope image.

Wait, I see on the first set that the dip on channel 1 (p0.4) is too early.

But this is all with software timing?

I never trust those ;)

Ton

Link to comment

QUOTE (Ton @ Jul 7 2008, 08:06 PM)

But I don't see that in the code/screenshots, maybe you should widen the scope frame?

Could you specify which code/image you mean?

In het second set I count 9 '1' on p0.2 while p0.3 is high, this is perfectly reflected by channel 2 and 3 on the scope image.

Wait, I see on the first set that the dip on channel 1 (p0.4) is too early.

But this is all with software timing?

I never trust those ;)

Ton

I guess you can not expect much from software timing but still this looks pretty weird. Specially that the rest looks quite regular.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.