Click here to Skip to main content
15,915,019 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Proble with VB6 and SQL server Pin
steff kamush5-Feb-04 21:39
steff kamush5-Feb-04 21:39 
GeneralEditing subitems in Listview in VB.NET Pin
Member 8639495-Feb-04 18:35
Member 8639495-Feb-04 18:35 
GeneralRe: Editing subitems in Listview in VB.NET Pin
John Kuhn5-Feb-04 20:12
John Kuhn5-Feb-04 20:12 
GeneralHelp! clock generate Pin
jfk_lili5-Feb-04 15:46
jfk_lili5-Feb-04 15:46 
GeneralRe: Help! clock generate Pin
Roger Wright5-Feb-04 18:09
professionalRoger Wright5-Feb-04 18:09 
GeneralRe: Help! clock generate Pin
Dave Kreskowiak6-Feb-04 2:19
mveDave Kreskowiak6-Feb-04 2:19 
GeneralRe: Help! clock generate Pin
jfk_lili8-Feb-04 14:33
jfk_lili8-Feb-04 14:33 
GeneralRe: Help! clock generate Pin
Dave Kreskowiak9-Feb-04 4:50
mveDave Kreskowiak9-Feb-04 4:50 
I think you still have a performance problem. In order to get a 400kHz pulse, you would have to generate an Out signal every 0.0000025 seconds (1/400000). According to this little timer in C:
#include <windows.h>
#include <stdio.h>
#include <conio.h>

int main()
{
	BOOL			rc;
	LARGE_INTEGER	liCountPerSecond, liStartTime, liEndTime, liCounts;
	double			dSeconds;

	rc = QueryPerformanceFrequency( &liCountPerSecond );
	printf( "Counts per second: %I64i\n", liCountPerSecond );
	
	rc = QueryPerformanceCounter( &liStartTime );
        // We are timing this assignment statement and the call to
        // QueryPerformanceCounter after it.
	rc = true;
	rc = QueryPerformanceCounter( &liEndTime );
        // End Timed Section

	printf( "Start Counter: %I64i\n", liStartTime );
	printf( "End Counter  : %I64i\n", liEndTime );

	liCounts.QuadPart = liEndTime.QuadPart - liStartTime.QuadPart;
	printf( "Counts    : %I64i\n", liCounts );

	dSeconds = (double)liCounts.QuadPart / (double)liCountPerSecond.QuadPart;
	printf( "Time in Seconds : %15.10f seconds\n", dSeconds );

	getch();
}


My Athlon 2600+ takes .0000013968 seconds to execute a boolean assignment statement and make the call to QueryPerformanceCounter after it. Keep in mind that 'In' and 'Out' port statements are notoriously slow to execute!

RageInTheMachine9532
GeneralRe: Help! clock generate Pin
jfk_lili9-Feb-04 22:15
jfk_lili9-Feb-04 22:15 
GeneralRe: Help! clock generate Pin
Dave Kreskowiak10-Feb-04 5:35
mveDave Kreskowiak10-Feb-04 5:35 
GeneralRe: Help! clock generate Pin
jfk_lili10-Feb-04 22:39
jfk_lili10-Feb-04 22:39 
GeneralProblem related to Cryptography API Pin
peterlck5-Feb-04 15:25
peterlck5-Feb-04 15:25 
GeneralRe: Problem related to Cryptography API Pin
Dave Kreskowiak6-Feb-04 2:26
mveDave Kreskowiak6-Feb-04 2:26 
GeneralRe: Problem related to Cryptography API Pin
Mike Dimmick6-Feb-04 3:29
Mike Dimmick6-Feb-04 3:29 
GeneralUsing MSCHART Pin
Zhaker5-Feb-04 15:14
Zhaker5-Feb-04 15:14 
GeneralRe: Using MSCHART Pin
Dave Kreskowiak6-Feb-04 2:28
mveDave Kreskowiak6-Feb-04 2:28 
GeneralRe: Using MSCHART Pin
Zhaker8-Feb-04 11:43
Zhaker8-Feb-04 11:43 
GeneralExcel OM Library - HELP I'm down! Pin
nvmoss5-Feb-04 12:01
nvmoss5-Feb-04 12:01 
GeneralIs there a customer control that can handle text and pictures Pin
Namboy825-Feb-04 6:32
Namboy825-Feb-04 6:32 
GeneralRe: Is there a customer control that can handle text and pictures Pin
John Kuhn5-Feb-04 10:33
John Kuhn5-Feb-04 10:33 
GeneralRe: Is there a customer control that can handle text and pictures Pin
Dave Kreskowiak5-Feb-04 11:03
mveDave Kreskowiak5-Feb-04 11:03 
GeneralHELP!!!!! on Forms Pin
Namboy825-Feb-04 6:26
Namboy825-Feb-04 6:26 
GeneralRe: HELP!!!!! on Forms Pin
John Kuhn5-Feb-04 10:16
John Kuhn5-Feb-04 10:16 
GeneralCOM Interop Attributes Pin
Jim Taylor5-Feb-04 5:45
Jim Taylor5-Feb-04 5:45 
GeneralRe: COM Interop Attributes Pin
Mike Dimmick6-Feb-04 3:34
Mike Dimmick6-Feb-04 3:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.