I have a main program, and I have a button on the main program that opens two vi's simultaneously. The problem is that both VIs literally open one on top of the other. I would like them to open simultaneously side by side. Is there a means of accomplishing this?
How to program where a subvi appears on the desktop?
Error 7 at Get LV Class Default
I recently finished a program that runs a test stand. The uncompiled code (the .vi before I make it an .exe) works fine. However, when I compile the code into an .exe, I get an error:
Error 7 occurred at Get LV Class Default Value.vi
Possible reason(s):
LabVIEW: File not found.
I have also attached a picture of the error message.
I went through and troubleshooted the entire VI, and narrowed it down to a subVI that is responsible for getting values from the program and printing them on to a label. I have attached this VI also. I also just compiled that code (the label VI) to see if that was the problem, and it gave me the same error message.
I searched the forums for this issue, and found this knowledge base article: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019O6PSAU&l=en-US
I followed the steps it listed and it still will not work. I have also attached a picture of the project file. I have also searched the forums for the same error and found nothing that works.
I am completely stumped. I have no idea how to proceed from here. I am using LabVIEW 2017. Any help would be greatly appreciated.
External triggering with NI-5641 Transceiver for Analog Data Acquisition
Hello Guys! I am a complete fresher to LabVIEW working on NI PXIe-5641R transceiver. I wanted to trigger an analog data acquisition process. I have already built my project which can take the I/Q data from the analog input and write it to a TDMS file. I am trying to trigger the writing process of the analog inputs with a pulse signal from the signal generator to the trig pin of the transceiver. I can't figure out what changes I must do in the FPGA VI file in order to accomplish the task.
transmation of data through using VISA write and VISA read countinuosly update the data,please modify my code.
Hi sir\ma'am,
can you please modify my code,my application is i have to transfer the data continuously and user want to operate the process , i done little work and i am trying its,
can you suguest me (or) can you modify my code ,
i'm sending my VI ,please go through it,
thanking you.
regards
saikiran busharaju
LV 2019 x64 Icon editor - error 6
Hi,
I'm running into a problem with the icon editor in LV 2019 64 bit. I shows an error dialog (below) and then shows the old editor.
The only thing I did before opening it was opening a project previously saved in LV 2018 64 bit (which also had an icon editor issue, but without the error dialog).
I also tested on LV 2015 SP1, 2017 SP1 and 2018 SP1, only 2017 SP1 isn't showing the old dialog. 2015 SP1 and 2018 SP1 all revert to the old dialog after a few seconds.
Please help. It affects to much of my system. Somehow some shared component that is used by all or most of the LV versions on my system is corrupted.
IF statements for LabVIEWCLI Batch Files
Hi Team,
I'm creating a batch file for automating tests and builds (using Jenkins) but I'm struggling to work out how to to do a basic IF statement if the build fails.
Basically, If a build fails, I want to EXIT <error code>, ELSE carry on with the rest of the script
If I send a command like this:
LabVIEWCLI -OperationName ExecuteBuildSpec -ProjectPath "<path>" -TargetName "My Computer" -BuildSpecName "exe"
and it fails, it will return something like this:
Operation output: Error Code : 7 Error Message : Invoke Node in GetTargetBuildSpecs.vi->NI_App_Builder_API.lvlib:Build (path).vi->ExecuteBuildSpec.lvclass:RunOperation.vi:5910001->CoreOperation.lvclass:CallRunOperation.vi:4230002->ExecuteRunOperation.vi:5250001->ExecuteOperation.vi:6900002->ExecuteOperation.vi.ProxyCaller<APPEND> Method Name: <b>Project:Open</b> An error occurred while running the ExecuteBuildSpec operation. ExecuteBuildSpec operation failed.
Or if it is successful it will return this:
Operation output: Generated files are: C:\Users\Software\Desktop\testcode\builds\exe\Application.exe C:\Users\Software\Desktop\testcode\builds\exe\Application.aliases C:\Users\Software\Desktop\testcode\builds\exe\Application.ini ExecuteBuildSpec operation succeeded.
Can someone let me know, how based on the return data I can use simple if statements to either 'stop and return an error code' or continue with the rest of the script?
Lenteur de demarage executable labview
Converting Amplitude-Time waveform graph into Intensity-Wavelength graph
Hi,
I want to convert amplitude-time graph to intensity-wavelength graph in order to catch spectral wavelengths of flame with sodium. Can you please help me on how to convert amplitude-time graph to intensity-wavelength graph?
Thanks in advance !
Labview function similar to numpy.random.normal
I am trying to generate random numbers with an underlying gaussian distribution, similar to the output of the numpy (python) function numpy.random.normal.
Specifically, I want to supply a mean and variance, and have the function return numbers close to the mean with a higher probability than those further away.
I am at a complete loss about this. None of the supplied 'Gausian VIs' seem to be able to do this and I dont know how to implement his myself.
Thanks. Doug
Open Python console
Hello,
I'm using the new Python Node to integrate functions, written in python, into Labview. Now I need to debug the Python code and, to do this, I need to open the Python console. Is there a way to tell the Python Node to open the console at startup?
Thanks a lot,
Francesco
Storing continuous stream of data
Hello,
I am currently working on writing a vi that will take 200 hz of data from multiple sensor channels and store the data points
Heres what i have so far. i am using a mqtt server to pull the data from
The "rx value' and 'rx message' are what i need to take and ideally build into a continuously updating array
right now, the data updates as a single string but does not store
IP Integration
Hello,everyone! I'm using the IP Integration Node in Labview FPGA .When I click the 'generate' to generate the support file , it keep the state just like the image shows for a long time and cannot generate the support file.Anyone knows how to solve this problem? Thanks in advance!
Reading from an XML file
Greetings everyone. This is probably a simple task, but I'm really struggling. I am currently trying to read some variables from an XML file, and so far I've been unsuccesful.
-Already tried JKI's easyXML package (https://vipm.jki.net/package/jki_lib_easyxml), and it's not really been easy.
-The attached XML file does not follow the LabVIEW schema.
-I require only to be able to read the variables, to incorporate them to the running VI, no modifications needed.
I would just like to know, if there's already a standard method of doing this and I'm trying to reinvent the wheel, or if I need some more specific data management. Have also tried using the standard LV XML parser, but that has been even less succesful.
An UML modeller issue to reverse engineering a project
Hi guys.
I am tackling to read a huge project, which is produced by previous researchers.
Unfortunately, since old researchers didn't remain documents, I try to make block diagram to understand the relationship between each VIs.
UML modeler seems useful for this purpose but reverse engineering function of UML modeller stop with error when I targeted a top VI in my project.
The error mentioned as attached picture.
I imagine that my project is too large for UML modeller and it stopped.
Do you have good idea to run UML modeller on huge project?
How should I expand this datalogger to multiple channels?
I'm working on a program which will collect data from a USB-6229 DAQ. In its current revision there are a couple of issues, but it does most of what I want it to do. My next goal is to expand the program to allow monitoring of and logging from multiple channels. So, here is my question:
1) What is the cleanest way to get this to log from multiple--up to sixteen--channels which could each be measuring different quantities and thus, might require different unit definitions? I know it's possible to select several channels with the "physical channel" control, but as far as I know, all the channels selected that way must have the same units.
2) What would be the best way to display up to sixteen channels? I know you can display multiple channels on top of each other in the waveform graph, for example, but any more than three or four data streams and it gets pretty difficult to differentiate them. I thought about making a front panel with sixteen different waveform graphs, but it seems like there should be a more elegant way to do it.
Any suggestions are welcome.
Reading data from Hamamatsu dental probes
I am trying to use a Hamamatsu Dental Sensor to measure the position of a fan-beam x-ray. Hamamatsu supplies a .dll and header file.
The wizard successfully handled the simple commands such as those to open and close the device but some of the more complex commands are giving me headaches. Here is the simplest example of the ones that I can't get to work:
Header file:
DWORD WINAPI HPK_GetSensorInformation (
HANDLE DeviceHandle,
PUNIT_INTEGRATION_PARAMETER pIntegParam,
PUNIT_SENSOR_INFORMATION pSensorInfo
);
Here are the two structures that are referenced:
typedef struct _tag_UnitIntegrationParameter {
USHORT Xray_Incident_Threshold;
USHORT Integration_End_Threshold;
double Integration_Time;
} UNIT_INTEGRATION_PARAMETER, *PUNIT_INTEGRATION_PARAMETER;
typedef struct _tag_UnitSensorInformation {
UNIT_INTEGRATION_PARAMETER IntegParam;
USHORT Lot_Serial_No;
UCHAR Sensor_Type;
UCHAR Firmware_Version;
} UNIT_SENSOR_INFORMATION, *PUNIT_SENSOR_INFORMATION;
Here's the calling program, which opens device, opens a data pipe and then reads the device setup parameters:
The cluster of three values is the input to the structure UNIT_INTEGRATION_PARAMETER, aka pIntegParam. These are written to the device and seem to work OK. I don't assign anything to the other structure, UNIT_SENSOR_INFORMATION, aka pSensorInfo. The return for pIntegParam contains the values that I assigned. The UNIT_SENSOR_INFORMATION structure contains the structure UNIT_INTEGRATION_PARAMETER and the return for pSensorInfo contains the information that I passed in through pIntegParam. It also includes the Lot_Serial_Number, and should return the strings Sensor_Type and Firmware_Version, which are all stored in the sensor. I do get a value for Lot_Serial_Number but neither of the other two.
From what I've read on the forum the strings are actually pointers. How can I access these values? I've seen many references to using wrapper .dlls but I'm no C programmer. I also don't have the source code.
Any help out there?
Actor Framework - Actor freezing up after first message
I'm having a problem where one of my actors never closes. It seems like the Actor Core never receives the user event stop signal. I figured out that Receive Message.vi is stalling out on whatever the first message sent is, but I still don't know why. I'm not having this problem on any of my other actors.
I made an empty subVI and put an instruction to send a message to run in in the Actor.Initialized event from Monitored Actor. I found that if I have the Do vi for that message set up to return the Actor before it is sent to the subVI then the program runs fine. However, if I return the Actor from the subVI, then the Actor doesn't receive the quit message when I try to shut down the application. This subVI has no block diagram, just error clusters and Actor control and indicator hooked up to the connector pane. Unfortunately, if I try doing this "fix" with a subVI that actually does something useful, the Actor still seizes up and doesn't quit. Any suggestions?
Networked use of pci gpib cards
I have a question re. the system level use of the 488.2 and visa interface. I am familiar with using gpib accessible apps on the local machine where the pci-gpib card is installed. Does all of this newer 488.2/visa driver stuff allow you to run a gpib accessible app on another machine and see the remote pci-gpib card as a virtual local adapter? If so, is it as easy as installing the 488.2/visa driver on both machines and the app (ie. Labview, matlab) automatically finds the remote card?
Error 5001 Labview
Hi , I have a problem . I am struggle for two entire days . I am new to LabView and I can't figure out what I have to do when I occur the 5001 error when I am running the linx example. The first one with the Led it run ok , but the one with the temperature sensor dht11 linx doesn't . Is there anybody who can help me ? Thanks !
SysExec (cmd) : Run as administrator
I have read older posts about trying to make LabVIEW's SysExec function (command window) run as administrator.
The goal is, in our LabVIEW 2019 app on Win 10, execute a single command (SysExec) that runs a third-party non-LV exe, with some command-line options. The command doesn't work unless the "caller" (LV or the Windows command prompt) is run as admin.
Seems like it's necessary to do one of the following:
1. Run our LabVIEW app (built exe or LabVIEW itself during development) as admin.
2. Lower Windows UAC setting.
3. Create an official manifest for our LV app.
#1 & 2 might not be allowed at some of our customers (those with an attentive IT dept).
#3 seems like a lot of trouble, or am I wrong about that?
Are there any updates on this, any new tricks?
-- Meg