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

Unable to find module dependency with signature

$
0
0

Hi there,

 

I am trying to create an installer for my project in VS2017, VS2015, VS2013 with no luck - it keeps failing to find dependencies:

 

WARNING: Unable to find dependency 'NATIONALINSTRUMENTS.COMMON' (Signature='DC6AD606294FC298' Version='15.1.40.49152') of assembly 'NationalInstruments.ModularInstruments.Common.dll'
WARNING: Unable to find module dependency with signature 'MICommonInternal.2012.3784D7D1A91548678E35124E645FE273'

 

Can you help?

Best regards,

 

Vadim


Redirect visaNS to newest version?

$
0
0

I have an application that relies on NationalInstruments.visaNS version 9.0.20.156. Unfortunately, that version no longer works with Windows 10, and am I forced to upgrade to a newer driver package (Visa 18.5).  Running my application on the latest visaNS.dll causes an exception indicating that the visaNS assembly version 9.0.20.156 could not be found. The application runs perfectly when rebuilt on the new assembly, but due to a variety of constraints, rebuilding and redeploying my application is largely impossible.

 

Is there a publisher policy that can redirect version 9.0.20.156 to 13.0.45.167 (Visa 18.5)? At least for my purposes, the latest version is 100% backwards compatible.

 

Advanced TDMS functions in C#

$
0
0

In LabView i can easily access the Advanced TDMS functions, but there does not seem to be any options for accessing these functions from .net or Measurement Studio Pro. How can I use these functions in C#?

Timer control labview code

$
0
0

I have a LabVIEW code which needs to be timer control. The code should work as follows?

1. Need a timer that resets every 60 seconds.

2. From 0-30 seconds, the code should write the value 0(zero) to Modbus register 9 of slave device address 5

3. from 31 - 60 seconds, the code will write the value 256 to same Modbus register 9 of slave device address 5.

4. The timer will reset to zero  and this loop continues for every 60 seconds.

Does anyone in the forum got an idea or a typical LabVIEW code that can perform the above function?

How to add Table Values in Signal using National Instruments.VeriStand.System Definition API.dll

$
0
0

I’m creating a System Definition File using the National Instruments.VeriStand.System Definition API.dll with C#, but in the API I can add the signal but the Value Table is not adding the data.

The first image shows the SDF made with the DLL and the second image as it should be.

SDF using the dll.pngTable is missing.png

AxisDouble YRange label presenter format

$
0
0

Hi,

 

I was trying to set the AxisDouble label presenter formatted by "0.00". But when the minimum value of Y Range is like 0.00123456, it shows the whole digital string instead of 0.00. This is my xaml, and attached is the plot view. What is missing here please?

 

<ni:AxisDouble x:Name="yAxis" Label="{Binding GraphYAxisLabel}" Orientation="Vertical" Range="{Binding YRange}" Adjuster="None">
    <ni:AxisDouble.MajorDivisions>
        <ni:RangeLabeledDivisions>
            <ni:RangeLabeledDivisions.LabelPresenter>
                <ni:GeneralValueFormatter Format="0.00" />
            </ni:RangeLabeledDivisions.LabelPresenter>
        </ni:RangeLabeledDivisions>
    </ni:AxisDouble.MajorDivisions>
</ni:AxisDouble>

 

Thanks,

Xu

 

https://www.deseretnews.com/article/865626508/Are-youth-dances-outdated.html

$
0
0

Confidentpreneur   Woman, to seize libido The woman must know about sexual desire to identify what excites her and how to keep him alive, two issues that are achieved with practice. Excitement and sexual desire must be approached in a comprehensive manner because in the sexual activity of women involved physical, biological and psychological factors that affect their love relationship. Some of these factors are education, upbringing, beliefs, way of life, , fantasies, feelings, etc. The detailed study of female helps to understand the functioning of a woman's sexual response. Estrogen is the most important female since it is responsible for the excitement, the feeling of well-being and fullness. It occurs in the ovaries and when the production of estrogen increases, pubic and axillary hair appear.

