LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help, there has to be a more efficient way!

Hello,
 
I'm trying to read a cFP bank of modules into my PXI real time system.  I have everything communicating through an ethernet hub.  In my target VI I'm trying to read from the cFP using Datasocket reads with URLs "lookout://IPAddress/FP/8TC/00" for the DS Open.  I am able to read each channel individually but seeing as I have 64 channels to read I'm thinking there has to be a better way?  I've tried to read in "All" for the channel location to try and read in a whole module at a time but that doesn't seem to work.  I have to be missing some easier/efficient way to do this?  Any help is appreciated.
 
Thanks
 
 
0 Kudos
Message 1 of 6
(3,512 Views)
wyked,
So the good news is that there is an easy way to read all of the channels at once. See below:
 
 
Chris C
 

Message Edited by Chris_C. on 02-28-2007 04:26 PM

0 Kudos
Message 2 of 6
(3,471 Views)
Thank you Chris, but it is my understanding that real time does not support fieldpoint sub vi's? That was the first thing I tried and when it wouldn't work, I'm not sure why as that would seem the most logical.
0 Kudos
Message 3 of 6
(3,443 Views)

wyked,

I stand corrected. You're right. You can't use the Fieldpoint API on a RT PIX platform. I thought about using shared variables to bind to the all channel might work but I don't see that happening either.... so at this point it looks like you can either use a for loop and change the text for the datasocket read or create a separate datasocket read for each channel of interest.

I found a discussion forum that reinforces these findings titled How to read All FP-Channels via DataSocket?

I think this would be a great suggestion though!

Chris C

0 Kudos
Message 4 of 6
(3,414 Views)

Thanks again Chris,  I tried the shared variable approach too and could not bind the variable to all of the channels.  I'm concerned about putting the read in a loop to consecutively read all the channels as this would take awhile reading 64 channels and I could easily miss an alarm event while I was reading the rest of the channels.  So basically it's sounding like I'm stuck with what I have done already? 

Dan

0 Kudos
Message 5 of 6
(3,346 Views)
wyked,
One last ray of hope..... maybe. Create a new shared variable and bind to source. Select Network Items and navigate to your computer. Then expand system>>Fieldpoint>>Max Data Neighborhood and navigate to your module. You should see an "all" there.
 
 
Chris C
0 Kudos
Message 6 of 6
(3,292 Views)