08-26-2005 10:44 AM
08-29-2005 10:26 AM
08-29-2005 10:42 AM
Hi Lorne,
Thanks for the VI, but I actually was looking for a VB6 example.
Max
08-29-2005 11:13 AM
08-31-2005 10:14 AM
Hi Lorne,
I should have posted a little more information at first, so I apologize. I assumed that since I was posting in the Measurement Studio for VB6 forum, it would be assumed that I was using the component works tools.
Details: PCI-6013, Visual Basic 6, Measurement Studio 6, niDAQ 6.9.3
I can and will update my niDAQ driver, however the function calls you're referring to are part of the Measurement Studio cwDAQTools object. So, although I haven't tried the direct function calls in niDAQ 7.5, (mostly because I'm not familiar with the direct function calls), I did try the cwGetDeviceName and the cwGetDeviceSerial using the cwDAQTools object. These generate the Run-time error '10401' (specified device is not a National Instruments product, ).
Can you tell me if this is related to my niDAQ driver, or is there any other way that I can check for the presence of a DAQ card before calling for the code to perform operations with the card.
Basically, what I'm trying to do, is when the software starts, I want it to detect if a DAQ card is present (automatically). If the card isn't present, then the software will go into a simulation mode. If the software is present then the card needs to active a DIO pin immediately. If I was able to trap for the error that is generated when the card attempts to set the DIO pin, and the card isn't present, then I could switch to Sim mode. This would be another way to skin the cat, but I'm not aware of anyway to do this either.
Help would be greatly appreciated.
Max
09-01-2005 04:49 PM
09-01-2005 10:04 PM
Hi Lorne,
There's not really anything to send you because I've not managed to get anything to work. From the Form Load procedure, I would normally be setting a port pin high: (CWDIO.singlewrite 1) as an example. When I do this, and no card is present I get the expected error. I would like to trap for that error immediately and set a flag. Lets say SimMode = True.
I'm not sure that using NI-DAQmx 7.5 is a possibility with this card. I tried installing the driver, but it didn't list the PCI-6013. It may have been that I didn't install the Traditional DAQ driver properly, but I know that the PCI-6013 is not supported with the mx. So I'm not even sure that the mx function calls would be an option for me.
If you can show, or tell me how to intercept that I error, I'd greatly appreciate it.
Regards,
Max
09-02-2005 08:24 PM
09-20-2005 10:17 AM
09-22-2005 09:39 AM