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

Change Counter sample to read dynamically and sample the card every 200 millisecond.

$
0
0

Hi,

I am using a PCI-6602 card and I need to sample the card every 200 millisecond.

According to the "MeasDigFrequency_LowFreq1Ctr" example, I have implemented a code that samples the frequency continuously.

My problem is that if I set the variable SamplesPerChannel to be 1, when my frequency is 1 KHz, I receive many callbacks which is too much and affects the performance. If I set SamplesPerChannel to 20, and the actual frequency is 2Hz, I receive callbacks every 10 second which is not enough.

I try to use another method, according to the "CountDigEvents" example, I have implemented a code that read every 200 millisecond the numbers of event that occur in that period of time (which is supposed to be equal to the frequency). However, I cannot calculate exactly the frequency due to windows clock accuracy.

  1. Is there a way to set the SamplesPerChannel dynamically? (when the task is already running)
  2. Could I read every 200 millisecond all the samples (frequency) that are arrived from the last point of my last reading?

Thanks,

Simon.

 


Measurement Studio 2013 and Windows 10 Compatibility

$
0
0

Anybody successfully using Measurement Studio 2013 on Windows 10 OS? The UI controls are all messed up when I opened my program in Measurement Studio 2013 + Visual Studio 2012 on Windows 10 OS. 

vb.net wrapper class for ivi driver for Chroma DC Source 62150h-600s

$
0
0

Dear members,

Please provide vb.net wrapper class for ivi driver for Chroma DC Source '62150H-600S'.

available at link: http://www.chromaate.com/File/DownLoad/41874 .

 

I am writing  applications in vb.net using visual studio 2008(dot net frame work 3.5.1) or visual studio 2013(dot net framework 4.5.1).

I tried downloading device driver and Measurement Studio 2015 but it has no wizard for driver wrapper class generation.

 

any help is appriciated.

Regards,

Arvind Kumar

arv2000@rediffmail.com

 

How I can get an installer with specific DLL version of Measurement Studio 2010?

$
0
0

Hi, 
I am searching the correct Installer which includes the following DLLs with Version 9.1.20.204:

  • NationalInstruments.Analysis.Enterprise
  • NationalInstruments.UI
  • NationalInstruments.UI:WindowsForms

I've downloaded several Measurement Studio 2010 installers and the service package and DaqMx driver(s) but I can not find the required version.

Temperature is sporatic

$
0
0

I have a class that establishes a task, an AIChannel and a Reader to read the temperature off of a NI-TC01. It works but sometimes the temperature is 0.0 unless I close the solution in Visual Studio 2013 an reopen it. Then when I run (in debug mode) the program again the temperature is correct, at least for a while. I am not sure what is changing. The class is running on a background thread that reports the temperature every 2 seconds. Just wondering if any one was aware of something the task does or the channel that would make one or the other stop. And if that was the case then why not restart when the program is restarted? 

 

Just searching for ideas.

Licensing for runtime of developed DLL

$
0
0

I have an application which uses 3 NI enterprise analysis calls, to avoid having to buy enterprise for all developers as the functionality is very defined and black box I've put these into a separate DLL and removed the analysis requirement from the other projects instead calling the dll routine.

 

This is fine in debug but when I switch to release mode I get an exception

 

{"NationalInstruments.Restricted.AnalysisLicenser is unlicensed."}

 

