FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically generate Fieldpoint IO points

I developed some code back in LabVIEW 6 that used FP OPEN.vi, FP Create tag.vi, etc.
I used to read commResource, device name, and channel from a database
Now in LabVIEW7 it looks like you just use a FPread.vi with a list of Fieldpoint IO points
How do I take the list of resources from the DB table, and convert that list into a list of Fieldpoint IO points (variant data type)? And do I truly no longer need FPOpen, FPClose, FPCreate_Tag, etc????
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 3
(3,375 Views)
Imd2,

You are correct, with newer versions of the FieldPoint software you do not need to use FP Open.vi, FP Create Tag.vi, or FP Close.vi in order to do a write or a read. However, those VIs are still available in the advanced palette. The FP Read.vi and FP Write.vi just use those VIs internally if they haven't been already called.

In a case like yours where you are building the I/O point from strings you should use the FP Open.vi and FP Create Tag.vi to create the I/O point for the FP Read.vi or FP Write.vi just like you did previously.

Ames
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,375 Views)
That didn't seem to work, it was much wierder.
First I noticed that when you run "FP Read (Float Array -IO).vi" as a stand-alone, you can only set the control to read up to one complete module. Also the FieldPoint IO Point Out indicator shows the channel greyed out.
When I tried to use the legacy "FP Open, FP Create Tag" VIs, I could get readings to a point, but if I tried to read multiple modules I would get an invalid tag error (at this point I may have been able to use the Val(Sgnl) property node, but I didn't know that yet).
I found an example subVI called GetFPIAKConfig2.vi
I modified a copy to remove the tags for "All" and "Channel 8" (the coldjunction channel)
This outputs an array of all my configured channels
Then as I strip each tag off the arra
y I set the Val(Sgnl) property which seems to get rid of the invalid tag error.
Thanx for your time
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 3 of 3
(3,375 Views)