Quantcast
Channel: All LabVIEW posts
Viewing all 203311 articles
Browse latest View live

Re: crio 9063,ni 9467 and ni9234 time sync using gps(pps)

$
0
0

Thank you for your help.

I tried a timekeeper, but there was an 1ms error in the results of the two CRIO system.

Each CRIO has the same configuration and operates with the same code.
It was just a different laptop for control.

 

 AI,GPS(PPS)  Acquisition = FPGA

post-processing = Window os

(Realtime is not used.)

here is code Snapshot, What should I do?

* ni 9467 (100ns, Resolution)

i don't understand 8ms error.....

 

#1 and #2 .. code;

#3 .... result (0.6~0.8ms error)

test -  source distributed to each CRIO with each gps


Re: How to timeout DAQ when disconnected

$
0
0

I beleive LabVIEW creates new session everytime DAQ is initialized but you can still try the below method to bypass the error.

Just insert the error number which you get when the device is disconnectedbypass.PNG

Let me know if it helps you.

 

Re: LVOOP with DVR - Best Practices and Caveats

$
0
0

How about OpenGDS by reference class if you want a by reference class? Last I heard, they are persistence, and you get by reference behavior for free. Will check that soon...


AFAIK (Open)GDS does not register the objects, thus cannot be debugged. That could have changed though, it was some years ago I checked. A core concept of G# is that it registers the objects and thus they can be debugged. It even supports remote debugging (used for RT-targets e.g.), and the debugging events are logged and even shows up in DETT (desktop execution trace toolkit). It also has a an active debug mode to debug classes without the need to write an application to create objects. G# objects also has a method to create objects in an external process (separate thread), if you want them to be persistent. Very convenient for dependency injection.

Re: Custom Error Codes Parsing Error

$
0
0

Did you end up making a tool that works to load a custom error file? If you did, and made it available, I would definitely use it.

Re: crc32 of a binary file

Re: TDMS error -2503. Is seemingly corrupted file able to be recovered?

$
0
0

I had the same problem with a TDMS file. Deleting the index file did not work for me.

My approach was to use the advanced open and advanced close function. This worked fine for me.

Both with default values.

Re: crio 9063,ni 9467 and ni9234 time sync using gps(pps)

$
0
0

Hello, timer22.

Make sure that you also have somewhere in your diagram Timekeeper.vi outside of any loops or sequence structures (I don't see it in your screenshots).

Also, what is the sampling frequency for your AI acquisition?

I ask because I wonder if what is happening in the diagram depicted in timeke1-1.jpg is that in the upper right while loop the timekeeper time is read much earlier than the actual analog sample is taken. Perhaps you would need to have a sequence structure in that loop reading the analog channels in the first frame and the time in the second frame, to ensure that the reading of the time occurs as close as possible to the sampling.

Hope this helps.

Regards,

Alejandro

Re: Programmatically deploying/undeploying shared variables individually

$
0
0

I will look into this. Thanks for the resource.

 

I guess I should backtrack a bit to explain my issue a little further. I am using I/O Server to create ModBus address objects as shared variables to pull data from a solar panel charge controller, which is how this slave device communicates data and other status information. I've run into an issue, which seems to be implied through careful version control, where having this Modbus shared variable library deployed will actually cause module I/O failure if the slave controller is powered off for x amount of time, or the serial cable is unplugged. It's like the system times out the library or something, at which point I lose I/O and have to power cycle the controller. 

 

I isolated this test by branching out a completely identical project and just removing the Modbus library, deleting any object in the code associated with the library. No issues when these libraries are undeployed. Since I had everything under the same .lvlib, I partitioned the lvlibs, one for the couple shared variables I use, and then another for the Modbus library since I'd had no luck deploying by individual object. This is where I ran into the issue of the RT side of things not allowing library deployment. 

 


Re: Serial data parse, remove head

$
0
0

Producer/Consumer was my next suggestion, if data processing in-line was too slow for 10ms messaging rates.

Is it? Perhaps depends on amount of parsing computation required and PC...

12bit TIFF image saving

$
0
0

Good morning anyone, it might sound silly but I am not familiar with IMAQ so please don't be too rude Smiley Happy

I am trying to save an image in a 12 bit tiff format, following the code it is attached hereby, now the problem is that when I am acquiring in the 12bit mode, the image displayed is actually 12 bit of dynamics, but when I save its values of gray start from 32000, up to 36096, like if it was on 16 bit...

Again I am not so familiar with these kind of issues, Is anyone able to help???

Thank you in advance

Re: error -2147319779 in ActiveX

$
0
0

I remember there was an issue with ActiveX and Office 2016 but I don't remember exactly what it was. Try running Excel minimized and/or try reselecting the ActiveX properties and methods in OpenXL_Workbook.vi (it's possible a method added or removed an input).

 

Ben64

Re: How can i fit the Gaussian curve?

$
0
0

That background is 0.1%of the total amplitude and nearly on the order of the noise. Is the background really just a step or linear function or more complicated?

What is "n" in your formula?

The right and left side can never be equal, because the sign of their slope differs.

 

Here are the formulas you have attached. Why didn't you insert them in the post isntead of attaching them?

 

First formula:

 

first%20formula

 

Second Formula:

 

second%20formula

Re: 12bit TIFF image saving

$
0
0

 wrote:

... so please don't be too rude Smiley Happy ... following the code it is attached hereby,


Not be be rude, but there is nothing attached. 

Re: 12bit TIFF image saving

Re: crio 9063,ni 9467 and ni9234 time sync using gps(pps)

$
0
0

thank you for ur comment

firest. timekeeper.vi put the outside loop

second. AI  sampling frequency 51.2kHz

just now. i will try sequence structure code ,as you say

Thank you very much for your interest.
Thank you as a beginner in fpga and labview.

If use the sequence structure, 1 hz data input at first sequence and  PPS signal input at second sequence, this pps signal is 1Hz???


Re: Watlow F4T

$
0
0

Look into compatibility mode for Win 10, it might help.

Re: Watlow F4T

$
0
0

Bryan,

 

a noob question... do i uninstall and reinstall under win 7 capability?

回复: CANopen SDO R/W block

$
0
0

Thanks for the confirmation. Block of data needs to be sent or received as CAN frames. 

Re: 12bit TIFF image saving

$
0
0

Still no code attached Smiley Wink (only images of the code).

save_as_tiff

 

save

 

Why attach images, when you can insert them:

Insert Photo.PNG

 

I'll let someone else tell you about style.

Re: Creating delay to read input

$
0
0

 wrote:

Separate delay works. in the same code cycle time is not being updated. What might be the reason for this?

You have two indicators named "cycle time".

  • One is visible on the front panel, but not connected to any code. This one will never update!
  • One is outside the visible FP area, has the wrong representation, but is connected to the code. This one will update IF the surrounding case structure is true.

 

It is generally a very bad idea to have two front panel elements with the same name. If you want them to show the same label use the caption instead.

Viewing all 203311 articles
Browse latest View live


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