int8 and lists issue

Discuss issues and ideas you have to configuring displays with PowerVision
ADE
Posts: 18
Joined: Mon Oct 06, 2014 7:00 pm

int8 and lists issue

Post by ADE » Wed Sep 06, 2017 9:06 pm

Hey All,

Im not sure if im doing something stupid somewhere, but I have a list that i want to add entries too, they are int8 data type, I left the first two columns alone and then declared the third column as int8 as seen below.
List Capture.JPG
List Capture.JPG (39.01 KiB) Viewed 57 times
I then try to add entries using the below code, which works fine once but then causes my code to become unresponsive, however if i change the 3rd column to int32 both in the list and in the script then the code works perfectly. Obviously I am just going to use int32 instead, but I just thought I would see if I am doing something wrong somewhere?

Code: Select all

int row = 0;
int8 number1 = 0;
void $InitialiseList$ () 
{
    CustomListData data;
	
	row++;

	number1 += 4;
	
	data.WriteInt32(CustomListColumn.MyCustomList_MyColumn1, row);
	data.WriteInt8(CustomListColumn.MyCustomList_MyColumn2, number1);
	ListManagerAddItem(ListDataType.MyCustomList, data);
	//move to the end of the list
	ListManagerSetPosition(ListDataType.MyCustomList, ListManagerGetCount(ListDataType.MyCustomList) - 1);

}
For reference Im using
Power vision: 2.8.10546
Screen: PV450
Application: 2.8.10505
OS: 2.8.10016
Loader: 2.3.20006
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: int8 and lists issue

Post by boyce » Mon Sep 18, 2017 3:43 pm

I was able to reproduce this problem. So I entered a bug report for the software team. Sorry for the inconvenience and thank you for reporting it.
Boyce Schrack
Enovation Controls