09-21-2010 12:31 PM
I'm attempting to retrieve real time data from a FSA pressure mapping system and am using LabVIEW's activex tools to connect. I have interfaced with the hardware (can retrieve serials and such), but haven't been able to read any of the actual data. The programmers from the company use Javascript for their programs and know nothing about LabVIEW. Below is the info I have gotten from them so far. I'm trying to read an instance of an object through it's activex reference. I have been able to pull out Readings, but am stuck trying to read an individual Reading. Thanks
The InterfaceModule.Read method returns a Frame object. The Frame object contains a collection of one or more readings (Frame.Readings). There is one reading for each sensor array connected to the IM. If they're using just one mat then the Reading will be in Frame.Readings(0). A sensor's pressure value is contained in the reading's Value property (Reading.Value(column, row)). So to take a reading and retrieve the pressure reading for sensor A1 (column = 0, row = 0): ... frame = im.Read(); pressureA1 = frame.Readings(0).Value(0, 0);
Solved! Go to Solution.
09-21-2010 01:36 PM - edited 09-21-2010 01:38 PM
Hard to say without actually having the ActiveX library, but there's probably an "Item" method that will allow you to access a specific element from the collection. For example, with the Excel ActiveX library you can get to a specific sheet from a workbook's Sheets collection using the Item method, as shown in attached picture. Note that you may need to cast the returned object to the appropriate type, depending on what's returned. For the Excel library the "Item" method returns a variant.
09-21-2010 02:28 PM
Thanks for the tip. After figuring out the variant data type it worked and started to output data. Again thanks for the help.
03-22-2012 01:37 PM
Hi Jarad:
Can you show how you got this working? Just need a start...
Thanks
Rick