03-12-2013 07:03 PM
Hi,
I've been developing a VeriStand Project and I was wondering if anyone has any ideas on how I can change the system channel types from doubles to uint32 or uint64. I see that there is a .net object NationalInstruments.VeriStand.Data which has the classes that I want, but I'm not very familiar with the .net api or how to create system definitions for VeriStand in LabView.
I was thinking that I could create a project, import my models and then use the .Net API to get the system channels and change their type. The problem is that using the GetSystemChannels doesn't give a method to allow this.
I got the VI from somewhere on NI, but I can't remember where.
Thanks in advance,
Brent
Solved! Go to Solution.
03-12-2013 08:21 PM
Why do you need the system channels as different types? Where are you using them?
You cannot change the type of the system channels in VeriStand. In VeriStand everything is a double. Period. No exceptions.
However, in LabVIEW you can easily convert a doulbe to a U32 or I32, or almost any other data type for that matter. Simply use the converstion VIs from the Numeric pallete.
03-13-2013 09:31 AM - edited 03-13-2013 09:37 AM
Ok, I didn't think it was possible from everything I read, but then I saw the class constructor. It would really only be useful if I could use U64's since then I wouldn't have to split them into 2 double channels or do something slick to convert a U64 to a double.
Thanks anyway.
Realized the VI above doesn't work... here are the sub-VIs