We have some RT targets writing cluster data to a Network Variable on a Windows machine. The variable type is string. Data is written using "Flatten To String". Everything worked fine when reading the variable and unflatten the value in Labview.
Now, we tried the read task from Measurement Studio .NET. Unfortunately, the NetworkVariableReader always returns an empty string. I'm afraid that marshalling the "binary ANSI string" is not supported. I can't find any limitations for strings in the Measurement Studio docs. Furthermore, passing a flatten string through a Labview .NET Interop Assembly works in both ways.
Final question: How do I read a flatten string from a Network Variable in .NET? Refactoring RT code is not possible.
Meas.Studio 10: looking for equiv code that's emulates the "init/cont" (T/F) setting in LabView for setting initial conditions or past filter condition for a Bessel Filter application.
I am loading meters dynamically with an items control panel and formatting the data and style via data template. The binding for the meter value and range works fine.
I want to highlight a range on the meter scale that works like the WinForms ScaleRangeFill.
I read for the WPF controls, this must be done with nirimitives. I followed an example shown for a guage.
I can manually code the Baseloine RelativeOffset and RelativeLength values, but they will not bind to a property of the current object handled by the data template. Below is my XAML.
I cannot dynamically bind the Green range shown in this screen shot. I can only hard code the values in the XAML.
on the plot ,the CURSOR is moved automaticly left,this is the question:how can I fix the cursor at the position.
on the CWgraph,there is a option:snap to plot with fixed x,but at the current measurement studio,only the item:snap to plot,how can i fix the cursor at a position on the plot.
when running the C# spectrum program,on the plot ,the CURSOR is moved automatically left when the spectrum-graph waves.When the spectrum-graph doesn't wave,the cursor stop at the right fixed position .this is the question:how can I fix the cursor at the position when the spectrum-graph waves.
In the old version measurement studio,the CWgraph has a option:snap to plot with fixed x,but at the current measurement studio,only the item:snap to plot,how can i fix the cursor at a position on the plot.
I use the example for measurement studion "ReadDigChan_ChangeDetection", If I add a simulation device of PCI-6515 in MAX, it works and when I start the program, I can ready the value of each line. But when it works in a real PCI6515, it will not show any signal of the board and give me an error like timeout.
My question is. even the signal is not always changing as the simulation, but why it doesn't show the first time value? and when the first time value I can see, how can I keep monitor the signal? Put the time out=-1? I tried it, looks the program no response.
if I run single reading, It works ok.
I don't want to use timer to read value.
I use visual studio 2010 and Measurement studio 2015, Max 2014.
myDigitalReader= new DigitalSingleChannelReader(myTask.Stream);
// Use SynchronizeCallbacks to specify that the object // marshals callbacks across threads appropriately. myDigitalReader.SynchronizeCallbacks = true;
runningTask = myTask; myDigitalReader.BeginReadSingleSampleMultiLine( new AsyncCallback(OnDataReady), myTask);