Quantcast
Channel: LabVIEW topics
Viewing all 68973 articles
Browse latest View live

FPGA Compile server communication errors due to local dialog

$
0
0

I need to vent a little.

 

Part of my workflow will often involve queuing up a few FPGa compiles before I head home for the weekend. Especially with Vivado compiles taking so long, this is certainly preferable to sitting at my desk twiddling my thumbs for hours waiting for a bitfile.

 

One thing keeps snagging me though: If any RT system I an currently connected to powers off, a dialog appears that the connection tot he device has been lost.  Not a problem you would think.  However, the presence of this dialog prevents the compile process from completing.  When I return two days later, communication with the FPGA server has been lost (due to the job being long finished and presumably scrubbed from the active jobs list).

 

Why is the ability to complete the FPGA compile process affected by this?  Does the entire business logic for the communication with the FPGA compile server require the UI thread?


LabVIEW in Touch Screen Environment

$
0
0

Hi team,

 

We are working on a project that should run on an touchscreen monitor. Can you please comment on these 2 points?

 

  1. What is the difference between using the normal LabVIEW for development of a Touchscreen application VS using Touchpanel Module?
  2. Also there are some features like Natural scrolling wherein the user can click anywhere on a control and scroll through it (like scrolling through messages in mobile) which is NOT supported in LabVIEW, as much as I observed. Here it does not scroll unless clicked on the scrollbar & for this the scrollbar should be always visible. 

Thanks in advance!

Priyadarsini S

Re: Seeing a hypervisor system in MAX

$
0
0

Hi

I have a NI PXIe - 8135, we run both "Windows 7 64bit" and "LabVIEW Real-Time" operating systems on PXI .

