09-30-2011 04:03 PM
Hello,
Is there any example programs in Labwindows 2010 to communicate with the NI CDAQ-9188.
I also have the modules NI 9213, NI 9217, NI 9205 and NI 9403 in the CDAQ-9188.
Any help finding example would be appreciated.
Bobby
10-03-2011 02:21 PM - edited 10-03-2011 02:22 PM
In LabWindows/CVI on the welcome page at the bottom there is a link to "Find Examples". In the example finder you might have to click the "Setup" button on the bottom right, then go to the software tab and check the LabWindows/CVI 2010 box, so that examples for LabWindows will show. You could also uncheck LabVIEW if you only want LabWindows examples.
Once that is checked you should navigate to "Hardware Input and Output" --> "DAQmx" --> "Analog Measurements" and there are examples for all different types of analog measurements. There is a column to the right that shows whether the example is for CVI or LabVIEW.
Regards,
Matt
10-19-2011 12:37 PM
Hello,
Thank you for the answer. I was able to make it work with the NI 9205. I will try the other modules later.
The problem I have is that every time either the computer or the NI CDAQ-9188 is turned Off and then Turned Back On,
I need to run the "Measurement & Automation Explorer". Goto to Netwrok Devices, Select NI CDAQ9188, and then
"RESERVE" or "UNRESERVE" the chassis.
Is there anyway that we can write the CVI program to do this automatically once the program starts?
Thanks
Bobby
10-20-2011 11:34 AM
Hi Bobby,
Yes, there is a way you can reserve the network device in Labwindows/CVI code. If you search the documentation for "DAQmxReserveNetworkDevice" that function will reserve the device whose name you pass to it.
Regards,
Matt M.
10-21-2011 06:59 PM
Hello Mat,
That is great. But I can not find any examples or documentation showing that. Would you Please
tell me where I can find it.
Thanks
Regards
Bobby
10-24-2011 08:52 AM - edited 10-24-2011 08:52 AM
Bobby,
If you goto Help --> Contents while in LabWindows, and then goto the search tab and search "DAQmxReserveNetworkDevice" the documentation page for that function will come up. It is relatively simple to use, here is an example.
This will reserve Dev1 on my system, which is a networked cDAQ module, and override any reservation already existing:
DAQmxReserveNetworkDevice( "Dev1", 1);
Regards,
Matt
10-24-2011 11:21 AM
Hello Matt,
Thanks. I got it and it works.
Bobby
11-10-2012 05:17 PM
Just a quick 2 cents on your network... make sure you are using ALL shielded or ALL un-shielded network cables...whatever your system (router/switch etc..) require. You should not have a mixture of the two... jm