https://www.deseretnews.com/article/865626508/Are-youth-dances-outdated.html

https://www.huffingtonpost.com/anfernee-chansamooth/what-every-mumpreneur-sho_b_5968166.html

 

Error on ReadSingleSampleInt32

$
0
0

Hello--

I'm having an issue where a ReadSingleSampleInt32 call results in an error.  Some background:

I have a counter which counts pulses.  It gets initialized/started as follows:

 

CountPulseTask = New Task()
CountPulseTask.CIChannels.CreateCountEdgesChannel("/" & DAQName & CountPulseCounter, _
                                                  "CountPulses", CICountEdgesActiveEdge.Rising, 0, _
                                                 CICountEdgesCountDirection.Up)
CountPulseTask.CIChannels.All.CountEdgesTerminal = "/" & DAQName & PressurePulseOutputChannel
CountPulseReader = New CounterSingleChannelReader(CountPulseTask.Stream)
CountPulseTask.Start()

Then, every 100ms (via .NET timer control), I obtain the count as follows:

 

 

    Public Function GetCount(ByRef ErrMsg As String) As Long
        Dim tmpCount As Long
        Try
            tmpCount = CountPulseReader.ReadSingleSampleInt32()
        Catch ex As Exception
            'CountPulseTask.Dispose()
            ErrMsg = ex.Message
            GetCount = ErrLong
            Exit Function
        End Try
        GetCount = tmpCount
    End Function

I've got an intermittent but reliable situation where the GetCount sub throws an exception--sometimes after 8k counts, sometimes after millions of counts.  I haven't seen this issue on my dev system, but my client has seen the error on their deployment system.  As a result, debug information is limited--I know that makes diagnosis very difficult.

 

But i'm wondering if anyone is aware of any reasons why a ReadSingleSampleInt32 call would work fine for millions of cycles, and then all of a sudden throw an exception. Not knowing the specific error, it's been hard to search the forums for possibilities.  I can confirm with near certainty that the counter task is still valid and running.

 

Any thoughts would be greatly appreciated.

Thanks!

Sandheep

 

 


NI 6323: DotNet4.5 in Example

$
0
0

 

hello,

I need to create a program for NI 6232 card with counter output in C#,
unfortunately in the folder National Instrument/NI-DAQ/Example
i can not find DotNet4.5 folder with example programs in C#,
but only DAQmx ANSI C with C++ code.
Does anyone know where I can find sample software in C# to NI 6232 to counter output?

 

Measurement Studio - RadixNumericTextBox - Set content to uppercase

$
0
0

Good morning,

 

as per topic object I'd like to set the content of a RadixNumbericTextBox to uppercase when selecting Hexadecimal display.

 

I'm currently using MeasurementStudio 2015 WPF controls.

 

Thanks,

Andrea

Diamond keto

$
0
0

Typically, an online  journal contains the basic records including calorie count, goals, and doctor visits. Placing a diet recipe in your journal can also help.

Nowadays, hundreds of websites are offering online journal accounts for free. All you need to do is sign up and the website has built-in software that allows for simple inputting of data in your part. Diamond keto Results will be up in no time.

o Your current body  - this includes your arm, bust, waist, hip and thigh measurements (ideally measured every two weeks)

o Daily calorie counts - these include putting in everything you have eaten for the day. You can also write down all the negatives that you were thinking for the day and turning those negatives into positive thoughts.

 

https://fitose.com/diamond-keto/

Console Offline Installation using Package Manager

$
0
0

NI has a desciption for offline installation using the Package Manager and a private feed:

    http://www.ni.com/tutorial/53918/en/

Question:

  How can I do offline installation unantended (console) from the private feed?

 

ERROR while installing VAS

$
0
0

Hello Everyone,

 

