From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Does anyone know of a way to plot milliseconds onto the CWgraph Active X control in VB?? I'm reading a log file and the time is in the format of 12:00:00:000 - is this possible at all??

We don't have a time format that will support milliseconds. However, you can create you own string labels to do this using Value Pairs. Value Pairs allows you to setup values you are plotting like 1,2,3... to specific strings, in your case: 12:00:00:000, 12:00:00:005, etc. You could create these value pairs from the time strings you are reading in and some relative values with:

CWGraph1.Axes.Item(1).ValuePairs.Add.Name = "12:00:00:000"
CWGraph1.Axes.Item(1).ValuePairs.Add.Value = 1

Then plot the Y data point at x=1 for this time.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(3,273 Views)