Free Form Data Messages - Application Question

Discuss issues and ideas you have to configuring displays with PowerVision
Ocelot
Posts: 77
Joined: Thu Oct 06, 2011 10:43 am

Free Form Data Messages - Application Question

Post by Ocelot » Mon Oct 03, 2016 3:52 pm

Hello All,

Latest public release of PowerVision, PV780T.

I have questions about feasibility of an application.

To keep the conversation as simple as possible, I am looking to configure a gauge over CANbus.

I am looking to transmit a full XML 'file' over Free Form Data Messages (Connections Tab). Stitch the XML together on the display side, and save it as a SimplifiedUIGauge under the Library - Customer Extensions tab. The XML 'file' would be similar to what's shown when you right click one of the MPC-20 configurable gauges, copy and paste it into Notepad, but on a color display, if a color display supports this.

So several things come to mind.

A) Can the Free Form Data Messages handle that much data transfer? I just finished reading the Core v2.8 manual section concerning Free Form Data Messages and it looks like I would have to pick Raw instead of String to get the CANMessageBuffer object to process the message with a script.

B) Is it possible to save a file locally from AngelScript? looking under the Function Reference section in PowerVision I am not sure it's possible. I don't necessarily see "CRUD" (create, read, update, delete) file functions in AngelScript, it looks like you can move files from a USB to internal storage, or SD card, and back and forth, but not directly save a buffer to a file as a customer extension directly from Angelscript.

I did not find much information on the Customer Extensions - Type property, if there is any information available outside of the Core manual I would appreciate anything you might share.

Let me know.
Attachments
PV780T Analog Gauge XML.txt
(57.98 KiB) Downloaded 11 times
Kyle Bruneau
Applications Engineer - MurCal Inc
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Free Form Data Messages - Application Question

Post by stalley » Tue Oct 04, 2016 8:24 am

Hi Kyle,

Cool idea, however, not feasible with PowerVision Configuration Studio 2.8 today.

Right now, configurations for the monochrome displays that have the "controller" only or simplified user interface know what to do with the SimplifiedUIGauge/XML files. The files are read and become a part of the configuration in the tool, prior to being sent to the controller. They aren't separate files on the device.

You can save a file locally; you use standard file io functions. Look on the Scripting Syntax Reference -> Script Extensions -> file object. Once you have the file saved though, there isn't a way to get it hooked to the user interface/screen.

The Free Form CAN messages won't be the problem. You can send/receive using the multi-packet transport.

There are ways to configure a gauge that already exists in the configuration, but not a way to add or create on the fly.

It is an interesting problem, I'm sure you will find a way to solve it!

Maybe there are others out there who have some ideas...
Sara Talley
Software Engineer
Enovation Controls
Ocelot
Posts: 77
Joined: Thu Oct 06, 2011 10:43 am

Re: Free Form Data Messages - Application Question

Post by Ocelot » Wed Oct 05, 2016 11:40 am

Thanks Sara,

Your right, there are other ways to accomplish the same goal, at least from what the end user will see.

I did have an additional question.

Concerning AngelScript, the Function Reference guide has the following,

int ListManagerImport( uint ListManagerType, string& filename )

Imports a list formatted as a tab-delimited text file

I am assuming that the tabs referenced above are ASCII horizontal tabs (HT, HEX of 09) and not vertical tabs (VT, HEX of 0B). Could you please confirm (http://www.ascii-code.com/)?

Since I have control of both ends of this project, my thought was to transmit the data I require as HT deliminated, save it to a file locally, then populate a list from that file using ListMangerImport.

Let me know.
Kyle Bruneau
Applications Engineer - MurCal Inc
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: Free Form Data Messages - Application Question

Post by stalley » Wed Oct 05, 2016 1:55 pm

Hi Kyle,

You have a big imagination, don't you? :)

Short answer, the vertical tab is not supported.

I'm curious, can you "talk" here about what you want to do with a file that has vertical tabs? You must be a firefox user who prefers to operate with the horizontal bar instead of the vertical bar with links.
Sara Talley
Software Engineer
Enovation Controls