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

flat sequence

$
0
0

Hello Everyone,

Is there a way to use flat sequence from top to bottom?

Instead of left to right?

I'm used to seeing execution flow from top to bottom.

 

Br,

Ken


Power Outage now Labview won't start

$
0
0

After a power outage when I try to restart LabView I get an error and LabView will not start. I have tried to restore the PC to an earlier time and when I did that LabView would start and run but some of the information for the application was missing. I unrestored the PC and retrieved the vi the application was looking for and now when I try to restore back to the earlier date it will not let me do it. If I restore to the earliest date on the PC now it is after the power outage and I get the same error as before. Would anyone have any suggestions that I might try to fix this issue? I am running LabView 7.1 Full Development on a Dell PC running XP. This system is not networked. Any suggestion would be appreciated.   

Thank you

DLL Function Call questions

$
0
0

 

Hello,

 

I have some questions about calling a function in LabVIEW from a DLL file.

 

The function I am interested is basically like this:

SendFileA(HANDLE handle, const char *src_filename, CustomProc progress);

 

the "progress" variable is a structure, which is like this if I understand it correctly:

 

CustomProc(unsigned long size, unsigned long pos);

 

I can use this function to track the file progress. But I am not quite sure how to use it in LabVIEW. I can use it in C easily enough.

 

How do I configure a DLL call in LabVIEW, and use the structure variables to track my progress?

 

Similarly, I can pass a NULL in palce of the progress. Do I pass a NULL as a string input? How can I pass a null?

 

I am passing progress into the DLL as an Adapt to Type, Handles by Value.

The Call Library Function is coming up with a prototype like this:

uint32_SendFileA(uint32_t Handle, CStr src_filename, void *progress);

 

I am sorry in advance, but that's all I can share.

programmatic module configuration for cRIO?

$
0
0

Is there a way to programmatically access configuration settings for modules in use on a cRIO? I'm specifically looking to set the  RTD type for channels on the NI 9216 RTD module through VIs rather than through the project exporer.  That way, when the system is compiled and sent to a customer, they would be able to change that without requiring source code.

 

Has anyone done this?

Labview with ROCLink communication

$
0
0

Will active X work with any 3rd party software? Basically, I have the roc link software but there is no way of simulating data so I was thinking of having labview write values to the point locations to simulate it but I can't seem to make it work. 

Scan from string help

$
0
0

Hi all,

 

From the below string I want to obtain:

 

VALUE 1 I WANT

VALUE 2 I WANT

VALUE 3 I WANT

 

These headings or titles of the values will always remain the same in the string.

 

I'm sure this can be done simply using the scan from string function but cannot figure out the sytax/method.

 

Thanks.

 


 

 

Random text
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
VALUE 1 I WANT: 1234
6th June 2016
 
Random text
 
==========
 
Random text
 
Random text
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
HEADING 1
 
VALUE 2 I WANT: string
VALUE 3 I WANT: 1234
 
Random text
 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Best way to store class instances (or at least their private data) in a file for later use?

$
0
0
I've been messing around with this concept for a few hours and haven't found anything conclusive yet. I have a system where I want to store some instances of a particular class (private data has a 2D array, a 1D array, some booleans, some numerics, and a cluster of strings.) for later use. The goal is to store an array of these classes for customization purposes. I've experimented with the OpenG configuration file palette, particularly the "read/write section formatted cluster", but I get strange errors when I change around the private data and try to save the same instance. I was thinking about using the flatten to XML vi and wiring in the array of instances then reading it as an array, but I foresee similar problems. What other options are there? TDMS? An SQLite database? Should I do some further splitting into the very base types and combine them at runtime after reading them in? Any and all suggestions/anecdotes welcome.

How to lock boolean data indicator

$
0
0

Hello Guys,

Good night,

I have a problem with boolean indicator(lamp)

 

In my project,

When the value > 7 the lamp 1 turn on

When the value < 5 the lamp 2  turn on

 

i want, 

1. If the value > 7 lamps locked, so before the value < 5 the lamp 1 always on

2. if the value < 5 lamps locked, so before the value >7 the lamp 2 always on

 

Sorry 4 bad english,

 

Nb: vi on attach post

 

Thanks,

Stewkidz


Published Web Services, support directory dlls

$
0
0

I've been building my first application using NI Web Services. It's worked pretty well; I have a collection of web resources under my web service, with a startup vi set to my main application. When I run from right-click->Start, it starts up, publishes the service to the debug application web server and I can view and interact via the web. Great.

Similarly, I can right-click and do 'Publish', in which case the service gets pushed to the NI application web server, no longer on the debug port (8001) but on the normal port (8080). All well and good: pages are still accessible and the startup vi of my application clearly runs in the background to support it.

 

However, I have content (ZMQ messaging) that when built as an application requires dll's in the support (data) directory. Normally with a built application i'd just copy them in, but in this case the build files are only generated when i publish, and 'restarting' the service doesn't seem to do anything. In fact, given the different structure for files in this case, I'm not even sure where i'd put them.

 

Can anyone advise how to include support dll's for published web services?

 

Thanks

How to select alternative template if Selected template is not match?

$
0
0

Hello, 

 

I  am doing template matching using Ni vision.

I can compare templates properly, but in some cases I have to compare altenative template for example for one button there are two or three template if one doesnt work then go for other template. Here in attachment there is VI for template matching.

Currently I am doing like if template matching is 0 then false case and for false case I have provided path for alternative template. some how it take bit time to process. I hope there is some other ways to do so to reduce the unnecessory processing time.

I hope, I have explained my problem properly its bit confusing for me two explain.

 

Plese guide me how can I solve this problem.

Thank you very much in advance.

 

Regards, 

Ankit Ramani.

set file position issue

$
0
0

