08-11-2011 09:34 AM
I am using an Ethernet device, but there will only be one PC connecting to it. It is possible to reserve this device in software so I can eliminate that step for my clients.
Thanks.
08-12-2011 11:28 AM
Have you checked out the DAQmx Reserve Network Device.vi, under Measurement I/O -> DAQmx - Data Acquisition -> DAQmx Advanced -> System Setup? The detailed help on this VI says 'Adds a Network cDAQ device to the system and, if specified, attempts to reserve it.'
08-12-2011 11:30 AM
I'm using VB.NET. I'm assuming a function exists, however, since LabVIEW has something.
08-15-2011 12:52 PM
Greetings,
what language are you programming in? Visual Basic, C#, etc?
08-15-2011 01:07 PM
VB.NET
08-16-2011 01:13 PM
Oh, whoops, sorry about that. I misread what you'd originally said. I looked around in the object browser in Visual Studio 2010 and found a few methods that look like they're exactly what you're looking for.
NationalInstruments.DAQmx.DaqSystem.AddNetworkDevice()
Adds a Network cDAQ device to the system. This method does not attempt to reserve the device after the device is successfully added.
This can be followed up with
NationalInstruments.DAQmx.Device.ReserveNetworkDevice()
Reserves the Network DAQ device for the current host. Reservation is required to run NI-DAQmx tasks, and the device must be added in MAX before it can be reserved. This method does not override any existing reservations on the device.
Please take a look at these and let me know if you have any further questions.
Thanks,
James Duvall
Applications Engineer
National Instruments
07-09-2015 09:37 AM
Hey! I`m creating a c++ application and I have a simillar problem. I already included the NIDAQmx.h in the application, but after compile it says "DAQmxRese
++ application?
*Others functions, such as createTask,createDIchannel are working perfectly
07-09-2015 03:14 PM
I got it. I just added the function in the header and now the function is available. I`m sending the header in attatchement.