LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Developer PC - TPC2212 Connection

I'm sorry, I fell asleep with my laptop on my lap ...

 

The Touch Panel program is wrong -- you put all of the Event processing in the Exit Event, so nothing happens until you Exit.  You need an Input Flowrate Value Change Event, where you read Input Flowrate and write to the Shared Variable, a Tank Valve Event, and (probably) a TimeOut Event, with the Time Out being, say, 100 (msec), so you periodically read the Tank Level and update your Indicator.

 

However, I'm bothered by the inability to connect to your Touch Panel from the Project.  Are you able to Build successfully?  Is there (in the Build dropdown) something to Deploy or Connect to the Touch Panel?

 

Bob Schor 

0 Kudos
Message 11 of 13
(1,212 Views)

Hi Bob, I'm still working on this Smiley Sad.

 

I forgot to mention that I'm new with all of this so I don't get at all how to do the "Events" thing, so if you could edit the VI for me it would be much appreciated.

 

Regarding to your question, I'm able to build succesfully and .exe application. Also no "Deploy" or "Connect to TPC" options appear in "Build" dropdown.

 

Yesterday my problem was the 1077 error when trying to run it from TPC (I transfer the application through a flash drive), I solved it disabling the "Enable Aliasing" option from all shared variables I was using, then my application run on TPC with no problems.

 

aliasing disabling.jpg

 

Now that the application is running but not doing anything to the tank level when I move the pointers I got two theories:

 

  1. While Loop I added doesn't make the things your 'Event' suggestion would.
  2. While Loop I added make the things your 'Event' suggestion would but the incommunication problem with the TPC doesn't allow the shared variables to work.

I hope it's number 1.

 

I still don't know if I should be able to connect to TPC direct from LabVIEW. I attach my VI again with the While Loop modification and in .zip file! Smiley Very Happy

0 Kudos
Message 12 of 13
(1,210 Views)

IT WORKED!

 

I don't know exactly what I did but I summarize all next:

 

  • TPC-2212 doesn't appear in MAX, neither in LabVIEW. It does in NI Distributed System Manager, there you can see if IP directions are correctly assignated. Also you can ping each equipment from command window.
  • Shared variables has "Enable aliasing" disabled.
  • I installed LabVIEW Run Time Engine 2014 (Win7 32bits) in TPC.

I attach the final project.

 

Thanks for your help BS. Smiley Happy

0 Kudos
Message 13 of 13
(1,192 Views)