10-07-2005 03:09 PM
Hi
First of all I’m new to labview, so excuse me if I’m not putting this right, but I’m trying to explained as much I can.
I build a K8055 board. Basically its some kind of I/O board that can be connected to the PC through a USB port. The board is provided with VB demo application and a DLL file that can be called to communicate with the board.
I started creating VI to run the board using CALL LIBRARY FUNCTION so it can read/write to the board. So far I managed to initial the connection to the board, read the analogue inputs and write to the digital outputs. The problem is that the VI takes a long time to execute the functions while it’s executed instantly in VB application.
Any information would help me to build this application right would be appreciated
10-07-2005 03:38 PM
10-07-2005 04:08 PM
Yah it made a difference, but there's still some delay compare it to VB application.
Can you please explain briefly the change you made.
Thanks
10-07-2005 04:33 PM
Marwan a écrit: ...Can you please explain briefly the change you made.
To avoid writting the card at each iteration, I used an event loop. So that the card adress, the channel number... are written only if there is a change. You should move the write adress out of the loop to write it at each new run.
I used the timeout event to cadence the readings. You can decrease the value of the timeout to speed up the acquisition