Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with using the singlewrite function (in the CWDIO control)

Hi,

I'm using an old nidaq card (PCI 1200) with nidaq 6.9 (the card is not supported after this version).
I'm using a CWDIO control to send regularly orders to an other card (an order every 50 ms for example) using these lines of code :

CWDIO1.Ports.Item(1).SingleWrite (128)
CWDIO1.Ports.Item(1).SingleWrite (0)

The problem is that I have blanks in the orders sent. During 2 or 3 seconds, the orders are sent, no error or warning are made by the code, but the orders don't appear at the output of the card. After this blank period, the orders reappear (as if they were queued somewhere) and during 2-3 seconds the orders are well sent in real-time and a new blank period begins again ...

Where am I wrong in what I made ? I tried using CWDO control but I had some problems too (the Progress event doesn't raise)...

Antoine
0 Kudos
Message 1 of 3
(5,999 Views)
Hello Antoine,

Do you see the same behavior when you are testing the device from the test panels of MAX ?
Do you have also try to test the examples for VB without Component Works "C:\Program Files\National Instruments\NI-DAQ\Examples\VBasic\Do" ?
Do you have also the same behavior running the Measurement Studio examples "C:\Program Files\National Instruments\MeasurementStudio\VB\Samples\DAQ\Digital\Digital Output" ?

Regards.
Matthieu Gourssies
National Instruments France
0 Kudos
Message 2 of 3
(5,964 Views)
Hi,

Thanks for the interest in my problem.
We found out last friday that the problem was not in the nidaq card as we firstly thought but in the home made card plugged on it. I should have put a reply on my post to stop it. You can remove this post from your forum.

Thanks

Antoine MAILLARD
0 Kudos
Message 3 of 3
(5,958 Views)