this is where i believe to be the problemIm currently working with a HMT330 Visala dewpoint and temperature transmitter and its currently timing out everytime i start the program. i need some of the information parsed, this model isn't currently supported by labview, however in the past we were able to get it to work. a few errors that i get is "-1073807346 VISA write" "-1073807246 propert node (arg 1) in VISA configure" and "-1073807339 VISA read" . Ive tried all the solutions online with not much success. attached is some of the scripts running if more information is needed i can provide it if need be.
Error -1073807339 VISA read
Issue converting Map to Array on sbRIO Target
I have been wanting make use of the new Maps datatype but I may have run into an apparent bug when running on a sbRIO 9637.
I have a very basic Map with a String Key and a Double Value. When I try to convert my Map to an Array using a For Loop, the result is an incorrect value. When I inspect the flattened string, the bytes appear to be out of order and some missing.
This behavior does not exist when I use a Single instead of Double datatype.
I have also tested this on a 9033 cRIO and My Computer targets and they function as expected.
Can anyone else confirm this incorrect behavior on an sbRIO 9637 or any other target?
Front panel always popup
Hello everyone, I am writing a hidden program and show the program. When the program is in show program state, I want it to float above everything I'm working on and can't let it down when I do anything. I want to ask labview can it do that? I tried several methods as shown in the picture but it failed? Can someone help me with this problem?
Can someone help me with this problem? Thank all.
DH parameters in Robotics module are classic DH parameters or modified DH parameters?
I'm learning labivew for now.
I'm going to use the Robotics module to have some simulation. But one confused me is that the DH parameters can be divided into 2 types, one is classic DH parameters and another is modified DH parameters. They are quite different and the DH parameters in the book "Robot dynamics and control", Mark Spong 2nd edition (2020) is the classic one I think, so I'm wondering the type in labview.
Thank you!
how to deploy NI Labview 2020, NI DAQmx, NI FPGA, NI Realtime, NI VISA, NI Serial and NI MathScript only and silently
Hello dear all,
The question is quite simple and i never found the solution in the documentation.
In the past we download all separetly and use it like:
"setup.exe" /r:n /qb /AcceptLicenses yes /disableNotificationCheck
and do for all product that we need and separately!
This made it possible to use tools like simple command line scripts to integrate this into microsoft or altiris deployment solutions.
But yet we can only download a bundel of lots of programs that we dont need and install all or nothing...
It gives me a headache and although I think I can see how it works, I can't figure out how it can be done ...
So please, can someone tell us how to do that?
Even to install the package manager in 2019, it was a tough test.I have not yet succeeded with the 2020 ...
Big thanks in advance!
LabView NXG 5.0 Python Node
Hello together
I'm working with LabView NXG 5.0 and there is a "python node" available. I would like to to execute following Python-Code in the Python-Node in LabView NXG:
def ReadData():
import obspy as ob
st = ob.read("C:/Users/Basil/Downloads/DT0321__.BBN")
array = st[0].data
return array
The function "ReadData" should read the data from a MiniSEED file. MiniSEED files are used for seismic data recordings. In this function, I use the function "read" from the Obspy-Package. This package is imported with "import obspy". This small programm works in the Python IDE, but if I execute it in LabVIEW NXG 5.0 I get following Error-Code 1671. A printscreen of my VI is attached.
*******************************************************************************************
Python-Funktion aufrufen in Function.gvi<APPEND>
Module Path: C:\Users\Basil\Documents\pythonProject\main.py
Function Name: ReadData
Python returned the following error: <class 'ModuleNotFoundError'>
No module named 'obspy'
Call Stack information:
File "C:\Users\Basil\Documents\pythonProject\main.py", line 2, in ReadData
import obspy as ob
ModuleNotFoundError: No module named 'obspy'
*******************************************************************************************
Is there an addition step, which I have to do so that I can use functions from a python library like Obspy? Does somebody know what could be wrong?
Thanks for your answer or hints
Best regards
Basil
Fatal insanity issue after using DSSetHandleSize in a C Dll
Hi,
I encounter a problem unsing the function DSSet handle size in a DLL.
I have to make a wrapper for an API that will return strings of various size. Since I can only know the length of the string in my C wrapper I figured out that I should use the provided DSSetHandleSize func in order to resize the labview handle to hold the string i'm trying to retrieve from the API.
At first sight it seems to work and I retrieve a string of the right size. However, if I then try to save or touch something on the FP of my VI, labview crashes sending me this error :
" e:\builds\penguin\labview\branches\2017\dev\source\panel\fpsane.cpp(548) : DAbort 0x1A7102DF: Fatal insanities(0x00000400) exist in ReportInsanities, "
My C code is for now fairly simple (test purpose only) and is basicaly a simplified copy of the example given by Ni in the " Libraries and exectutable " example project.
void Test_Func (LStrHandle x, LStrHandle y){
if ((*y)->cnt < (*x)->cnt )
{
/* Adjust the handle size to hold everything we want to put in it */
DSSetHandleSize((void *)y, (*x)->cnt );
}
for(int i =0; i <(*x)->cnt; i++)
{
(*y)->str[i] = (*x)->str[i];
}
(*y)->cnt = (*x)->cnt;
}
and here is the corresponding labview diagram :
the parameters of the library call are both set to string, string handle.
I use Labview 2017 32bits and the library is compiled using CVI 2019
What I found the most intriguing is that if I modify the VI given by NI in the " Libraries and exectutable " example project in order to triger the condition to pass throught that DSSetHandleSize, I have no crashes but it does not work, the string I retrieve is of the size of the string I feed in. Does the provided C example really are what's complied int the example DLL ?
Get application name via Windows API or another source
I have created a small program that goes out to the Windows API and returns the active window title. This works OK as I can parse the suffix of the window title string that it returns and use a lookup table to tell me what program is running.
I want to take it a step farther. I want to return the application that is running instead of the window title. I've added the GetWindowThreadProcessID which, I think, returns the Thread ID of the active window.
Based on that, is there a way to return the application name based on the window thead ID? I am not very well versed in the Windows API but wondered if someone has tackled this before and may have found a way to get this information.
Programatically install font with LabVIEW
Ok, I have been banging my head against this problem for a couple weeks and finally decided to do something about it. I have seen this problem come up every now and again and have never seen a good solution - how to install fonts programatically from LabVIEW? You really only need to add a registry entry pointing to the path of the font, but you have to go through UAC to do so, and Windows recommends putting fonts in the Windows\fonts directory, which again requires UAC access. So I made a small project that has the build for an executable that requires admin privileges so it can both copy the font, and add the registry entry. Then I have a vi that acts like a wrapper for the exe that first checks that the file is a valid font, and that it is not already installed to avoid the UAC triggering if it's not needed. This isn't 100% automated as the user still needs to give admin access, but if you put this somewhere in your own project it should only need to be run once.
Built in LV2017
How do I get a T/F condition where if true it changes between true and false every 5 seconds?
Hi, I have a system where I need to turn on some water pumps depending on the placement of a fish in two tanks. I pretty much have all the code down except I want two of the pump not just to run continuously whenever they are receiving a true signal, but to be turned on for x time and turned off for y time.
For example, be on for 5 seconds and off for 5 seconds continuously.
I tried with a flat sequence structure with 3 sequences: on, wait for 5 seconds, and off. But could make it work.
Can anyone help me out?
Thank you.
dbc file recognise error between CANoe and Veristand
I have download a .dbc file from website, to do some test .
when in CANoe, Message 0x666 is Event Message, but when in Veristand , it is Cyclic Message, What is wrong ?
in CANoe
in VeriStand
How to give same inputs but multiple times on XY graph
I attached image of Multiplot XY graph connection.Graph is showing current vs Fault no.This diagram is only for One fault like that i have to make for 45 faults.I have to connect all 45 faults data on only one XY graph.Every fault has their own modbus address.
I made this for one fault but I am facing problem for more than one.Please Help and give any suggestion.
NI MAX 连接UCMOS05100KPA相机问题
UCMOS05100KPA相机 的 DSHOW驱动也装了 NI MAX 的 IMAQDX也装了 NI MAX 可以识别到相机 但是点击连接相机设备时 NI MAX直接就崩溃 闪退 。
请问有那个大佬遇到这个问题?
Problem with the web service while the .exe is running
When I started the web service in the project file => The web service ran correctly and all the variables are shared to the website and the values are displayed in the web site (created using the web service).
But, When I have created a installer => The web service (website) is running but the values are displayed as undefined in the web service (website).
I have attached the images of project (web service) and exe (web service) for reference.
Can anyone explain what may be problem?
Thanks in Advance!!!
How do I de-register a Windows WMI Event watcher before timeout in LV
My code watches for an event where my Toshiba USB stick is unplugged. If the event does not occur within 30 secs, the code times out. However, in the case that there is no disconnection of the USB stick (no event generated), I can't end the program before the timeout period of 30 sec. Is there a way to end the program before the timeout period? Any help is appreciated. Thanks in advance!
Why different cameras, some will cause lagging when displaying, some will not.
The attached program. The main program is "Camera TEST2" and the other one is subvi that is needed.
My problem is that when I connect two cameras from "Dinolite" company, there is no lagging at all. However, when I connect two cameras from Supereye company, there is about 2 sec lagging of the image.
To say this question more general, why different cameras, some will have lagging problem in my program, some will not. Note: all cameras are usb 2.0, so it may not be the data flow problem or wrong usb port on PC.
Any possible guess and comments are welcome. Many thanks!
How to display 1 to 10
Hello Sensei,
My name is Mirza. I am currently new in LabView. I just come up with a simple idea to display number 1 to 10 using 7 segment display. I want the 7 segment display display and change number for certain delay. The problem i encounter is it just can display one number only. I dont know how to make it display next number. Someone please help me.
Hereby, i attached the Vi
ActiveX queue and events
Hello,
Please see the snippet.
I am trying to duplicate the top routine using 'primitives' as in bottom example. Since the password-locked AX-Events vi's are buried in the vi.lib, just wondering if these useful sub's will be deprecated soon.
I cannot understand how to construct in my limited exposure to ActiveX and COM.
Perhaps this has been discussed before, but not successful after a moderate search.
Thanks for any comments or links.
Chris
MyRio HTTP Get error code 7
Hi guys,
i'm trying to build a program inside MyRio device and having a difficulty running this http get and post.what portion i'm missing?
this is the error message
Error 7 occurred at Call Library Function Node in LabVIEWHTTPClient.lvlib:GET.vi:390002->Untitled 1.vi
Possible reason(s):
LabVIEW: (Hex 0x7) File not found. The file might be in a different location or deleted. Use the command prompt or the file explorer to verify that the path is correct.
=========================
Nonexistent GPIB interface.
this are the library i already installed
Anything else I'm missing?
Waveform icon history data problem
We all know that the historical data of the waveform chart can be cleared through the attribute node, but assigning an empty array to the attribute node will clear all the historical data. But I only want to clear part of the historical data. What should I do?