LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LABWINDOWS 2010 PROGRAM FOR CDAQ-9188

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

0 Kudos
Message 1 of 8
(3,513 Views)

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

Applications Engineer
National Instruments
0 Kudos
Message 2 of 8
(3,501 Views)

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

0 Kudos
Message 3 of 8
(3,480 Views)

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.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 8
(3,471 Views)

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

 

0 Kudos
Message 5 of 8
(3,458 Views)

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

Applications Engineer
National Instruments
0 Kudos
Message 6 of 8
(3,449 Views)

Hello Matt,

 

Thanks. I got it and it works.

 

Bobby

0 Kudos
Message 7 of 8
(3,443 Views)

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

0 Kudos
Message 8 of 8
(3,334 Views)