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

CRC-16-DNP Calculation Trouble

$
0
0

Having trouble implementing a Labview version of a CRC calculation performed in our FW. This is for a 16 bit DNP protocol. I have implemented a very simple VI that I believe is true to the code implementation, but I am not coming up with the same results.

 

Test message is

05 64 0b c4 01 00 40 00

with a proper CRC of 

A72E

 

I however get a CRC calculation of D158. Not sure where I have gone wrong. Any help would be greatly appreciated.

 


IMAQ Rotate doesn't work on deployed computer

$
0
0

It's been a while since I used LabVIEW and I'm diving back into this for a new project.  I'm hoping you folks can help me out.

 

I am using IMAQ Rotate to rotate a camera image 180 degrees.  The image feed is viewed on the front panel and I can confirm this works as expected on my development computer.  Once I deploy it to the system's dedicated computer using the application builder, the front panel image feed just shows a white screen.  No image, flipped or otherwise! 

 

Any ideas?  

 

Thanks.

Error -1074395247 occurred at IMAQ Match Pattern 3

$
0
0

having issue with pattern match in LabVIEW 2012, always seeing error code
Error -1074395247 occurred at IMAQ Match Pattern 3

Possible reason(s):

IMAQ Vision:  (Hex 0xBFF60791) Invalid template descriptor.

I am using IMAQ 4.7 with VISION2012 in Labview2012,

 

anyone has ever encounter the same issue? seems i have issue with my created template but see no way to fix. i have example code attached, thanks

Program hangs when stopping consumer loop

$
0
0

Hello, I made program that uses occurrences, it's similar to example provided with LabVIEW, but I don't know why it's hanging when I trying to stop consumer loop. The True value is passed by Global Variable and than nothing is happening.
What am I doing wrong?
I know that occurrencies and variables are not best for such purpose, but I have to make some program with them because I'm preparing some workshop to my friends about synchronization pallete.

I'm using LabVIEW 2016 32bit.

Thanks for any clues Smiley Wink

Import Shared Library Wizard: Declarations not found

$
0
0

Hey, I have proprietray C code and header files that I want to use in LabVIEW. As LabVIEW suggested, I used the Wizard to create the wrappers. I worked my way through the wizard, and in the step Select Functions to Convert, I get the message 

"The shared library contains 342 function(s). The declarations of 235 function(s) are found and recognized in the header file and these function(s) can be wrapped. The remaining function(s) cannot be wrapped.".
The error messages next to the functions that could not be wrapped say that various symbols are not defined: DOUBLE, DWORD, TASKID, LPCSTR, BuildResult, etc. It also says that a header is missing ("wtypes.h"). 
Now, my C knowledge is (very) sparse, but I guess that I need to define DOUBLE, DWORD, etc. in the preprocessor in the Wizard. I am also guessing that the file "wtypes.h" is not shipped with the rest as this would then allow anyone to build the wrappers and not buy their ready-to-use USD$800 LabVIEW vi's.

Any hints what I must do to get ful functionality?

Cheers
Doug

Having prolem with CRIO

$
0
0

Hi guys,

I'm using Compact RIO9066 and NI C series module 9205 and 9264 to do the measurement in the project.

I've installed all the software required(Labview2015, Real-Time module 2015, FPGA module 2015 and

CRIO drive devices) and connect the RIO9066 to host computer with USB cable and put NI 9205 and 9264

into the slot of the RIO9066.

The problem is that I can find the CRIO9066 in the MAX but cannot find the NI 9205 and 9264, I don't know 

what's going on there. 

I would appreciate it if anyone could help me!

Regards!

00.PNG

000.jpg

State machine no longer in design patterns

$
0
0

