Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote operation of DAQ board using examples gives a 10403 error.

The remote operation works fine according to the test panel. When I run the supplied examples I get an error 10403 "The specified device does not support the requested action (the driver recognizes the device, but the action is inappropiate for the device.)" When I click the debug button it highlights "cwai1.Start"
0 Kudos
Message 1 of 7
(3,615 Views)
Are you calling CWAI1.Configure first? If not, you need to be. It may also be that there are some rates or settings in your setup that are not supported by the board you are using. What are you DAQ settings (rate, range, triggering, etc.) and what board are you using?

Best Regards,

Chris Matthews
National Instruments
Message 2 of 7
(3,615 Views)
Yes I am doing that. The answer I got from a field salesman is the remote devices are not supported using 3rd party software such as Visual Basic.
0 Kudos
Message 3 of 7
(3,615 Views)
That's not true. RDA is supported at the driver level and available in all compilers. I think I figured out what you are running into though. I'm pretty sure DAQ events are not supported over remote access since you can't throw an interrupt over ethernet. That would mean asynchronous DAQ with events would not be supported and you would need to do synchronous DAQ. Set the AcquiredDataEnabled to False for the ActiveX control, and call AcquireData instead of Start. If you have to do asynchronous acquisition, you will have to poll and not use events for remote access.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 4 of 7
(3,615 Views)
You are correct. I changed the code as you specified and it work. However, I won't be programming it this way because I do not want to keep running the code in a continuous loop.

Thank you for your help.
0 Kudos
Message 6 of 7
(3,615 Views)
I definately understand not wanting to run in a loop. If it helps, you could use a Visual Basic timer and run at a regular interval on timer events.

Chris
0 Kudos
Message 7 of 7
(3,615 Views)
Hello;

That error happens when you are trying to perform a DAQ task that is not supported by your specific hardware.
The best way to verify that is to cross check the task you are trying to implement with the board users manual.
Hope this helps.
Filipe
0 Kudos
Message 5 of 7
(3,615 Views)