07-19-2006 06:20 AM
07-20-2006 03:21 AM
Hi,
I was just wondering the reason for going with CIN's?
DLL's are easier to build, more understood, and allow your "driver" to be called from different languages too in the future.
Could you try building a straight DLL and calling it?
If you follow the instructions in that link you posted and generate exactly the same code, does that work?
I'll give it a try here (with CINs), but it may take me a little while to prove it works, and then if it doesn't work, I'll try to find the workaround.
Thanks
Sacha Emery
National Instruments (UK)
07-20-2006 08:48 AM - edited 07-20-2006 08:48 AM
Hi,
I've run through those instructions and made one that works ok in both debug and release modes (in release mode I had to set the C/C++>>CodeGeneration>>Basic Runtime Checks to Default instead of Both (/RTC1, equiv. to /RTCsu) because it conflicted with the 02 option that's used when creating the release mode version.
Did you do the extern "C" around your code? If not, then you'll get name mangling on the exports to the .lsb "dll" that's created.
Can you follow those instructions on the link through again explicitely and check that you can build the example code first?
Thanks
Sacha Emery
National Instruments (UK)
Message Edited by SachaE on 07-20-2006 02:49 PM
07-25-2006 09:37 AM
07-25-2006 10:52 AM
07-26-2006 08:27 AM
Hi,
can you post the sdk files and instructions and your cin project back here so I can try to build it?
There's no guarantees that the SDK developed by Matrox for LV 7 will work with LV 8 - you need to take that up with them to verify that they've tried it out since differences in the timing of their functions running in parallel with other parts you may decide to use could be different under LabVIEW 8.0 as it has had speed improvements etc over previous versions.
The SDK they've generated, I'm confused as to what you're trying to acheive now?
Are you saying they've given you the source code for the .lsb files they've provided for version 7 and you're trying to remoake them in LV 8.0?
Usually if someone provides an SDK for a particular piece of hardware they provide the vi's with it too.
If you're re-making them, then I'd recommend making them as DLL's and re-doing the vi's as necessary since that will allow you an easier build process.
Thanks
Sacha Emery
National Instruments (UK)
07-26-2006 08:32 AM
Hi,
just to avoid confusion, I mis-typed Matrix as Matrox. I know it's Matrix Vision.
Thanks
Sacha Emery
National Instruments (UK)
07-26-2006 09:39 AM
07-27-2006 05:00 AM
07-27-2006 09:41 AM
Hi,
you said : "At the moment, all I want to do is to make use of their VIs (without any modifications). "
Have you tried just opening the vi's as they were when you installed the sdk and using them?
I can open them in 8.0 fine (comes up with a "grabber.dll missing, but that's just because I don't have the main driver installed), so I don't have to make a .lsb for them, it's already done and included and loads fine direct from the install.
Thanks
Sacha Emery
National Instruments (UK)