I've been trying to install VAS for a few days. I get the same error even though I format it. I couldn't install VS2008. Not suitable for Windows 10. But I've never taken these mistakes before. I can't make sense.

 

Thanks for advice

ERROR while installing VAS

$
0
0

Hello Everyone,

 

I've been trying to install VAS for a few days. I get the same error even though I format it. I couldn't install VS2008. Not suitable for Windows 10. But I've never taken these mistakes before. I can't make sense.

 

Thanks for advice

WPF Graph Editable Lables or Annotations

$
0
0

Hello.
I am using NI Graphs in my WPF application and I would like to add label (or annotation) at the position where the user double-clicked. These labels must be editable and movable. Is that realizable? Can you help me to solve this issue please? Changing color of the label would be also the nice to have.

Thank you very much for support.


Write 2D array row-by-row in Level 5 MAT-File Format

$
0
0

I want to write a 2D array row-by-row in "Level 5 MAT-File Format"

Example 2D array:

123
456
789

3 write operations, 123, append 456, append, 789.

 

So far, I've looked at Matio VIs in VIPM, the Matlab data plug-in and VIs posted by users in the forums.  I want to know a route that works with minimal hassle.  Can anyone confirm if row-by-row is possible?  Would I be better to save as TDMS, then convert to .mat as a post processing step?

Measurement studio VS2017

$
0
0

HI

What do I need to install on a Windows 10 box to run Measurement Studio with VS 2017?

Drivers?

Mike

USB-8506 Lin module communication with vb.net

$
0
0

Thanks in Advance,

 

I want to establish communication in USB-8506 (LIN) module and vb.net

I have downloaded and installed the NIVISA1850runtime from website,

is there any sample program to guide with next steps?

1.which dll to be add in reference

2.How to initiate read and write to lin module 

 

Any help will be appreciated.

Automation of target authentication with C# Veristand API

$
0
0

Hi!

 

I am trying to use Veristand .NET APIs to connect and deploy to a target systems (namely, a PharLap machine). I started from the tutorial C# Walkthrough: Opening and Running a Project. This is what I have:

 

var path = "I:\\vicrt\\demo_veristand\\vicrt_demo_abs.nivssdf";
Factory factory = new Factory();
IWorkspace2 workspace = factory.GetIWorkspace2("localhost");

workspace.ConnectToSystem(systemDefinitionPath, true, 60000);

 

However, the call to ConnectToSystem causes a WebDAV Login dialog to appear asking to insert username and password. I would like to automate also the authentication process because the application I am developing needs to be run in an unattended fashion.

 

Question: How can I programmatically pass username and password to the Veristand API?

 

Thanks!

Ivan

How to detect if DAQmx drivers installed before GetPhysicalChannels in C#?

$
0
0

Dear All,

There is an C# application in my laboratory to use DAQmx cards for data acquisition. This C# application works normally if DAQmx drivers have been installed already. Unfortunately, the SDD in my notebook was replaced because the old one failed last week. I run this C# application and it quit unexpectedly always. Oh! I forgot to install DAQmx drivers. After installing "NIDAQ1860f2Runtime" downloaded from http://www.ni.com/zh-tw/support/downloads/drivers/download.ni-daqmx.html#291872, it works normally. In order to avoid this C# application keeping crash if DAQmx drivers are NOT installed, I would like to add one or more commands in this C# application to check its prerequisite, i.e. DAQmx drivers installation. Is there any good idea to be added before the command "object obj = DaqSystem.Local.GetPhysicalChannels(PhysicalChannelTypes.AI, PhysicalChannelAccess.External);"?

OS: WIndows 10 Professional, C#: Visual Studio 2017 version 15.9.10

Both NationalInstruments.Common and NationalInstruments.DAQmx have been included in the reference of this application already. Also NationalInstruments.MStudioCLM.dll and NationalInstruments.NiLmClientDLL.dll are found in the folder "bin\Debug."

Viewing all 2000 articles
Browse latest View live


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