Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

pci 5105

hi, i am trying to get waveform info from digitizer pci-5105 in borland 2007 IDE . very simple code? but problem? it hangs when exiting on closing bracket (trying to close some threads). I am just beginer in NISCOPE API, so cant find mistake. here is a code: //--------------------------------------------------------------------------- #include //#include #include #include #include #include "niScope.h" /*********************************************************************************\ #define MAX_STRING_SIZE 50 int main(int argc, char* argv[]) { ViSession vi = VI_NULL; ViChar errorMessage[200]; ViInt32 actualRecordLength; ViReal64 actualSampleRate; int res; cout<<"Before Starting\n"; res=niScope_init("Dev1", NISCOPE_VAL_FALSE, NISCOPE_VAL_TRUE, &vi); cout<<"Session is opened?\n"<
0 Kudos
Message 1 of 2
(6,200 Views)

Hello AdagioA,

 

I would first like to ask if you can include all of your code for this application to help in reviewing the functions being used. However, I have included some extremely helpful "Getting Started" resources below that will assist you in using NI-SCOPE with C++ as well as provide NI-SCOPE example code. Especially for new users, we highly recommend starting with example code that has been provided and then modifying it to fit the needs of your application. Please be aware that the shipping examples mentioned below may only be found after you have installed the NI-SCOPE driver. 

 

http://www.ni.com/white-paper/3382/en  (Getting Started with NI-SCOPE)

 

http://zone.ni.com/reference/en-XX/help/370592E-01/TOC6.htm  (NI High-Speed Digitizers Help: Programming)

 

http://zone.ni.com/reference/en-XX/help/370592N-01/digitizers/creating_an_application_with_visual_c/ (Creating an Application with Microsoft Visual C and C++)

 

http://carprogrammer.com/Z28/PCM/NI-Scope/ni-scope%20tutorial%20322808a.pdf  (NI-SCOPE Software User Manual) 

 

Software Examples

NI-SCOPE ships with several examples for LabVIEW, LabWindows/CVI, Measurement Studio, MSVC, Visual C++, and Microsoft Visual Basic that will help you develop your software. These examples illustrate how to perform the most common operations with your hardware. To find the examples, go toStart»Programs»National Instruments»NI-SCOPE»Examples

Wes W
Application Engineering
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 2
(6,176 Views)