I want to run both operating systems simultaneously on PXI. So in NI tutorial found that NI Real-Time Hypervisor for Windows software enables to run simultaneously (http://www.ni.com/tutorial/11801/en/ )

In this link in section "1. Factory Preinstallation" said this software is preinstalled, but I can't find in this path [ Start >> Program Files >> National Instruments>NI Real-Time Hypervisor Manager]

 

Then I decided to install it and found that  NI Real-Time Hypervisor 3.0 for Window software supports Windows 7

but I can't found Hypervisor patch version 3.0 (http://www.ni.com/en-rs/support/downloads/software-products/download.hypervisor.html )

 

Please help me how to run "windows 7" and "LabVIEW Real-Time" simultaneously on PXI?

 

 

Regards.

 

 

MAX cannot save configuration file

$
0
0

Hello,

on a fresh installed Windows 10 with TS2017, LV2018, ICP18.0 i wanted to add a new DriverSession in MAX.

But when i press then i get the attached error (Unable to save configuration to the location).

What can i do to make this work?

 

Thanks

Inputting complex data to array max min function

$
0
0
Duplicate Post. Please don't create new thread when you are already being helped in the original thread.

Error SDK Hardware Key Not Found while migrating from Labview to C#, for iHR550+Symphony II

$
0
0

Hello,

 

I need to migrate control of iHR550 and Symphony II from Labview to C# to incorporate this functionality into larger project.

 

The Vis are in attachment.

Firstly I run "iHR550 & Symphony II Toolkits\Monochromator VI API Toolkit.llb\Get Monos From Config Browser.vi"

- to get information about Mono uniqueid and name from Windows registry.

And I run "iHR550 & Symphony II Toolkits\CCD VI API Toolkit.llb\read detector uniq-id.vi" to get uniqueid and name of CCD from Windows registry.

 

Then I use "Initialization of Mono & CCD.vi" to initialize mono and CCD. And here the critical places (as it turned out) are VIs "iHR550 & Symphony II Toolkits\Monochromator VI API Toolkit.llb\JYInitMono.vi" and "iHR550 & Symphony II Toolkits\Initialize CCD boris.vi"

 

Specifically these are methods "JYMonoLib.IJYMonoReqd.OpenCommunications" and "JYCCDLib.IJYCCDReqd.OpenCommunications".

 

They are working well in Labview (without compilation, VIs-exe I haven't tried, there is a report about problems here on forum:

https://forums.ni.com/t5/SignalExpress/Error-quot-SDK-Hardware-Key-Not-Found-quot/td-p/786744/page/2

https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/ActiveX-control-of-a-Horiba-Jobin-Yvon-spectrometer-iHR320-with/td-p/1980535).

 

But when I write the same in C# these methods don't see Sentinel key. It writes "SDK Hardware Key Not Found. Insert Key to continue".

Error occurs during JYMonoLib.IJYMonoReqd.OpenCommunications() and also during  JYCCDLib.IJYCCDReqd.OpenCommunications().

 

Here is part of the code (C# project is also in attachment):

 

private JYMONOLib.Monochromator mono;

...

mono = new Monochromator();
mono.Uniqueid = Mono_Unique_ID; //Unique ID from Registry, i.e Mono1, Mono2 etc
try
{
mono.Load();
mono.OpenCommunications(); //error SDK Hardware Key not found
}
catch(Exception e)
{
MessageBox.Show(e.ToString());
Emulating = true;
}

 

 

Please help.

Create class wire in VIM

$
0
0

I try to study malleable VIM but cannot get something here. This is my malleable VI. Just two class constants in two different cases.

 

 

vim.gif

 

However, only one can be used in main VI:

 

main.gif

If I change order of frames in the malleable VI, first instance of the VIM becomes connected with broken wire.

 

What do I do wrong?

 

Thank you

Application Builder - Don't Create Uninstall Option

$
0
0

Okay so I have an installer that installs other installers.  This main installer is made with InnoSetup and ISTool and it has the ability to do things like any normal installer would.  One of the installers that this main installer installs is an NI installer that was made with the Application Builder.  This NI installer is just there for the drivers.  There is no application in this NI installer and really is just the Additional Installers I selected.  No files are selected in Source Files.

 

So I have a main installer that installs an NI Installer, that installs various other NI Drivers.  This all works fine and is good.  What I'd like to know is if there is a way to not have an entry in the Add/Remove programs listing, for the NI Installer?  Basically I want to know if there is a way to not allow my NI Installer to be uninstalled.  This is because my NI Installer doesn't install anything, it just runs other installers, and having an entry in the Add/Remove programs listing for "NI Installer" that when uninstalled does nothing might be confusing to users of my software.

 

Another options might be for me to remove using the NI Installer, and just call the Additional installers myself from my main installer but there are lots of them and I don't know how NI does it.  There is also the NI Batch Installer Builder but again having to select the many NI installers one at a time might take a while and still might not work right.  And updating if new drivers are added would be a pain.  Really I just want to make an installer with the Application Builder, that can't be uninstalled, is there a way to do that?  Thanks.

 

Also I did search for this kind of thing and the search terms are hard to search on, causing me to find articles about uninstalling NI software.


5850E MFCs and Type K thermocouples be controlled by LabView

$
0
0

Hi everyone, 

 

    I am building a new reactors and I have 11 5850 E Brooks mass flow controllers and 6 zones to be heated using PID controllers and want to monitor temperature of 15 zones all thermal zones are connected by Type K wires, the question is: is it possible to control all of these by LabView and what hardware do I need from NI to accommodate their communication with a computer.  I am a beginner in this field and at least I need documents or any kind of guidance that you think would help.

Understaning Semaphore/queue reference memory usage

$
0
0

I'm using semaphores (implemented internally using queues) to protect simultaneous access to instruments. From what I understand, obtaining a reference to a semaphore and not closing it will lead to a memory leak.

 

I have a lockVI which obtains a semaphore reference but does not close it, and an unlockVI which obtains a semaphore reference and closes it. I would like to know if this would cause a leak. The profiler indicates that it does not.

 

test1.jpg

(Note that I'm not passing the semaphore reference from the lock and unlock VI, but relying on the semaphore name)

 

Does labview have a garbage collector which releases the memory in the lockVI? Or does the semaphore reference the lockVI get freed when the semaphore gets deleted in the unlockVI? 

 

If I were to release the semaphore reference in the lockVI, the semaphore would get deleted. Is it possible to clear a semaphore reference without clearing the semaphore itself even if there are no other references existing in memory?

 

Thanks in advance.

 

 

 

 

Least Squares (X,Y) point for 2D Intersection of Lines

$
0
0

I have 6 line equations (Y=mx + b) that do not intersect at the same point.  Is there any pre-written LabVIEW code that will take the line coefficients and find me the closest intersection (x,y) point using least-squares fit?

C Function Pointer in Struct

$
0
0

Hi,

I'm developing code to interface with a pci platform via LabVIEW on a RHEL 7.4 machine. I was successfully able to create the.so library file and I'm in the process of writing VIs to control the device using my .so and the call library function node. The part I'm hung up on is the pci_access struct contained in the pci.h include file. The struct contains function pointers, and I'm not sure how to mimic these function pointers in a cluster. So my question is two-fold:

1. How do I include function pointers in my cluster?

2. If including function pointers in a cluster is not feasible, how would I go about creating a wrapper function for LabVIEW to handle this struct?

 

I have attached a file that contains the pci_access struct. Also, I'm doing this development using LabVIEW 2017.

 

Thanks!

Jason

LV32 vs. LV64

$
0
0

LV 2016

 

Started a new project in LV2016 (to match customer's version) last Nov.

I installed LV2016 on a separate machine, and without thinking about it, installed the LV64 version.

 

I developed his code, built his app, and delivered.  All is well.

 

Then he wants another project, this one involving a cRIO with FPGA (which I've never used).  He sent me a sample of what they had started, and I couldn't open it without errors.  Come to find out there was a driver that was 32-bit only and his system was LV32. The first project didn't matter as it was generic code - no DAQ.

 

So, I just now installed LV2016 (32 bit), and the drivers, and I can load his sample project.

 

I loaded the previous project, and ran it (without saving).  It ran up to a point, and then hangs.  I deliberately didn't save it, not knowing what trouble that might cause. Had to abort LV and start again.

Debugging showed that a given user event was indeed being fired, but not being received.  I chased it and chased it, until I accidentally SAVED the whole project.

The next time it opened, it ran.

 

So, I moved to the 64 bit version, opened the project and found the same thing: the program, which previously ran fine, hung, at precisely the same point.

 

CTRL-SHIFT-RUN, which forces a compile of the whole thing, didn't change anything. It reports 184 VIs that needed saving.  But actually SAVING the project, reports 199. and now it will work in LV64, but not LV32.

 

Anybody know the rules for this? Haven't tried it on LV2018, but it seems odd to me.

 

Why would SAVING change things that the recompile did not?

 

HSDIO Generating waveforms using streaming labview - unable to stream past initial named waveform data

$
0
0

Hello, 

 

I am attempting a method of streaming a digital waveform that is too large to fit in the on board memory of the device from an array that is read in from a .txt file, while at the same time reading digital data from two separate NI PXI-6541 slots. I have looked at "Generating waveforms using streaming" document, and also the suggested example "Continuous Generation - Stream From Memory VI" as a starting point. 

 

The problem I am having is the following: While the initial data that I write into my named waveform is generated and I can see the digital output, after that, as I attempt to fill the data buffer when space becomes available, I get no more output. Digital data acquisition seems to start and run fine, but the digital generation just stops after the initial data buffer runs empty. I do not get any error. 

 

I tried to consult the example and also the forums but I still cannot get my labview to work properly.

 

Please help. Attached is .png and also .zip of labview code. Thank you. If you need anything else or have another question Please let me know. 

Search a pdf and display from that point

$
0
0

Hi friends,

I've got a large program that has a side feature of displaying a pdf document related to what the operator is working on. So they click the "display .pdf" button and I used Open URL in Default Browser.vi to display a pdf. This was very easy to implement.

Our operators are now requesting that we search that pdf and display the search term. So if the operator is working on Step 6, we'll want to open that pdf, search for the words "Step 6" and display that page of the pdf file. Right now we're displaying the pdf in a browser, but I wouldn't mind opening the pdf in another manner (in adobe or within labview itself). I've attached an image of how I'm opening the pdf right now.

Does anyone know how to search for words in a pdf and display the pdf starting at that searched term? LabVIEW 2017, if that matters.

 

Thank you for your time,

-Andy 


Path when using Open VI Reference in a built .EXE

$
0
0

I am using Open VI Reference to start a VI that will continuously run in a separate window from my main user interface window. (Best way to accomplish this?) That VI is in the path

<project directory>\Stats\Usage Watcher.vi . When run from LabVIEW, this works fine. But I use application builder to build a .exe file, it can no longer find its VI. Error 7, file not found. What is the correct form of the path when the VI's are built into an executable? I really wish the documentation for Open VI Reference would explain this, but it doesn't.

 

Init Usage Watcher.png

Event Structure displays Selection Change event in place of Timeout event

$
0
0

Event Structure displays Selection Change event in place of Timeout event also keyboard input event not have common options. 

Problem in Block Diagram Editing

$
0
0

Hello Friends,

 

I have problem in editing Block diagram of my Main VI. Whenever I try to move any object or wire on my Block diagram the whole block diagram moves (momentarily) with it and same happens when I place that object/wire at final position. This problem makes editing slow and also spacing between other objects in block diagram is also disturbed.

 

Please find below link of Video of the problem :-

https://youtu.be/asz84Wg6_n8

 

Please let me know the solution of this problem.

 

Thanks

Problem in adding two sinusoidal waveform charts

$
0
0

Hi,

I have made a continuous sinewave generator using basic sine function and plotted it on the waveform chart. 

I want to add two waveforms of different frequencies. I have sampled both waveforms at same dt.

But when I try to add the waveforms with different amplitude or frequency and plot it, I get unexpected results.

It seems that there is some problem with sampling. I don't know what it is.

Screenshot_30.png

Create build for specific software and firmware set on cRIO

$
0
0

The thing is that we produce a distributed system and as new FW and SW is released about every 6 months, we need to update every cRIO unit we distribute pretty much every time we get to our customer as we develop the app on units with newest device drivers. 

 

Typical problem: we are going to use remote updates through the Internet (downloading .rtexe and .lvbitx files), but cRIO at the customer has old drivers. If I build it with recent drivers, it won't work, right?

 

I believe it has something to do with Component Definition tab in Build properties window, but not sure how to exactly think about the concept. Thank you.

 

 

Viewing all 68973 articles
Browse latest View live


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