LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet

> Related links

Visit our LabVIEW Wiki Hardware Portal


 
Reply to this topic Start new topic
> timing in ni usb modules (6009 and 6501)
kristos_b
post Jul 3 2008, 09:17 AM
Post #1


2 more posts to go!


Member
Posts: 8
Joined: 6-February 07
From: Ireland
Member No.: 7701
Using LabVIEW Since:2000
LV:8.20 ,. ,.
Ireland Poland Nothing Selected


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:

Attached Image



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

Attached Image



Than I push the trigger 4 clocks further:


Attached Image



And result is exactly this same as before.

Attached Image




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


Attached Image



And it works fine:

Attached Image





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.

Attached Image




Thanks for help,




Krystian

This post has been edited by kristos_b: Jul 3 2008, 09:36 AM


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Jul 3 2008, 09:17 AM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
Ton
post Jul 7 2008, 06:23 PM
Post #2


CCT It
*****

Premium Member
Posts: 1271
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


Hi Krystian,

Somehow I couldn't see the problem, could you make it a little bit more clear?

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
kristos_b
post Jul 7 2008, 07:00 PM
Post #3


2 more posts to go!


Member
Posts: 8
Joined: 6-February 07
From: Ireland
Member No.: 7701
Using LabVIEW Since:2000
LV:8.20 ,. ,.
Ireland Poland Nothing Selected


QUOTE (Ton @ Jul 7 2008, 07:23 PM) *
Hi Krystian,

Somehow I couldn't see the problem, could you make it a little bit more clear?

Ton


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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ton
post Jul 7 2008, 07:06 PM
Post #4


CCT It
*****

Premium Member
Posts: 1271
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


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 wink.gif

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
kristos_b
post Jul 7 2008, 07:25 PM
Post #5


2 more posts to go!


Member
Posts: 8
Joined: 6-February 07
From: Ireland
Member No.: 7701
Using LabVIEW Since:2000
LV:8.20 ,. ,.
Ireland Poland Nothing Selected


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 wink.gif

Ton


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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ton
post Jul 7 2008, 07:42 PM
Post #6


CCT It
*****

Premium Member
Posts: 1271
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (kristos_b @ Jul 7 2008, 09:25 PM) *
I guess you can not expect much from software timing but still this looks pretty weird. Specially that the rest looks quite regular.

I believe that digital data uses RLE encoding (if nothing changes nothing is stored), maybe you see a side effect of that.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 Bryan 1392 8th June 2004 - 05:53 PM
Last post by: Bryan
No New Posts   7 DAQCHINA 5050 2nd February 2005 - 07:54 PM
Last post by: Irene_he
No New Posts   0 regisphilbin 1232 18th May 2005 - 06:21 PM
Last post by: regisphilbin
No New Posts   2 pushD 1073 25th June 2005 - 04:27 PM
Last post by: i2dx


Reply to this topicStart new topic

 




Time is now: 7th September 2008 - 06:54 PM