LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with MonthView (ActiveX)

Hi,

 

I'm a rookie using ActiveX controls and its references. I have made some VIs trying to understand it but when I thought it was clear.... occurs an error! Smiley Frustrated

The subVI works fine (I think...), but when I insert it into the main VI, it stops working.

 

 

Can you help me?

 

 

 Vicen

Win XP/LV10

0 Kudos
Message 1 of 3
(2,549 Views)

I could not replicate the issue. Are you trying to run this on another computer, or the same computer? If it's another computer does this other computer actually have the MSCOMCT2.OCX library?

 

The Microsoft Common Controls library is VERY old. Have you considered using a more updated control, like perhaps the .NET calendar control?

 

Better yet, have you considered simply using a timestamp control?

 

 

I noticed a couple of things with your VI.

  • You appear to be creating a state machine, but in an odd way. Perhaps what you want is a producer-consumer
  • If you use buttons with a latching mechanism you need to place the control terminal inside the event case that handles the Value Change event. This allows LabVIEW to reset the control.
Message 2 of 3
(2,531 Views)

Hi,

 

Thank you for your response.

Right now I have finished modifying the VI using a timestamp control. Thank you. As we say in my language: "He estado matando moscas a cañonazos" (I have been killing flies with a sledgehammer).

However, I would have liked to solve this example because it was my first VI with ActiveX controls. I ran this vi in the same computer.

 

 

Thank you for your tips, too.I'll read de documents.

 

 

Vicen

0 Kudos
Message 3 of 3
(2,522 Views)