LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

k8055

Hi Joseph,

I've taken a look at the origional vi and i come to the conclusion that it's not very well written (and yours too). The reason that your guetting 100% CPU usage is that you have a loop going as fast as it possibly can without stopping for a breather. This means that it is going to steal all the CPU resourses that it can. Hence 100% usage.

The reason that your vi doesn't work (try using the highlight execution tool and watch a couple of iterations of your program to follow what is happening) is that you have two seperate loops that are both making calls to the same dll. They are going to have a race to use it and which ever one gets their first wins, hence only seeing one channel do stuff. I have rewritten what you did to call the first card, write values for a certain amount of time (500 ms) and then turn the digital channels off. It then calls the second card sets the channels and then waits. I hope it works (i don't have a K8055 to try it out with).

Phil
0 Kudos
Message 11 of 42
(4,401 Views)
forgot the vi Smiley Surprised
Message 12 of 42
(4,399 Views)
Hi Phil,
the program is working gr8Smiley Happy.I wanted two sets of dig outputs,one for each card,so i just did some modifications and its working perfect now.You were right about the timer and the delay has really helped.I have used the DLL that was given with the first program,cus the other 2 dont seem to be working with labview.The website itself mentions that there is a a bug regarding the toggle switch for this DLL,so guess thats why the digital outputs dont work.Out of the 2 cards only one set of digital inputs work,so guess thats a problem with the DLL called by labview.It was a gr8 help,and thanks a lot for ur immediate replies.
 
Cheers fer ta VIsSmiley Happy
 
Regards
 
Joseph
0 Kudos
Message 13 of 42
(4,392 Views)
Hi, I think i'm after exactly what you have made ( a labview program that can control the digital outputs on two k8055 boards) I can't open the sample posted above as i only have labview 8. It would really help me out if you could post a version saved in a earlier labview format.


PS I a total nOOb with this stuff so i'm not very adept at it. please be kind

Regards

The Dwarfer
0 Kudos
Message 14 of 42
(4,380 Views)
Hi,

Here is the vi saved as version 8.

all the best.

BTW - the vi's that i previously posted should all be v7.1

Phil
0 Kudos
Message 15 of 42
(4,363 Views)
Cheers for that one it opened fine but unfortunately doesn't work for me at all. no response from either board.

what i need is a vi that controls the digital outputs of two boards simultaniously.

if anyone has anything that could help please could you post it.


Cheers


The Dwarfer
0 Kudos
Message 16 of 42
(4,352 Views)
Hi Dwarfer,

If you read the whole post you might find some help. In particular try this:


Hi Joseph,

I guess that you need to modify their program to get it to interface with the different cards. Try plugging in all the cards and then change the card number (with the vi stopped). Does that work? Try using one of the subvi's that i sent to you called K8055 Open Device.vi. Plug in all the cards. Select the first device address and run it. What number does it return. Hit ctrl-alt-del and bring up the windows task manager. Is there a program called K8055E0.exe (or K8055E1.exe if address 1 etc). Try and open all the cards. Let me know if that works.

Phil

Does the card work with the windows program that came with the K8055?

Phil

0 Kudos
Message 17 of 42
(4,351 Views)
yeah it works fine and it works with the k8055.vi that i found in the download section, i stripped it down to just the digi outputs and i can control 1 card perfectly with it all i need is a vi that can control 2 at once

i've attached my stripped down version of the k8055 vi that works for me

thanks for taking the time to help a nOOb


Cheers



The Dwarfer



0 Kudos
Message 18 of 42
(4,344 Views)
Hi,

Try this.

Phil
0 Kudos
Message 19 of 42
(4,334 Views)
Still no luck with this i tried just duplicating the whole block diagram and choosing a different card address for each but the second seems to interfere with the first. i don't really know how the program works so i can't explain whats happening.


the only way i can control two boards is to run two instances of my single card program at the same time
0 Kudos
Message 20 of 42
(4,328 Views)