I am trying to upgrade a .NET solution from Framework 2.0 to 4.0, and everything is good except for Modular Instruments. I tried following the instructions at "http://download.ni.com/support/softlib//digital_multimeters/DMMdotNET101/readme.html" for downloading the desired files, but to no avail. The files listed in the "What's New..." section did not appear in the folders specified by that page. I scanned my C: drive to see if the files were installed elsewhere, but they are nowhere to be found. I have all the latest NI developer tools for Measurement Studio installed on my system. Can someone help?
Modular Instruments for .NET 4.0
Visual Studio 2013 support
Hi,
I am evaluating the purchase of Measument Studio Standard.
My PC is a core i3 530, 8gb ram, 500gb, Windows 7.
I have a Visual Studio 2010 professional license, and I develop using C# and WinForm (peeking at WPF sometimes). Definitely not interested in WebForm (aka "classic asp net").
My questions about Measument Studio Standard are :
1) Is Windows 8.1 supported?
2) With Windows 8.1 one get .net framwork up to 4.5 or 4.5.1. Will be everything ok?
3) Is Visual Studio 2013 supported? If not, will I be eligible for a free upgrade to MS 2014 if I purchase the 1 year update subscription?
4) Can I use the NI class libraries in a WinForm project made with Visual Studio 2013 express for desktop, targeting .net 4?
I know that with Express I don't get the template&customization of visual studio. But can I still add a reference to the assembly, and type "using ... ", and use the classes provided by NI? Can I get also the toolbox and properties editor in form editor?
thanks
Howto Self-Test devices in NI-Max after powercycle
Hello.
How can I perform the "Self-Test" functionality from .NET?
For some reason I now after every powercycling of the NI9234 rack (both a 9191 and a 9184) I have to open NI MAX, and perform a self test on each device.
It takes a while (matter of seconds) the first time after a power cycle, reexecuting the selftest again is vary fast. There seems to be some software checking happening :-)
So - how can I perform this "Self-Test" from C#.
Kind regards
c# Algorithms.Extract() function throw exception error
c# calling Algorithms.Extract() function will come out the exception error. how to solve it?
Application Not Responding on Cursor move...
I am having a scatter graph with multiple plots. Each plot has its own cursor. At one time only the cursor of the selected plot is displayed all other cursors are hidden. When the cursor is moved on the plot, all other cursors are moved according to its index. The values (x,y) of all the cursors are shown as label in my gui.
Following code shows the above description:
int _cursor = 0;
try
{
int index = scatterGraph.Cursors[selectedCursor].GetCurrentIndex();
for (; _cursor < scatterGraph.Cursors.Count; _cursor++)
{
if (_cursor != selectedCursor)
scatterGraph.Cursors[_cursor].MoveCursor(index);
}
for (int _plot = 0; _plot < scatterGraph.Plots.Count; _plot++)
{
pnl_Time.Controls[0].Text = Convert.ToDateTime(TimeSpan.FromSeconds(scatterGraph.Cursors[_plot].XPosition).ToString()).ToString("HH:mm:ss.fff");
Pnl_SelectedFields.Controls[_plot].Text = Math.Round(scatterGraph.Cursors[_plot].YPosition, 5);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
Initially I was having all the Y axes data with valid double values, which used to get plotted successfully and the cursor movement was fine as well.
Now I am having some null values in my Y data which is treated as special values (NaN) in the scatter graph and gets plotted. So I am having continuous (with all valid double values) as well as discrete graphs (data having some null values) plotted according to the data.
Lets say if I am rendering two plots. One plot gets rendered as continuous as all its y values are valid double values and the other gets rendered as discrete as its y values contains some double valid values with some null values as well. Both plots renders but when I move the cursor the application goes in Not Responding state :(.
I have tested this code with all valid Y data values for both the plots and all goes fine.
I think the MoveCursor(index) is causing some problem.
Please guide me whats going wrong, why the application hangs. Please provide me some solution its very urgent.
Thankyou and Regards,
Naureen.
Configure Ethernet-RIO via Measurement Studio
Hey all,
i'm still writing an application for my company using Ethernet-RIOs (NI-9148).
Due to the fact that the software i'm writing is going to be used on a few PCs and i'm a programmer, i'd like to know if there is a way to automatically configure the NI9148 from inside my application.
I did find out,that i can set variable-names etc. by POSTing the "variables.xml","scanConfig.xml","criocfg.bin" and "masterRegistry.xml", but i'd rather use a correct (official way) to do this if there is any.
Thanks already
NationalInstruments.Restricted.AnalyserLicenser is unlicenced error
Hi,
I'm using NationalInstruments.Analysis.SpectralMeasurements.Measurements.SpectralUnitConversion and I have received the following error: -
The type Initializer for NationalInstruments.Analysis.SpectralMeasurements.Measurements threw an exception.
{Name = "AnalysisLicenser" Fullname = "NationalInstruments.Analysis.Restricted.Licenser"}
NationalInstruments.Analysis.Restricted.Licenser is Unlicensed
I'm using VS2012, .net 4.5 and MS 2013
The NI Licence Manager lists Measurement Studio 2013 - Enterprise Development as Licensensed and expiry as never.
Is this a licensing problem or an issue with the call to NationalInstruments.Analysis.SpectralMeasurements.Measurements.SpectralUnitConversion ?
Regards
Steve
Could not load file or assembly 'NationalInstruments.Net'
Hello Everyone,
I am running into this error and I have tried removing and adding the reference, cleaning the solution and still no help...
Here is the error..
Could not load file or assembly 'NationalInstruments.Net, Version=13.0.40.242, Culture=neutral, PublicKeyToken=dc6ad606294fc298' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Here is where the code is blowing up at... It's with the DataSocketServer.
Appreciate any help I can get.
private bool InitializeDataOutput() {
try
{
dataSocketServer = new DataSocketServer(true, true);
}
catch (DataSocketException e)
{ Logger.LogError("Couldn't set up the DataSocket server in + "OccDatasocketServerController.InitializeDataOutput");
Logger.LogError(e.ToString());
return false;
}
.....
return true;
}
Problems deploying NI projects using VS Installer wizard
I wrote software in VB.Net (Visual Studio 2010, Measurement studio 2010 that uses Ni-Daq modules to capture data) several months ago where I faced deployment issues. basically when trying to make the installer, I kept getting the Warning:"Unable to find module dependency with signature 'Microsoft_VC100_CRT_x86 ....'. This problem was solved quickly thanks to the solution presented HERE (which suggested downloading a differnt (older) verison of VC... merge modules for both 32-Bit and 64-Bit dlls)
However, just recently, I opened up the solution, tried rebuilding the installer again, and I get:
'Unable to find module dependency with signature 'Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D'
This also, causes the deployed program NOT work on the target machine. Throwing an exception about some mismatch in NI dlls. I can try reproducing it if it helps. I am not sure during these few months if the NI libraries and dlls have been updated on my computer or not and if yes, I am not sure if the version/signature of the merge modules have been modified on them.
Is there a way to verify the version of current NI-DaqMX dlls, required/correct version of MS_VC... dlls and the correct version of NI-Core Functions that needs to go on the target machine?
Please note that the numbers after 'Microsoft_VC100_CRT_x86' are not the same as the other problem. I am wondering that if I have to change the MS_VC100... merge modules again (on the development computer)?
I installed the latest version of NI Core functions for DaqMx on the target machine. Should I uninstall it and install the same version that I used to create the program?
Looking forward for your hints.
Best,
Hatef
"Business Components: you are exceeding your license" error in HPQC
Hi,
I have access in five projects in QC. When I login in one particular project it was showing me pop up message "Business Components: you are exceeding your license" error in QC but apart from this all project is working fine.
I am also attaching error screen shot here.
If anyone knows how to resolve this error then please reply me back.
Thanks for your Help!
Regards,
Lata Mahore
Problems Deploying NI components, 'Found conflicts between different versions of the same dependent assembly.'
Hello All,
This problem is kind of related to my other pending problem here. This is a VB application that I wrote several monthes ago, using VS2010 [Professional Ver 10.0.30319.1] and MS2010 [SP1 - V9.1.0.204] (this is another one not the one I asked about on the other thread!) I needed to make some minor changes and checked-out the solution from SVN. Made the changes (literaly changing some strings/titles and things like that!) and rebuilt the installer (Using the VS installer project and got these warnings. They did not exist at all before:
1 - Unable to find module dependency with signature 'Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D'
This is the exact warning that I get/mentioned on the other thread. (previously I had replaced my original Microsoft_VCXXX_.... modules with the ones that i downloaded from this website to get rid of a similar problem for microsoft modules (that had a different signiture).
2 - Found conflicts between different versions of the same dependent assembly. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 1578
To find the root of this problem, I looked into the 'Detected Dependencies' folder in the solution explorer window for the installer project. Here is their list:
- Microsoft .net Framework
- microsoft_vc100_atl_x86.msm
- microsoft_vc100_crt_x86.msm
- microsoft_vc90_crt_x86.msm
- microsoft_vc90_mfc_x86.msm
- mstudiocommon.2010.msm *right-click->properties->dependencies:
- MS .Net Framework
- Microsoft_VC100_CRT_x86.AFA96EB4_FA9F_335C_A7CB_36079407553D Version 10.0(This one shows a warning icon next to it!)
- mstudioui.2010.msm *right-click->properties->dependencies:
- MS .Net Framework
- microsoft_vc100_atl_x86.msm (Version 10.0 , no warning displayed!)
- microsoft_vc100_crt_x86.msm (Version 10.0 , no warning displayed!)
- mstudiocommon.2010.msm (Version 9.1.0.159)
- mstudiouidesign.2010.msm (Version 9.1.0.203)
- nimesadll.msm
- mstudiouidesign.2010.msm *right-click->properties->dependencies:
- MS .Net Framework
- MS .NET Framework
- mstudioui.2010.msm (ver: 9.1.0.204)
- MS .Net FrameWork
- NationalInstruments.Common.Native (Ver 12.0.40.253)
- NationalInstruments.MStudioCLM (Ver 12.0.40.253)
- NationalInstruments.NiLmClientDLL (Ver 12.0.40.253)
- NationalInstruments.Common.Native.dll
- NationalInstruments.MStudioCLM.dll
- NationalInstruments.NiLmClientDLL.dll
- nimesadll.msm
- microsoft_vc90_crt_x86.msm (Ver 9.0)
- microsoft_vc90_mfc_x86.msm (Ver 9.0)
- nimetautils.msm
- policy_9_0_microsoft_vc90_crt_x86.msm (Ver 9.0)
- policy_9_0_microsoft_vc90_mfc_x86.msm (Ver 9.0)
Therefore, to me it seems that there is a problem in one of the NI modules that uses a different version of microsoft_VC_10.... than the other Ni modules use. therefore, even if I replace the microsoft merge modules for that particular NI module, it will crash other NI modules!
Besides these two problems I get plenty of these warnings:
3 - Two or more objects have the same target location ('[payload_ul]\9.0.30729.1.policy') / Two or more objects have the same target location ('[policydir]\9.0.30729.1.cat') (I get four of each!)
This one is new and I dont know how to collect more details about it. However, I feel that if I am able to resolve the issue with verison mismatch for that MS_VC100 .... msm, this will go away. It seems that this error is arised if two objects with the same name (.dlls, icons, images , .... are being copied to the same folder when being installed. I deleted all icons, images, everything that could be copied by the installer multiple times (that was added by myself), from the project but this problem still presists! I think its trying to write two versions of the same file to the target directory and causes this warning to arise.
4 - and the lat warning (which could be unrelated to these but just happened and emerge along with these warnings: Configuration file 'C:\.....\app.config' is being used to configure all executables
This is really frustrating for me because all this program uses from NI is one LED control! because of a simple LED I have to have a long list of dependencies that may stop working any minute if either NI or VS upgrades and causing me all sort of head aches! I am trying to create my own LEDs and other controls to simplify my program as much as I can.
Right now my application does not work at all on any other computer but mine! I am really looking forward for your tips. Please let me know if I can provide more details on these.
Thanks alot in advance,
Hatef
How to change Slider step size?
Hello,
In the older version of Measurement Studio, in the properties dialog for a slider control, one could specify continuous or discrete and specify an interval and base. How is this accomplished in Measurement Studio 2013 in VB>net 2010?
Thanks,
bartj
wpf graph minor gridlines
What happened to minro gridlines in WPF version? There is no such property, only for ticks. WinForms version had this as I remember
how to read data from quadrature encoder using NI 9401
Hi,
I am using Encoder to measure angular displacement. I need help to read data from quadrature encoder using NI 9401.
how do i create custom scale i.e. range map scale
Hi,
I am having load cell of 50N with 2.00217 mV/V sensitivity.I am using NI 9236 module which is having 3.3 excitation voltage. I want to create custom scale i.e.Range map scale and want to create voltage channel with excitation for load cell.
Load cell specification: Input Qty Output Qty
0 N -0.01311 mV/V
50 N 1.98906
Please suggest me to create custom scale and analog input channel with excitation.
使用Measurement Studio创建 NI-DAQmx Application(Visual C#)出现错误!
错误信息:文件加载 使用简体中文(GB2312)编码加载文件“C:\Documents and Settings\Administrator\Local Settings\Temp\.....”时,有些字节已用Unicode替换字符替换。保存该文件将不会保留原始文件内容。
已经尝试过的方法:vs2010 工具-》选项-》文本编辑器-》选中 自动检测不带签名的UTF-8编码。还是没有解决。
请指教!
C# GPIB Interface Clear Error
I have a program in C# that instantiates a GPIB class that contains a Board object and Devices. The first time through I am able to process the InterfaceClear method from the Board object, but if later on I want to initialize the objects by sending another InterfaceClear command. I keep getting an error about the input handle is invalid or out of range. This only happens the second time I call this method. I don't see how I can invoke the Board object if it is not available on the thread. Are Reset or ResetSystem more preferred methods? I would like to initialize the board and devices after a period of idle time just to ensure there are no problems. I can mask the problem by not sending an InterfaceClear command after the initial call, but I would prefer to be able to do that. Any help is greatly appreciated.
Mike
How do I get leading zeros displayed in a RadixNumericTextBox when using a Hexadecimal RadixBase%3F
How do I get leading zeros displayed in a RadixNumericTextBox when using a Hexadecimal RadixBase in Visual Studio 2010, C# and Measurement Studio 2012?
Measurement Studio 2013 and CompactRIO
Hi all,
i am newbie about labview but i have a lot of experience using c#.
My company bought a compactRIO hardware. My company have two programmers. One guy expert in labview and me. However, the labview developer resigned some days ago. So i have to show some progress. I want your help.
Using Ni-MAX, i can see the compactRIO.
I read a lot of stuff, and download Measurement Studio 2013 and i studied some examples but i want to clarify some parts in my mind
My boss wants from me only one thing. To get data from cRIO. Can you direct me to study the correct examples or any other sample if you have, how to succeed the data acquisition from cRIO ?
best regards
pbrx
Downsampling Graph Data
Device: NI PCI-6259
Measurement Studio, C#, WPF, dotNet4.0
Acquiring samples on 16 Channels with 32 KHz sampling rate and writing them to disk as .TDMS is fine, no notable performace hit.
But as soon as I bind the data to the WPF NI:Graph the performance gets intollerable.
1. Is there an built-in option for downsampling the Graph data ? TDMS must have the complete data set though
2. Whats the ratio for the Task setting Rate and Samples per Second, if I set the latter to low the DAQ may crash, i.e. how can I calculate the samplesPerSecond for Rate X with Y Channels ?
3.