This seems to imply that either I've got a misunderstanding of what should be possible with a dll and it's not possible to develop a DLL for use which has the enterprise functionality (the license.licx isn't being picked up from the dll but from the main application) or that types such as NationalInstruments.ComplexDouble still require enterprise licensing ?

 

Could anyone comment on whether this is a fundamental misunderstanding or there's a simple trick to get around this. The only methods I need to use Butterworth bandpass Filter, FFT and a exponential fit which If it doesn't work like this I'll do via interop/CVI or MathNet alternatives as that doesn't seem to complain.

 

Regards

 

Paul

how to display a solid value (ie a limit value) across a chart as the chart upda

$
0
0

hi - i'm graphing a strip chart value from data coming into the system live (on about a 30msec interval) in packets of 8 bytes. i plot them using "mesDataDisplay_WFG.GraphSignal.PlotYAppend(tempDisplay)" in C#. i want to add a solid line across the chart for a visual indication of a threshold value that the signal should not exceed. so far,i can display the line using the call:

double[] yPoints = { tempYT, tempYT };

this.waveformPlot2.PlotY(yPoints, this.waveformPlot2.XAxis.Range.Minimum, this.waveformPlot2.XAxis.Range.Maximum);

but it vanishes once the chart starts running. so the question is how can i keep the line displayed on the chart with the chart dynamically updating? do i need to add a chart PlotYAppend as a constant? or is there a way to overlay a chart on a graph?

thanks,

 

Install window to small

$
0
0

Hello,  

I'm a long time CVI user and I wanted to try Measurement Studio but I have an issue with the installation. As you can see in the attached picture the install window is to small and doesn't display all the text and buttons. How can I get rid of this? Thank you  


Measurement Studio 2015 with MS Visual Studio Express 2013

$
0
0

Hi,

I'm a long time CVI user and I wanted to try Visual Studio and Measurement studio.

I installed Visual Studio Express 2013 and Measurement Studio 2015.

I have a full academic licence for NI software.

After starting VS2013 the Measurement Studio additions do not show up.

After reading the Installation requirements a saw:

1/ That VS 2013 expres desktop is in the list of supported versions

2/ Microsoft Visual Studio Express Editions do not support Measurement Studio Visual Studio-integrated tools. 

These 2 statements look contradtictory so my question is:

Is it possible to use Measurement Studio 2015 with VS 2013 Express and if yes how?

Thanks

 

Future Support or Alternatives

$
0
0

Does anyone know if or when NI is going to support Visual Studio 2015 since Visual Studio 2017 is almost out? 

 

Or if NI is unwilling to share that info, does anyone know of any good alternatives to Measurement Studio?

PauseTrigger event

$
0
0

I am using a USB-6351 with MeasurementStudio 2013 running on Windows7.  I am generating a pulse train

on ctr0 and using PFI0 as a pause trigger.  Everything works fine.  When the digital input goes high the pulse train stops.  If I clear the digital input the pulse trains resumes as expected.

 

I am trying to figure out how to get an event when the trigger occurs so i can stop and dispose of the pulse train task.  As near as I can determine DigitalChangeDetection events are not supported on this device and the Done event does not occur on pause.

 

I found an example where they were using a timer to check for IsDone but I could not make that work with a pause trigger.

 

Suggestions?

ArrayOperation functions equivalence

$
0
0

Hi,

 I was looking for some equivalence of the following functions that are in vb6 in the following control

CWAnalysisControlsLib.CWArray

-----------------------------------------------

Function Subset1D(x, Index, Length)

Function NegArray(x)

Function SubsetArray(InputArray, IndexArray)

Function IndexArray(InputArray, IndexArray)

Function ArrayDims(InputArray) As Long

Function Sort1D(x, Direction)

Function ArrayDimSizes(InputArray)

Sub ClearArray(x)

Function CopyArray(x)

Function Reverse1D(x)

-----------------------------------------------------------

I have not found any on these in the following namaspace NationalInstruments.Analysis.Math.ArrayOperation

My question is, Can I use the .NET Array Class for replacing them ?

 

Thanks in advance

One time read for many acquisitions

$
0
0

Hi, i need some help for a problem that has bugged me for some time. I have created a Task using DAQmx library, using C# .NET, which contains a few Input channels to read some signals. I've configured the task, started it, called BeginReadMultiSample, passing an async callback function. I'm able to read the data back. The problem is that this takes time (from when i called BeginReadMultiSample to when I received the callback).. I need to run this task several times. Is it possible for me to call BeginReadMultiSample without waiting for the callback, and later on i can just read the buffer once without losing any data? Thanks for any kind help!!!!

Arming Analog Input and Immediate Trigger

$
0
0

Hello,

 

I have seen that if I arm the analog input (so that it is ready to acquire data when it receives a trigger) and then immediately send a trigger, the analog callback does not fire.  If there is some delay (500ms) before sending the trigger, the callback behaves as expected.

 

Has anyone seen this behaviour before?

 

I've attached example code.  It is C# written in Visual Studio 2015.  I've tried this for both a PCIe-6351 and a USB-6351 cards.  The card is named "Daq1" in MAX.  There is a wire connecting Port0/Line0 to PFI0 for the trigger.  I have DAQmx driver 15.1.1 installed.

 

The example code has 4 buttons - "Arm AI", "Send Trigger", "Both", and "D". 

 

"Arm AI" prepares the analog input.  The button is disabled until it receives a trigger.

 

"Send Trigger" sends the trigger.  If I click "Arm AI" then click "Send Trigger", it works as expected. 

 

"Both" calls the code for arming the AI then immediately sends the trigger.  If I monitor with a multimeter, I can see that the trigger is sent properly when "Both" is pressed.  However, the callback (which re-enables the "Arm AI" button) does not get called.  I know that the analog input is waiting for a trigger (if I click on "Send Trigger", it'll behave as expected.  Instead, if I click on "Arm AI" again, I get an error message about conflicting task, as expected).

 

"D" calls the code for arming the AI, waits a delay of 500ms and then sends the trigger.  This works as expected.

 

Thanks,

David

How to use EndLabelsAlwaysVisible on ni:AxisDouble?

$
0
0

Hi, I can't figure out where to use this setting.  Could someone please provice an example in XAML?

Thank you!


How can I install NationalInstruments.Common 13.0.40.188

$
0
0

My program report missing NI.Common 13.0.40.188 dll during build process. I search cure in this forum but seems no clear solution. So I just want to install 13.0.40.188 into my GAC area and let my program running, how can I do? Install the whole Labview 2014? I try to install measurement studio 2012,2015 for VS2010, but I don't find 13.0.40.188 in my machine only 13.0.40.190 instead. My program need 13.0.40.188 actually.

What's the difference between Fetch and Measure in the NI-DCPower .net library?

$
0
0

NIDCPower.Measurement has a "Fetch" and "Measure" method, along with the associated async methods.  

 

What's the difference betwen Fetch and Measure, and where can I find the documentation on it?  

NI Daq BeginReadMultiSample continuous sampling gets zero data when samples -1

$
0
0

My need: Continuously sample two analog channels (NI 9209) at 100 Hz for an indeterminate amount of time. Essentially start sampling and stop at some later time which may be 10 seconds or 10 days. I have to get all samples and cannot drop any.

 

What I tried: I created a simple test program using this project as a template:

NI-DAQ\Examples\DotNET4.5.1\Analog In\Measure Voltage\ContAcqVoltageSamples_IntClk_ToFile\CS

 

This code works when I set the first parameter of BeginReadMultiSample to 10. I see data from EndReadMultiSample.

But if I change the first parameter of BeginReadMultiSample to -1 I get no data returned from the call to EndReadMultiSample

 

//Read the available data from the channels
data = analogInReader.EndReadMultiSample(ar);

 

I searched all the sample code and found no examples setting BeginReadMultiSample samples to -1, even though the documentation suggest that this what I do to get continous sampling.

 

What am I missing?

How should I modify the example so that I get continuous data sampling with no samples dropped?

Regarding 1172 error

$
0
0

HI,

 

I am using LabVIEW 8.6. I am sending one event and that event is received by two clone vis,

Clone vis call the ALta API dll. Sometime, I am getting error no 1172, sometimes not.

The code is not reliable.

.NET framework 3.0,3.5 and 4.0 are installed in my PC.

Can anyone please tell me how to resolve the issue.

 

Thanks

Adil

Convert List to a 2D array

$
0
0

I am currently using a List<Point3D> to bind to my DataSource of an Ni graph. There are performance issues with using a List<Point3D> and I heard a 2D array of double values can be substitued however I don't know how to convert the position and data of each point held in a Point3D object to a double[,] value.

 

Please help, thank you

Viewing all 2000 articles
Browse latest View live


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