NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

SequenceFileViewMgr.SequenceFile is readonly?

Hi,
From the TestStand manual, i can display the sequence file in a Sequence File window by setting SequenceFileViewMgr.SequenceFile on the SequenceFileView Manager control for the window.
But in BC++, this property("SequenceFileViewMgr.SequenceFile") is readonly and can't be set directly.
Is there another way to set it in BC++?
Thanks for help.
0 Kudos
Message 1 of 4
(3,272 Views)
Hey Kevin,

I don't have BC++ installed, but I opened the project within VC++, and I was able to set this property.  Is it actually giving you an error when you try and set it or is there something in BC++ that is just telling you that it is read-only?  One big thing that helps a lot with operator interfaces is to look at the examples that we provide.  I generally recommend starting with the simple operator interface just because it's easier to look at.  You can find it at C:\Program Files\National Instruments\TestStand 3.5\OperatorInterfaces\NI\Simple\C++ using MFC.  Hope this helps.


Pat P.
Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,248 Views)
Thanks Patrick,
   My development environment is BC++ and ActiveX, so i drew "TEngine", "ApplicationMgr" and "SequenceFileViewMgr" contorl components in my form.
   "Engine1->AppMainHwnd" is set to my form Hwnd and is followed by "ApplicationMgr1->Start()".
   The "SequenceFileViewMgr.sequencefile" will be set when the "DisplaySequenceFileevent" of "ApplicationMgr" is fired.
   it's code is
  
   =================================================================
   void __fastcall TForm1::TsApplicationMgr1DisplaySequenceFile(
      TObject *Sender, SequenceFile *file,
      SequenceFileDisplayReasons reason)
      {
         TsSequenceFileViewMgr1->SequenceFile = file ;
   }  
   =================================================================
  
   But ,the complie error message is [TsSequenceFileViewMgr1->SequenceFile is not accessible].
   When i traced this property in TSUI_OCX.h, the code is
  
   ==================================================================
   class PACKAGE TTsSequenceFileViewMgr : public TOleControl
   { 
     // i deleted other property
     public: 
     __property Ts_tlb::SequenceFilePtr SequenceFile={ read=get_SequenceFile };
   };
   typedef TTsSequenceFileViewMgr  TTsSequenceFileViewMgrProxy;
   ==================================================================
 
   There is no write method of "SequenceFilePtr SequenceFile".
   Did i miss any steps i should do before setting this property ?
  
Kevin
0 Kudos
Message 3 of 4
(3,238 Views)
Hey Kevin,

I think you might need to use a different method to set the sequence file.  I would give the following code a try.  Again I would highly recommend looking at the C++ example that we provide.  I think it might make things a little easier.  Hope this helps!

mSequenceFileViewMgr->PutRefSequenceFile(TS::SequenceFilePtr(file));
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,226 Views)