Error -200284 when using two daq cards
I have an application written in Visual C++ that successfully reads data off of one DAQ card. However, now we want to add a second DAQ card so we can expand the number of input channels. However, I'm...
View ArticleVisual Studio-based deployment
Hi everyone,I have never deployed the MS-involving projects so far, therefore I am a bit confused about the procedure.I have a Visual Studio (VS2012) solution written in C++. It consists of several...
View ArticleDAQmxRegisterEveryNSamplesEvent - Callback function
Hello everyone,I have a question regarding the DAQmxRegisterEveryNSamplesEvent callback function.I'm using DAQmxWriteAnalog64 function to generate a wave form with 10240 samples (for example), and my...
View ArticleDAQ measurement averaging on device
Hi all, I'm using an NI USB-6341 device to do a number of voltage and current measurements simultaneously. I'm copying the code below. I want to make it in a way that when the method is called I want...
View ArticleDAQ to DAQmX problems with analog input sample rate
Hi, I am trying to migrate a code from NiDAQ (legacy) to NiDAQmX and I am having a problem with the analog input.I am using a PCI MIO 16e 1 (that has maximum adq. rate 1'25MHz). Using NiDAQ (legacy) I...
View ArticleReading wireless signal strength progammatically
We've recently acquired a couple of cDAQ-9191 wireless chassises with 9205 modules, which we plan to use for vibration measurements. Ideally we will use WiFi to connect the two chassies to the...
View ArticleDAQmxWriteAnalogF64 takes more than 35ms
Hi All. I'm using waveform where I continously generate new data to the buffer and my problem is that the first buffer upload takes about 35ms longer than all other uploads. Also the first upload is...
View ArticleHow can I synchronize line camera with galvanometers?
Hello, everyone, I am Hoon-sup, Kim. I'd like to synchronize galvanometers with line san camera to implement optical coherence tomography system. As you can see the attached snippet of my c language...
View ArticleHow to downgrade the target framework from 4.5 to 4.0?
Hello everyone,I have a VisualStudio 2012/C++ project, which targets dotNet Framework 4.5. In fact the only reason I am using the Measurement Studio (also 2012) for this project is the Analysis...
View ArticleDAQ of Myo Gesture recognition armband with LabView
Hello All, I'm having tough time working with my Myo armband from labview.I started with importing the myo's source dll functions, however it was too difficult to work with labview.Next I decided to...
View ArticleMS visual studio MFC interface for PCIe6321
I have DAQ card PCIe6321. I have an application in MS visual studio 2010 using c++ and MFC for GUI.I want to access the inputs and outputs using this application.How can I avoid using LABview and...
View Articlecannot find nistcu.dll
I'm having a problem with this dll, the error message says it cannot find this dll. I've tried searching for an answer and done updating of the NI drivers (this process takes a loong time... ) but...
View ArticleAnalog Trigger Input - PCI 6010
Hi everyone, I have a PCI-6010. I'm programming in VC++ and DAQmx.It seems to be a simple task, but i cannot seem to accomplish it by myself.I would like to bring in an analog trigger signal and count...
View ArticleSynchronize Continous Analog Input with UPDATED Output
Using NI example code, I am able to synchronize reading succesive NI analog input blocks with writing a buffer to NI analog outputs starting at the same sample. One additional thing that I need is that...
View ArticleWrite 2D Array to analog output
Dear, I want create a task with two analog output channels while using the same clcok. The data for each channel is 4M (4000*1000). The signals are different for two channels. This was succsfully...
View Articleproblem with converting from CString to char*
hello people, I try to cast a CString in char* but it only take the first character CString sox =(CString)"A060," ;char* pChar = (char*)(LPCTSTR)(CString)sox ; after i built it, there is only the...
View ArticleVIclose() doesn't work
hello everybody ! i'm working on visual studio 2010 with the VISA library and my aim is to take the control of an attenuator.I can easily pass it on remote mode with the ViOpen() function in this few...
View ArticleCreating a .dll file from a NI C program in Visual Studio
I have a C program in Visual Studio that reads temperature from DAQs. I wanted to take this c file and put it into a shared library project in Visual Studio. However, when I try to run the program, it...
View Articlesynchronization between current channel and voltage channel in compactDAQ
Hi, I am new to this forum and relatively new to National Instrument. I have started using Visual Studio for ANSI C a few week ago. I am using NI cDAQ-9178 equipment, NI9227 module for current...
View Article