Hi There,
I recently got a PCI 6533 DIO card to interface with an FPGA board
which timestamps TTL pulses coming in. I have some old example code
someone sent me that was written in VB6 and makes straight driver calls
in order to get the data off the FPGA board. I'm looking to migrate
this code to VB.NET and/or C#.NET if possible. The application that I
have to write eventually will be distributed among two computers that
will have to talk to one another. I have some experience doing that in
.NET and it was pretty easy. Doing it in VB6 I'd be starting from
scratch to try and figure out how to do it. Not to mention the added
benefit that I could also write a web program to allow you to view the
experiment over the web as well while it's going on. Anyhow, if I'm
totally off the mark and better off sticking in VB6 let me know.
Otherwise, what I'm looking for is a good reference to help me migrate
the code over. There's really only a couple of driver calls in the old
code so it shouldn't be that hard. Unfortunately, the 6533 card doesn't
support DAQmx, I went through a couple of DAQmx examples in .NET and
they were great, too bad I can't use the object oriented approach to
access the 6533 card. So I need to know how to set up the activeX
controls in both VB.NET and C#.NET (ie. how/what things am I including,
what do I have to declare, all the overhead, etc) and then what
equivalent activeX function calls am I making to accomplish the same
thing. I've included the old VB code. Like I said, it's only a couple
of calls to the driver so if you can show me how to migrate it quickly
that would be great. Otherwise, if you could direct me to some info on
how to do this that would also be great. I've also been looking for
some documentation on how to use the NI activeX controls in .NET. I
don't have Measurement Studio, do I need that to get the documentation,
or can I find it elsewhere? By documentation I mean information on how
to set up the variables and references I needed, and documenation on
the different activeX controls I can use and their methods.
Thanks for any help,
Chris