An error occurred while installing‘ni-package-manager-deployment-support.msi’. The system could not open the specified device or file。why??
ni-package-manager-deployment-support.msi wrong!!!
while installing‘ni-package-manager-deployment-support.msi’, an error occured
win10 , installing Measurement Studio 2019.
An error occurred while installing‘ni-package-manager-deployment-support.msi’. The system could not open the specified device or file。
why??
Measurement Studio & Visual Studio 2010, Create C# Form Project
I use the Measurement Studio & Visual Studio 2010 in Win7, Create C# Ni Project, make build Install Package.
When I Install build exe on Win10 PC, but it can not runing.
How to handle cursor position when x axis is updateing
Hi, i have an applicatio that receives data and plot it in real time. I want to have a cursor that will show y value, but the problem that have is with the fixed x value for the cursor. My x axis is a timescale that is constantly moving, i have set a cursor but it disappears when data start coming in, because the x axis is incrementing. Is it posible make cursos relative to the x values? Or can i somehow bind it to the mouse cursor and to have it show me y value when i point my mouse cursor to a specific point on the graph?
Thanks
Enabling low_pass filter on NI USB-6281, daqmx, python
The low pass filter can be enabled from lab view and it works. But it I cannot get it to work with Python. Is the way to do it? Thanks.
ai_task.ai_channels.add_ai_voltage_chan(physical_channel,max_val=0.1, min_val=-0.1,
terminal_config=TerminalConfiguration.DIFFERENTIAL)
ai_task.ai_lowpass_enable = True
ai_task.timing.cfg_samp_clk_timing(666666, samps_per_chan=666666,
sample_mode=AcquisitionType.FINITE)
ai_task.start()
Labview 2015 driver to .net C#
Hello
I have a power analyzer with only a LabView 2015 driver. I need to communicate with this driver via C#. How can i convert this LaBview driver to DotNet C# or is there a white paper which explains how to create a wrapper ?
Thanks in advance
VS2019 C# NI-VISA driver issues
I am workling with the latest Visual Studio Pro 2019 and C#. I have gone oveer a lot of VISA and GPIB information and am working up a VISA/GPIB driver for NI and IVI compliance. They IVI one seems fairly straightforward, just hard to decipher some of the commands needed for advanced features. On the NI side the older NationalInstrumewnt.ViasNS is no longer valid or buildable. The newer NationalInstruments.Visa is considerably different and older code generate a lot of errors as so much has changed. Anyone have any background using the newest VISA .Net assembly and can advise some. Or IVI.VISA. Or if you have an example c# VISA driver that would be cool. The latest .Net NI page mentions the changes but they have not updated their example.
Thanks in advance.
Sell and Deploy Applications Using Measurement Studio Libraries
Hi,
I am currently evaluating Measurement Studio and have a question concerning licencing and application deployment.
If I own a Measurement Studio Professional licence and write an application on a PC on which Measurement Studio is installed, would I be allowed to sell and able to deploy this application to a user who has not bought a Measurement Studio licence?
And if yes, are there any obligations to include a licence notice in the application?
In case it's relevant: I only need the TDMS-Libraries for writing and reading TMDS files.
3D style LEDs don't show in published app (MS2019 + VS2019 + Win10LTSB2016)
I've downloaded the trial version of MS2019 and I've faced up with the issue that 3D Style LEDs don't show in the published application that is running on another computer.
What is the root cause of this issue? Is it a trial version issue (no actual license)? Some DLL is absent or not included in the published application?
The all working fine on local (developer's computer).
Thanks in advance!
Calculation and Display of over time period avareged values
Hello dear community,
I want to add to my data aquisition software in .NET the feature to calculate and display the avarege value for every x second. For that purpose i have implemented in my reading loop a loop that stores the data in an array, calculates the avarage every x seconds and transfers the data to an dataobject, that is beeing read in the Plotframe. Unfortunately i get Error -200279. I tried different thing, raising buffer size, reading more samples, but nothing worked.
I think it must be said that i have two channel groups. The aquisition begins by starting the Programm:
Private Sub butStartProgramm_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles butStartProgramm.Click
Me.butStartProgramm.Enabled = False
Me.ButStartMessung.Enabled = True
Me.butEndeProgramm.Enabled = True
setFenster() ' here i call the Frameplots
objScan_Teil2.Start() 'here is beeing started the aquisition of the second channel group, executed throug a separate class
iniKanaele() ' here the channels of group 1 are beeing initialisated
'starting the aquisition of channel group 1
If taskRunning = False Then
Try
taskRunning = True
analogInReader = New AnalogMultiChannelReader(myTask.Stream)
analogInReader.SynchronizeCallbacks = True
analogCallback = New AsyncCallback(AddressOf AnalogInCallback)
analogInReader.BeginReadMultiSample(objKanalinfo_Teil1.m_ScansProKanal, _
analogCallback, Nothing)
Catch exception As DaqException
MessageBox.Show(exception.Message)
taskRunning = False
Me.butStartProgramm.Enabled = True
Me.butStopMessung.Enabled = False
myTask.Dispose()
End Try
End If
End Sub
the async.callback looks as follows:
Private Sub AnalogInCallback(ByVal ar As IAsyncResult)
Dim Messdaten_Teil1 As Double(,) 'Aquisition array
Dim MittelwMessdaten_Teil1 As Double() 'Array for loop avareged values
Dim PeriodenmittelwertOsz As Double() 'Array for over time period avareged values
Dim DatenArray_proScanOszillationen As Double(,) ' Array in which aquisition data are stored in one loop
Static Dim n_Osz As Integer = 0 ' Period counter
Dim zeile_Osz As Integer
Dim spalte_Osz As Integer
Dim zeilen_Osz As Integer
Dim spalten_Osz As Integer
Dim deltaTime As Double
deltaTime = 1.0 / objKanalinfo_Teil1.m_Frequenz * objKanalinfo_Teil1.m_ScansProKanal 'here i define the time of the loop( Scans=1)
zeilen_Osz = CInt(5 / (deltaTime)) ' here i define the first dimension of the storage array as Period/looptime
spalten_Osz = 19 'number of channels
Static Dim Oszillation_Array(zeilen_Osz, spalten_Osz) As Double 'the storage array
Try
If taskRunning = True Then
Messdaten_Teil1 = analogInReader.EndReadMultiSample(ar)
analogInReader.BeginReadMultiSample(objKanalinfo_Teil1.m_ScansProKanal, _
analogCallback, Nothing)
SyncLock Me
Messdaten_Teil1 = Daten_berechnen(Messdaten_Teil1) 'calculating data from signals
DatenArray_proScanOszillationen = Daten_Array_Oszillation(Messdaten_Teil2) 'storing the data from the loop
For zeile_Osz = DatenArray_proScanOszillationen.GetLowerBound(0) To DatenArray_proScanOszillationen.GetUpperBound(0)
For spalte_Osz = DatenArray_proScanOszillationen.GetLowerBound(1) To DatenArray_proScanOszillationen.GetUpperBound(1)
Oszillation_Array(n_Osz, spalte_Osz) = DatenArray_proScanOszillationen(zeile_Osz, spalte_Osz) 'storing the data in the array containig data over one period
Next spalte_Osz
n_Osz = n_Osz + 1
If n_Osz = zeilen_Osz Then
PeriodenmittelwertOsz = Periodenmittelwert(Oszillation_Array) 'calculation the averaged data
objPeriodengemittelteMessdatenUebergabe = ZuweisungPeriodengemittelterMessdaten(PeriodenmittelwertOsz, objPeriodengemittelteMessdatenUebergabe) 'trasfering the Data to the object read in the Plot frame
n_Osz = 0
End If
Next zeile_Osz
'Calculating the avarage over loop and transfering the data to the plots
MittelwMessdaten_Teil1 = mitt(Messdaten_Teil1)
MittelwMessdaten_Teil2 = mitt(Messdaten_Teil2)
objMessdaten = ZuweisungMessdaten(MittelwMessdaten_Teil1, MittelwMessdaten_Teil2, objMessdaten)
objMessdatenUebergabe = ZuweisungMessdaten(MittelwMessdaten_Teil1, MittelwMessdaten_Teil2, objMessdatenUebergabe)
Thread.Sleep(0)
End SyncLock
End If
Catch ex As DaqException
MessageBox.Show(ex.Message)
taskRunning = False
Me.butStartProgramm.Enabled = True
Me.butStopMessung.Enabled = False
myTask.Dispose()
End Try
End Sub
#End Region
an here is the Plotframe:
Private Sub frmTemperaturen_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
objDatenPlotTemp = New classPeriodengemittelteMessdaten ' defining the data object
'Starting the thra
Dim Start1 As New ThreadStart(AddressOf threadPlotTemperaturen)
myThread1 = New Thread(Start1)
myThread1.Start()
End Sub
#End Region
#Region "thread: Plot der Kurven"
Private Sub threadPlotTemperaturen()Dim wert_plot2(19, 0) As Double
xyPloTymin = 0.0
xyPloTymax = 100.0
xyPloTxmin = 0.0
xyPloTxmax = 100.0
xyPloDymin = 0.0
xyPloDymax = 10.0
xyPloDxmin = 0.0
xyPloDxmax = 100.0
iniPlots()
'transfering the data from aquisition loop
objDatenPlotTemp = frmMessStart.objPeriodengemittelteMessdatenUebergabe
While True
If objDatenPlotTemp Is Nothing Then
Else
SyncLock objDatenPlotTemp
'giving the transfered Data to the plot
wert_plot2(0, 0) = objDatenPlotTemp.T12PM
wert_plot2(1, 0) = objDatenPlotTemp.T13PM
wert_plot2(2, 0) = objDatenPlotTemp.T14PM
wert_plot2(3, 0) = objDatenPlotTemp.T15PM
wert_plot2(4, 0) = objDatenPlotTemp.T16PM
wert_plot2(5, 0) = objDatenPlotTemp.T17PM
wert_plot2(6, 0) = objDatenPlotTemp.T18PM
wert_plot2(7, 0) = objDatenPlotTemp.T19PM
wert_plot2(8, 0) = objDatenPlotTemp.T20PM
wert_plot2(9, 0) = objDatenPlotTemp.T21PM
wert_plot2(10, 0) = objDatenPlotTemp.T24PM
wert_plot2(11, 0) = objDatenPlotTemp.T25PM
wert_plot2(12, 0) = objDatenPlotTemp.T29PM
wert_plot2(13, 0) = objDatenPlotTemp.T30PM
wert_plot2(14, 0) = objDatenPlotTemp.T31PM
wert_plot2(15, 0) = objDatenPlotTemp.T32PM
wert_plot2(16, 0) = objDatenPlotTemp.T33PM
wert_plot2(17, 0) = objDatenPlotTemp.T34PM
wert_plot2(18, 0) = objDatenPlotTemp.T35PM
wert_plot2(19, 0) = objDatenPlotTemp.T36PM
Thread.Sleep(1500)
End SyncLock
Setslider1y(Me.slTymin1)
Setslider2y(Me.slTymax1)
Setslider1x(Me.slTxmin1)
Setslider2x(Me.slTxmax1)
SetArray(Me.grfTempKreislauf, wert_plot1) 'Plot Temperaturen Kreislauf
Setslider1dy(Me.slDmin1)
Setslider2dy(Me.slDmax1)
Setslider1dx(Me.slDxmin2)
Setslider2dx(Me.slDxmax2)SetArray1(Me.grfTempMesstrecke1, wert_plot2) ' Plot Temperaturen Versuchsrohr
End If
Thread.Sleep(6)
End While
End Sub
I would be very thankfull for any help!
Point-by-Point Filter
Hello,
I would like to know how to do a point by point filter, in the Help the point-by-point filter is referred but it mentions LabView and I do not find how to implemented in C#.
I am using a NarrowbandFirLowpassFilter and NarrowbandFirHighpassFilter. FilterData accepts only arrays
publicdouble[] FilterData(double[] inputData )
If not possible with this filter, can you recommend me which filter to use?
Mixed Signal Graph like in LabView. Is it possible in MS?
Does the Measurement Studio has a widget like that? I need to display a number of stacked plots with one common X-axis.
Undo Problem
Undo problem
As we know that the WPF graphs use Shift+Right-click for Undo like the Windows Forms graphs in the Measurement Studio 2015 release. I use a TabControl to show different graphs. After Zooming,i change to other tabitem, and then i change back to first tabitem, I can not undo last operation.
Measurement Studio Runtime License
I am developing an application using VB.NET and Measurement Studio. I built the installer using the Measurement Studio Installer Builder, but when I run the application, I see the attached error.
I may have misunderstood the license. DO I need a separate license for each installation of the executable that I want to have? Or is it covered by my development license and I built it wrong?
Maker on ScatterGraph at mouse clic position
Hello,
i'm looking for a way to put a marker on a scatter/wave graph with a mouse clic.
Do you have any answers ?
Thanks.
F.
Exercising a Simulated PXI-6529
Summary: Attempting to use C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5\Digital\Generate Values\WriteDigChan\CS or C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5\Digital\Generate Values\WriteDigPort\CS to access a simulated PXI-6529 results in error -200012 "Specified physical channel does not support digital output."
Steps to recreate:
- Open NI-MAX
- Right click on "Devices and Interfaces"
- Select "Create New..." from the context menu
- Select "Simulated NI-DAQmx Device or Modular Instrument" from the "Create New..." dialog
- Click the "Finish" button
- Type "6529" in the "Create Simulated NI-DAQmx Device" dialog and select the resulting "PXI-6529" entry
- Click the "OK" button
- Click "Reset" and observe "The device was reset successfully"
- Click "Self-Test" and observe "The self test completed successfully"
- Click "Test Panels..." to reveal test panel. Note that all configuration buttons are disabled.
- In NI-MAX, click "Settings" tab and note "Name" (in my case, it's "PXI1Slot2")
- Make a copy of C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.5\Digital\Generate Values\WriteDigChan\CS and open in Visual Studio
- Build and run WriteDigChan
- In the WriteDigChan "Lines" combobox, replace "Dev1" with the "Name" copied from the simulated PXI-6529 "Settings" tab in NI-MAX. For me, this results in "PXI1Slot2/Port0/line0:7"
- Click the "Write" button on the WriteDigChan dialog and observe a MessageBox reporting error -200012 "Specified physical channel does not support digital output."
Does this example work for anyone else? Am I even using example code that should work?
Any advice is very much appreciated.
NI DAQmx Version
Hi all,
I have a software that needs a specific version of NI DAQmx. The version I need is 9.9.40.39. I tried to download version 9.9 on the website and it did not work. Was wondering if anyone knows where i can get specific version of DAQmx.
Thanks
Measurement Studio (2019 C#) connection to Instrument Studio
Dear NI support,
Your Instrument Studio seems a software worth investigating, so I have a couple of questions:
- At the moment I’m using C# with Measurement Studio (2019) with a lot of inherited code. Your website (video) says that I can connect my C# code to IS as an out-of-process server. What can I do that way – collect data, control device parameters, or both? Is there a protocol with example code on how to do that from C#?
- Your panels (virtual devices) in IS look nice but is there a plugin standard, so I can write my own panels? In case there is: a link to the protocol would be great and some example code too (preferable C#)
- The virtual instruments are connected to the hardware via drivers (depending on device type). If In case of non-NI device and lack of a driver, is there a protocol including code examples to create such a driver (what language)?
Thank you
Theo
Reading and writing from VB.net Text boxes to network variables
Using VS13 and Latest Measurement Studio
Has anyone got an example, I have tried all day and failed.
I have a LabVIEW program as follows
I really need a VB.NET form that reads Network_Double to TextBox1.Text and writes from TextBox2.Text to Network_String
There seems to be no examples for this basic thing, they all seem to be binding from Network Variables to National Instruments components but not to native VB components.
This sort of thing must be a doddle for someone