02-23-2009 10:14 AM - edited 02-23-2009 10:15 AM
The attached code is supposed to look at a cluster and read the name and datatype of each control in the cluster. When I put a timestamp control into the cluster it returns its data type as waveform, I thought that timestamp was its own data type. I need to get the correct data type as I am using this to populate a database. I need to be able to differentiate between a timestamp data type and a waveform as I dont want to insert a data with waveform datatype into the database as a timestamp and I dont want to insert a timestamp into a spot where waveform data should be. Any ideas?
Solved! Go to Solution.
02-23-2009 10:29 AM
Forgot to attach the subVI...
02-23-2009 10:35 AM - edited 02-23-2009 10:36 AM
Here is a better illustration of my problem:
02-23-2009 10:41 AM
One of the subVIs is password protected and that is the one which generates the error.
Using the Class ID and Class Name properties seems to work OK, producing ID = 60 and Class Name = AbsTime for the timestamp and ID =47 and Name = WaveformData for a waveform control.
Lynn
02-23-2009 10:46 AM
02-23-2009 10:46 AM
johnsold wrote:One of the subVIs is password protected and that is the one which generates the error.
...
Lynn
And that one VI is part of VI.lib so this is a bug.
A work-around could mod "get Type of Control" to handle the special case where the "ClassID" is "60".
Ben
02-23-2009 10:47 AM
02-23-2009 10:50 AM
02-23-2009 11:17 AM
Attached is the workaround I used, nothing fancy. Just posting it incase other people come across this.
Regards
02-23-2009 11:30 AM
Here's a much simpler workaround. No subVIs are needed.
Chris M