Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Cdaq 9139 touch panel

Hello.

I have a cdaq 9139 with 2 NI 9234 AI modules and 2 NI 9264 AO modules and also a TCP 2212 touch panel.

The cdaq running lv real time 14. 0 like the host computer who which has lv 2014 installed with RT 14 on Windows xp.

The cdaq connects directly to the host pc and is identified in MAX.

Now I want to do the following set up:

1. Add an application from the pc to the cdaq to run stand alone at startup (generation and acquiring signals).
2. The UI of the application will be controlled from the touch panel.
3. The set up has to run stand alone.

How Can I do that?

Thanks.
Boris
0 Kudos
Message 1 of 8
(3,234 Views)

Hi Boris,

 

You can certainly achieve setup you described above. Here is a general topology

-Create LabVIEW project

-Add your devices to the project (cDAQ and touchpanel)

- Write your real time application for cdaq 9139 which is interacting with host(we will treat touch panel as host)

Here is an article that talks about different communication methods between RT and Host

http://digital.ni.com/public.nsf/allkb/48D244EC86971D3986256BD4005CCC28

 

-  Based on the article above setup your host vi (touch panel VI)

- Once you have everything working on development machine, that is your real-time VI is able to talk to Host VI. Build start-up application for your controller and another application for touch panel.

Building and deploying stand-alone RT application:

http://zone.ni.com/reference/en-XX/help/370622J-01/lvrthowto/rt_building_rt_app/

Application deployment to touch panels

http://www.ni.com/white-paper/9850/en/

 

Now, all of the above steps will require some development time especially if you are new to this process. Everything is documented on ni.com and simple searching will get you everything you need. If you happen to get stuck with something then post on the forum.

 

 

Message 2 of 8
(3,206 Views)
Thanks I'll try to do this.

What had to be installed on the touch panel? Is a full version of LabVIEW required? I just can't see our add the TCP 2212 in my project tree...
0 Kudos
Message 3 of 8
(3,157 Views)

Boris,

 

Your touch panel should be already preinstalled with NI software. Generally, you would need to have LabVIEW Run-Time engine installed on your touch panel.  Essentially, touch panel is nothing else but another computer compacted in a small roughed form.

 

If you are using LabVIEW 2014 then you should be able to add TPC-2212 touch panel to your project.

Right Click on Project: Title >>Targets and Devices>>Specify a target or device by IP address>> Type in IP address of your touch panel and select your touch panel model under Touch Panel section.

0 Kudos
Message 4 of 8
(3,142 Views)
Thanks. LabVIEW remote development was missing in the touch panel . Now it connects.

I've created a RT application and deployed it to the cdaq to run at startup, but it seems that the application doesn't (because I see that the cpu usage on the cdaq is 0%) run even tough it works when I run it from the project Explorer.

How can I know if the app actually runs at startup? If it doesn't run, where can I see if there is an error or what is the reason for that?

Thanks
Boris
0 Kudos
Message 5 of 8
(2,997 Views)

Boris,

 

 

Look at your controller, you should have 4 LEDs there. One of them is User 1 LED and you have an ability to toggle it ON and OFF. You should be able to access it from your LabVIEW project via I/O node. 

 

Drop this I/O node in your code and toggle it ON/OFF. This will give you some visual and you'll know if your code is running. 

 

0 Kudos
Message 6 of 8
(2,978 Views)

Thanks Miro, actually i knew about the user LED. And as I suspected my startup aplication doesn't run on the cDAQ at start up (despite the fact that it was successfully deployed as startup application).

 

Is there any way to know what is the reason for that? is there any error log which I can see?

 

Thanks,

Boris

0 Kudos
Message 7 of 8
(2,969 Views)

Boris,

 

Here are some things you can do:

 

-Enable console out on your cRIO and connect a monitor to your controller. You should be able to see controller processes. 

 

http://digital.ni.com/public.nsf/allkb/354A5124E6A667988625701B004A77CD

 

or

 

- enable application debugging then debugg it remotly

 

http://digital.ni.com/public.nsf/allkb/8DA679805915DE40862572D5007B2F70

http://zone.ni.com/reference/en-XX/help/370622K-01/lvrthowto/rt_debugging_startup_app/

 

I hope this helps

Message 8 of 8
(2,945 Views)