I have been using Labview to program user GUIs for 15 years now as a sideline to my work. I started with Labview 7 (or 6, can't remember) and saw new features being added over the years to every new release. It used to be a secret (or it seemed that way) back then that in order to avoid spagetty-code, a state machine design was a good practice. Along came then a new Labview version (again forgot which) having design patters as templates, and sure enough the state machine pattern was one of them. But then in the later releases state machines are no longer included in the templates' collection. I've always wondered why. Is NI advicing us to used other patterns instead? I still use state machines extensibly, but started looking into the others as well (specially events). I still find code written as a state machine to be the most efficient and lean, easy to mainain, document, and understand. I've had some nasty effects using events. Any one agrees?

Zeromq Library for Lynx 3.0 on Raspberry pi target

$
0
0

Hi everyone,

After a long time playing with Yocto, I discover the good news with easy-to-use Lynx 3.0 for raspberrypi, and the bad news as some features of the LabVIEW Real-Time module are not supported on LINX targets, like the shared variables engine (no streams).

But what about bridged, networked and deported software ?
So, to make up for it and have fun, I thought about the 0mq library.

Although I'm not sure that's fundamentally necessary, I crossed compile the Zeromq 4.2.0 and the last labview-zmq libraries for arm7 target with that perfect tutorial :
https://decibel.ni.com/content/docs/DOC-36921
(thanks thanks thanks M. smithd)

After installed it on my raspberry pi target, it's working with a simple Publisher/Suscriber example in source.
(thanks to Amaury Laurent for the code -see his website http://amaury-laurent.fr/, it's fun)

I haven't tested all the functionnality and possibility given by the 0mq technologie, or did stress test, but right now I have datas from my rasp and lattepanda.

I've attached the librairies, the platform.hpp and the labview code (Lv 2014 SP1) for those who think this may be useful to them.

Have a nice day.

Florent Morandat


best way to get exponential decay of signal

$
0
0

Dear Sir / Madam

 

i had a question that i have a waveform signal i need to find exponential decay and damping  of the signal. here i have multiple options but i  get different results.

calculating damping is important

 

 

Controlled timimg

$
0
0

I am using several signal to control a valve. IU want to control the injection duration theefore, I am trying to control the time generated signal is turn on for. I have several signals in the loop and want to run the VI for 7 seconds then turn it off the signal but still have the other loop in the programme still running. In other words I dont want to shut down the entire programe after 7 seconds but just the generated valve signal. I have tried using an Elaspsed time IV but this does not seem to work..

Please see my VI attached.

Controlling a while loop

$
0
0

Hello,

 

I have a text file called "displacement.txt" which contains X and Y coordinates. For the moment, I just use X.

I use X coordinates to light on a LED. When X - (X-1) > -100, the led lights on otherwise it's off. I make a boolean button called "Start", when It's true, the equation (X - (X-1) > -100) can process.

 

I want when the case structure is false ( Start = false), the while loop wait until Start is true to continue because in this case, the program continue to calculate X coordinates.

 

For example :

 

When the current value of X is 50 and X-1 is 100 and Start is false, I would like the program to wait with X = 50 and X-1 = 100 until Start is true. 

 

I don't know if it's clear ...

 

Thank you, best regards.

How do I update a network variable once created

$
0
0

I created a custom control to use as a network variable, but once I create it and try to modify if, the instances to not update. Also, when I create a specific type such as two strings and two buttons, it does the machine does not allow me to create a different version of the cluster with slightly different names. How can I fix this?

cRIO FTP Deprecated

$
0
0

I was noticing on my cRIO that that the FTP software is "deprecated". What's the recommended approach for native file transfer to and from a cRIO? I don't think the Web Configuration Utility could be considered a complete replacement for a true FTP client.

A more elegant solution, perhaps, to 64+ case structures?

$
0
0

Hello everyone!

Can I please get some recommendations on getting my block diagram a bit tidier? Referring to the VI, a user has a selection of 1-64 of channels to scan. For each channel, I've enlisted a case structure, and have wound up with, you guessed it, 64 case structures. Can I substitute the 64 case structures with something more elegant while maintaining the same layout in the Front Panel? An additional 64 channels is coming to the VI soon and, if possible, I want to avoid another 64 case structures! Any help is greatly appreciated!Smiley Very Happy

.NET Selector

$
0
0

Hello,

 

I am communicating with some ThorLabs controller using LabVIEW 2013. I have everything setup how I want it, and as of now, I have to manually wire in the different .NET containers depending which controller I want to control. What I am trying to do is have a 2 button dialog ask the user for which controller they want to connect to, and then depending on which button is pressed, connect to that controller. I am getting a "Class Conflict" error when I wire the two .NET containers into a "Select." Ideally this is how I would like it to function. Attached is a screenshot of my problem. Does anyone have any ideas for how I can choose between two .NET containers without having to manually wire them into the code?


Thanks for any help,

SM


Need suggestions for a cycling life test

$
0
0

Hello all.  We are conducting a life test and wanted to use Labview to cycle frypot burners and a water circuit.  We are at a snag on how to code the cycling and wanted some suggestions.  Here is our situation:

 

1.  Activate the burners to heat oil until 350°F.

2.  At 350°F, turn off the burners and activate the water circuit to cool down the oil.

3.  At 315°F, turn off the water and activate the burners again.

 

Steps 2 and 3 repeat indefinitely.

 

We thought we could use Case Statements to handle this, but we don't see how to handle step 2 if we use this method.  We thought of the following:

 

Case 1:  . . . 350 <this would activate the burners until 350°F>

Case 2: 315..350 <this would activate the water circuit>

Case 3?:  . . .315 <this case would be another burner activation to keep the burners going if the oil temperature gets below 315.  Would this even be needed?>

 

As you can see, we have an issue here in that the water circuit would turn on while the burners are going using the logic we have now.  The main problem is getting past the startup--heating from room temperature to 350.  If we were just looping between 315 and 350, we could work with this, but that initial heatup is confusing us as to what to do.

 

Is there another way to do this besides Case Statements?

 

Thanks.

Error 0xc0000018 when trying install DAQmx 16.1.0

$
0
0

Hello,

I am attempting to install the DAQmx 16.1.0 drivers onto my Windows 10 desktop running Labview 2016. If I click to install the download, I get an error that reads :

The application was unable to start correctly (0xc0000018). Click OK to close the application.

I have tried running the program as administrator, but then it brings up the " do you want this program to make changes to your device" message, I hit yes, then it goes away and the cursor turns for second and then nothing happens.

I'd like to know what I can do to install DAQmx drivers. I have also reinstalled Labview to no avail. In another thread someone said they used the update service to install it, but I see no way in which I can install the drivers through that service. Any help would be appreciated.

 

Thanks

myRIO FPGA - Working code suddenly uses 300% LUT when compiled

$
0
0

I had a working FPGA vi. I created a backup of the vi and continued development. After some time I tried compiling the new vi and wasted a day trying to find out what caused the sudden 300% LUT usage.
Just now I tried to recompile the backed up (unchanged) vi only to find out it has the same 300% usage (I dont know how much LUT it used before but it must have been <75%).

So, what on earth magically took all the LUT, where do I start looking? Must be something thats not in the vi?

Is there a quicker way to get a rough ressource estimate without the 20min wait?

How to remove elements of an array based on this index A+i*B order

$
0
0

Let's say I have 36 elements in my array and I would like to delete elements 10,11 and also 10+i*12 and 11+i*12

I mean for example  10,11,22,23, 34 and 35  when i starts from 0 to 3

What is the simplest way to implement this

 

Can Labview perform maximum entropy deconvolution for electrospray mass spectrometry data similar to MaxEnt from Water Corporation?

$
0
0

I have searched the internet for a user-made VI that imitates what the big mass spectrometry companies include in their software packages? Is anyone aware if Labview has the tools to do this?

Viewing all 69240 articles
Browse latest View live