Quantcast
Channel: Measurement Studio for .NET Languages topics
Browsing all 1999 articles
Browse latest View live

BeginReadMultiSample looking for timestamp

I am sampling analog data from 2 ni 9222 with the Measurement-Framework. I begin reading with BeginReadMultiSample and getting all data well with EndReadMultiSample. Question:Is there a way to get the...

View Article


Retriggerable AI with external trigger for X series C# method

Hi,Im using a PCIe 6351 DAQ. I would like to aquire a finite number of samples with the analog channel that starts with a trigger singal coming from another analog port  (APFI0) and repeat the process...

View Article


How can I obtain data with sampling rate 44.1KHz?

Hi, I am using cDAQ-9178 , DAQ 9221 with DAQmx in Visual C# 2015. What I want to do is obtaining the data from NI 9221 with sampling rate 44.1KHz. I already used the example code that installed in the...

View Article

Licensing for TDMS .NET dll

I asked a question about licensing for the TDMS .NET DLL back in 2011 (https://forums.ni.com/t5/Measurement-Studio-for-NET/C-NET-TDMS-library/m-p/1689866), but at the time I was the lone developer and...

View Article

Do not reset instrument while create MessageBasedSession instance

I use mbSession = (MessageBasedSession)ResourceManager.GetLocalManager().Open("GPIB0::16::INSTR) to create an instance. However, after this instance created the instrument will be reset every time. So...

View Article


Binding the graph to data object causing out of memory

Hi,I want to create a WPF application that uses Measurement Studio to display the points of the measurements on the graph. We have already implemented a HAL that reports the data to the UI (after doing...

View Article

Simulated Signals

Hi, I'm trying to find a way to continually acquire signals by generating them in software. I'm using VS2012 and MS2015 and VB.net. The issue that I'm having is that after about 8-12 generations the...

View Article

VISA LOCAL Mode after dispose() via LAN

I am programming an E8257D Signal Generator in Visual Studio 2015 via LAN. My C# code is the following:class Program{          private MessageBasedSession mbSession;          static void Main(string[]...

View Article


Check for measurement studio runtime

Hi! Is there a way to check if the Measurmeent Studio .NET runtime is available on the machine? Mabe from a batch script? Or from the program itself? I am looking for a way to determine automaticly if...

View Article


Hide/Show ChartCollectionAnalogWaveform and set its line color in WPF graph

Hi,I have WPF graph with Data as ChartCollectionAnalogWaveform<double>[]. I append waveform to each ChartCollectionAnalogWaveform every second.Each ChartCollectionAnalogWaveform in the array...

View Article

Problem in graph with time axis in WPF

platform: MStudioVS2010( measurment studio for vs 2010)the Adjuster is {FitLoosely}the PreferIndexData property is set to FalseThe name of the time axis is xAxisSet a new range by following...

View Article

Please give better information when obsoleting methods

I've been updating some NI assemblies, and some methods and properties that our code uses have been obsoleted, which is fine. What isn't fine is the obsolete message.   Warning CS0618...

View Article

Starting a ReadWaveform on an external trigger?

I have a DigitalMultiChannelReader that I need to start reading a waveform when an external line changes.  For example, I want to read Port3 lines 3 and 4 when PFI5 goes high, for a certain number of...

View Article


Configuring a trigger on a DC Power module

I have a PXIe-6535 (digital IO module) and a PXI-4130 DC power module.  How can I setup the system so that when the PFI5 line on the 6535 goes high, the DC power module turns on output 2 at 4v with a...

View Article

What causes the "Specified operation cannot be performed when the are no...

using (NationalInstruments.DAQmx.Task task = new NationalInstruments.DAQmx.Task()) { task.Timing.ConfigureSampleClock("", 1000, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, 2);...

View Article


Pulling errors from PXIe-6535?

The "Active" LED on my PXIe-6535 keeps strobing red, which I assume means something is going wrong. However, I cannot find any information on why it might be strobing red, or how to get the root cause....

View Article

gpib listener example

Hello, I would like to create a GPIB listener. I use a NI PCIe-GPIB card. Controller Primary address is 0, and listener address is 1. For the listener, i created objects as in the followings: _board =...

View Article


Converting counts returned to voltage

I am writing an app to acquire data using PCI cards in VB.net with VS2010. I "assumed" that for a 16 bit card there were 65536 counts available for the range being used (-10 to +10, etc). Experience...

View Article

Measurement Studio 6.0 on Windows 7 64-bit

I have a Visual Studio 2005 C# project that had been running with Measurement Studio 6.0 with updater on Windows 7 32-bit.  I recently updated the project to work on Windows 7 64-bit target on Any CPU....

View Article

directx memory leak in 2015 WPF graphs

Hi! I'm trying to upgrade our app (quite heavy) to MS 2015 (from MS 2013). I see very large memory leak that's related to graphs. It looks like direct3d engines are leaking memory (do you use both d3d...

View Article
Browsing all 1999 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>