Hello everyone,

The issue I am getting is the folowing:

I would like to add to an already existing .txt file other data. To do so, I am using "Set File position"  function to determine the current file mark. This function accepts as an input ONLY a refnum!!!

but in my case I just have a path file ( not a refnum !!) . How can I generate from the path I have, a refnum to use it as an input for the "Set File position"  function ?

 

N.B.: Please read the comments in the VI Smiley Happy

 

Thanks in advance for any help you can provide,

regards,

F

 

Increasing Execution Speed

$
0
0

I have been working on a old program, adding another instrument to this VI.

 

It is a simple loop that monitors up to 3 DVM devices and takes measurements.  It also takes those measurement values and tells you whether or not they are above or below a certain threshold.

 

With the "Measure Every (s)" control set to 0 (the fastest possible execution time) I am able to clock:

 

1 reading with 1 DVM every 0.78 seconds.

1 reading with 2 DVMs every 1.5 seconds.

1 reading with 3 DVMs every 2.14 seconds.

 

I would like to speed this up.  In an older version of this program, I didn't use the "EMI Read Sub.vi" which you can see in the center of the program, and supposedly it was faster when the code was programmed right into the main block diagram and didn't use the sub.vi.

 

I am just wondering if anyone has any suggestions on how to speed this program up.  Does the use of sub.vis actually slow the execution speed down?

"Check if True, Then Continue" - How to Implement?

$
0
0

Hello LV Community,

 

I am trying to create a VI that checks if a certain condition (in this case, that the wavelength my monochromator is putting out is at the correct value) is true, then continues and takes measurement. I tried using a combination of a case structure and a timed sequence (see attached screenshot - I'm self-taught and a beginner so sorry if it's a disaster stylistically), but the case structure requires there to be an input from the "false" case into the tunnel. I just want it to do nothing if the case is false - any inputs from "false" would be added to the "sum array elements" and taint my data (right?), so I don't want that.

 

Thanks!

hello...interfacing of ultrasonic sensor and camera

$
0
0

i am making application in which ultrasonic sensor and camera is used.i am using myrio board.i have interfacing code for both ultrasonic and camera which i attached below.i need your help to build we can say logic.i want to capture the image using camera when distance measured by ulrasonic sensor is particular for example 10 inch.please help me..its very necessary for me.

NI-MAX, Windows 10 64 bit compatibility

$
0
0

I'm planning my (forced) migration to Windows 10 this summer for my PXI chassis and noted that NI-MAX 15.0 is not currently compatible with Windows 10, 64-bit OS (http://www.ni.com/white-paper/52818/en/). Has anyone heard any news on when/if NI will produce a compatible NI-MAX or remember historically how long NI has taken based on past Windows versions?

 


How can I change a variable in a flat sequence and pass it through the sequence to the Arduino output?

$
0
0

Hi all,

 

I am trying to change the pressure value on a regulator for certain time intervals, i.e, 5 sec 20 psi then 2 sec 5 psi. Since this is an easy task, I decided to use a flat sequence but I could not take the value of the pressure and feed it into the Arduino pin. I am sure that this is an easy job but I am not good in Labview.  How can I do this? 

 

Thanks in advance.

How to run NI vision VI in While Loop?

$
0
0

Hi,

 

I'm student in mechnical engeering, i have summer project about tensile test of adhesive assembly and i need to calculate automatically the surface of the crack so i choose to do it with NI vision tools,so my question is how can integrate my VI in While Loop to treshold my image and get the surface in real time

i put some example of image that i should process to get the crack surface of the adhesive joint. in purpose to calculate maximal stess before crack.

i have the 2015 labview but i could give the 2014 version

 

thank you in advance

Can we use same instrument at different places ?

$
0
0

Hi All,

 

Problem statement:

 

I am using NI SMU which I am initializing and configuring in TestStand at some point I am pausing my sequence and I want to measure the voltage i configured in TestStand using labview VI 

 

in order to do this I need to initialize SMU again in LabVIEW VI with out reset the device I achieved this.

 

but the problem is when I resume the TestStand Sequence and again try to configure or measure voltage means it is showing an error saying invalid session.

 

I know when we try to initialize the instrument it will close the old session and open new session.

 

are there any way of using same instrument in different places ?

 

please share your suggestions

 

thanks in advanceSmiley Happy

 

Best Regards

Manasa M

Automagically Run Dynamic Dispatch VIs

$
0
0

Hi,

 

I'm developing an API for several customers.  All customers get the same methods, but the prototypes and implementations might be different.  I have a method loader that looks like this:

 

Loader.png

 

The method loader dispatches the customer-specific prototype based on the customer's class that I load from configuration.  While there's nothing wrong with this loader, I'd really like to get away from "one state per method" because I have hundreds of methods to expose.  I have a standard name prefix for all command prototypes and implementations, so I'd like to load them from disk.  I'd like to avoid one class per method.  I'd like something like this:

 

Ideal_Loader.png

 

Which appears to be unsupported in LabVIEW 2015.  Does anyone know of a supported way to skin this cat?

 

Thanks for taking a look,

 

Steve K

How do I change my program to sample every other hour without being dependent on the actual time

$
0
0

Hello!

 

I am having trouble with a couple things with my program.

 

1- My original program samples data like an even/odd function so at 12 on the dot it wont sample and as soon as it turns 1pm it will sample. I am trying to fix my program so it isnt dependent on the time, so whenever I run the program it will run for an hour then not run for an hour and do that continuously.

 

2. My second question is that currently my data is being sent to a text file then I copy and paste onto excel. Since I am running a multiple week test it will be tedious to continually do that. How do I simply export the running data onto a formatted excel sheet bypassing the text file?

 

Thanks in Advace!

Viewing all 66749 articles
Browse latest View live


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