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

I2C

$
0
0

Can anyone offer a bit of help, I am using a DIOlan I2C adapter to read "BQ27541" battery fuel gauge.

I have no problem writing/reading standard commands, such as Temp.,Voltage, Current, and so on.

The problem is, can't seem to figure out how to write/read Sub commands, to retrieve Firmware and Device type.

Although the Sub commands are listed in the Texas Instruments data sheet, I'm not clear on how to implement this in Labview.  

Please help.

Regards.

Engr_RGL


Data shifting in Target to Host FIFO when written to TDMS (LavVIEW 2015)

$
0
0

I am reading values from a NI 9205 module on a cRIO-9068. When I read the values and display them in the front panel for the FPGA VI everything looks correct. When I look at the values on the Host side the values shift around. An example of the TDMS file and the shifting is included below. All values are constant and shouldn't be shifting between rows: 

 

Capture.PNG

How to control (Minimize and maximize) external application

$
0
0

Hi to everyone.

I want to minimize the front panel of my VI when it's running, but I don't know how to do that with the VI properties.

Somebody know how to do that?

 

Thanks in advantage

LabVIEW 15 + Arduino serial error 5005 on Mac OS Sierra

$
0
0

Hello all - this is my first post!

 

Please be patient with me as I am very new to LabVIEW (having come from Python)...

 

I am attempting to get a an Arduino Uno data logger running on LabVIEW 15 on Mac OS Sierra (from a connected temperature transducer), see the attached screenshots.

 

However I keep getting the infamous error code 5005. I have installed NI VISA 17.0 .dmg (though not received explicit confirmation of the installation). I am struggling to find an easy to follow solution on these forums.

 

Thanks a lot in advance for any help.

 

synchronization of motor and data acquisition

$
0
0

Hi,

 

In my project I have two main things I need to do:

1) data acquisition (analog input and analog output channel)

2) control the motor that I am working with.

At the beginning I got each of the assignment separatli so each has it's own VI, now I need to combine them and I need them to be able to run simultaneously.

 

I have tried to create a main vi which I know doesn't work because of the case structures. I have studied and did my online research and I thought about the producer/consumer with events (since there are input values from the user), but I don't understand if the queue function is only to save data. 

one important note: I don't need the 2 while loops (in the structure of the producer consumer) will transfer data between them (correct me if I am wrong but this is the most common use that this structure have), what I do need is to acquire the data and control the relevant parameters of the motor (by the GUI and allow the user set the values while the application continuous to acquire data).

 

I am quiet new with this software and this is my first program so I am having a really hard time to figure out what is the best way and how to apply what I need.

 

so please any idea or a thought will be more than welcome. 

thanks in advanced.

LabVIEW 15 + Arduino serial error 5005 on Mac OS Sierra

$
0
0

Hello all - this is my first post!

 

Please be patient with me as I am very new to LabVIEW (having come from Python)...

 

I am attempting to get a an Arduino Uno data logger running on LabVIEW 15 on Mac OS Sierra (from a connected temperature transducer), see the attached screenshots. serial_block.jpgserial_front.jpg 

However I keep getting the infamous error code 5005. I have installed NI VISA 17.0 .dmg (though not received explicit confirmation of the installation). I am struggling to find an easy to follow solution on these forums.

 

Thanks a lot in advance for any help.

 

 

Labview executable generates "file is not compatible with the version of Windows" error

$
0
0

I have built an executable using labview 2017 32-bit.  The .exe runs file on my development system.  I've installed the runtime engine for 2017 32 bit on my target machine,  but when I try to run the executable on the target machine I get an error that says:

 

"The version of this file is not compatible with the the version of the Windows you're running.  Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the ptrogram, and then contact the software publisher."

 

Development Machine is Intel i7 core CPU, 64-bit Operating system.  Running Windows 7 Professional, Service Pack 1

Target Machine is Intel i7 core CPU, 64-bit Operating system.  Also running Windows 7 professional,  Service Pack 1

 

I tried building a very simple VI that added two numbers together and displayed the result and built a .exe out of that and it does the same thing so I don't think it has anything to do with drivers or anything exotic.  I have also confirmed that the 32 bit runtime is installed on the target.

 

I'm probably just doing something wrong but I have no idea what it is - any ideas?

Converting decimal numbers of an array to corresponding binary values?

$
0
0

I have a one dimension array and it have some "N" elements,I want to convert all the element of this formerly mentioned array to its corresponding binary representation and store it in an another array.

eg :[1 2 3 4 5 6....]'  : The present decimal array

 

after conversion 

[001 010 011 100 101 110..]'

 

Thanks..


Two different sampling frequency for channels to improve the iteration speed

$
0
0

Hi NI community,

 

I have made a code in LabVIEW that reads from DT card using LV-link in LabVIEW. My code reads from 7 channels every second at a sampling rate of 10kHz and performs some tasks on those signals before writing those to two separate .lvm files.

I need 3 of these channels to be at 10kHz sampling frequency but for the others, the sampling rate of 1Hz is enough. Currently, I am using an average function to reduce 10kS to 1S for each of these four channels.

The problem that I have encountered is that each iteration of this will take 7 seconds rather than 1 second. However, when I only read 3 of these channels, I am able to perform each iteration in 1 second. 

So I would like to know if there is any possibility to write a statement function to read 3 channels at a time with a sampling rate of 10kHz, followed by 4 channels at a sampling rate of 1Hz while maintaining 1-second iteration?

Are there any other alternatives to reduce the iteration time?

 

Thanks in advance,

Crio 9039 RT Crashing Periodically problem

$
0
0

dear all

We have RT Crashing Periodically problem, we fail to solve the problem, try to find help from you.

 

LV version 2014 sp1 with some 2015 software package

run RT.rexe in Crio9039

#OSName: Linux
#OSVers: 3.14.40-rt37-3.0.0f1
#OSBuild: 200232
#AppName: lvrt
#Version: 14.0.1

 

During running the RT program in Crio9039 RT Crashing Periodically. The RT will restart automatically.

path: \var\volatile\log\auth.log file suggest the RT reboot crash and reboot cause of session closed for user lvuser

2018-02-10T21:35:01.000+08:00 NI-cRIO-9039-01B76F67 crond[23159]: pam_unix(crond:session): session opened for user root by (uid=0)
2018-02-10T21:35:01.000+08:00 NI-cRIO-9039-01B76F67 CROND[23159]: pam_unix(crond:session): session closed for user root
2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[1984]: pam_unix(su:session): session closed for user lvuser
2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: Successful su for lvuser by admin
2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: + ??? admin:lvuser
2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: pam_unix(su:session): session opened for user lvuser by (uid=0)
2018-02-10T21:40:01.000+08:00 NI-cRIO-9039-01B76F67 crond[23531]: pam_unix(crond:session): session opened for user root by (uid=0)
2018-02-10T21:40:01.000+08:00 NI-cRIO-9039-01B76F67 CROND[23531]: pam_unix(crond:session): session closed for user root

 

after reboot /var/local/natinst/log/lvrt_14.0.1_lvuser_cur.txt show some strange waring

InitExecSystem() call to GetCurrProcessNumProcessors() reports: 1 processors
InitExecSystem() call to GetNumProcessors()            reports: 4 processors
InitExecSystem()                                      will use: 1 processors<DEBUG_OUTPUT>
02/10/18 下午 09时38分15.066秒
DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
/builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $

</DEBUG_OUTPUT>
*** Dumping Bread Crumb Stack ***
#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"
*** End Dump ***<DEBUG_OUTPUT>
02/10/18 下午 09时38分15.066秒
DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
/builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $

</DEBUG_OUTPUT>
*** Dumping Bread Crumb Stack ***
#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"
*** End Dump ***<DEBUG_OUTPUT>
02/10/18 下午 09时38分15.066秒
DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
/builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.
$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $

</DEBUG_OUTPUT>
*** Dumping Bread Crumb Stack ***
#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"
*** End Dump ***

 

also we find some warning on RT:

lvrt:/builds/penguin/labviewrt/Core/rt_exec/trunk/7.10/os_extensions/ 
lvalarms_linux/priorityMapper.cpp:255: void {anonymous}::adjustLinPriorities(const tLinThreadList&,int32_t):Assertion `tparams.__sched_priority >=30 && tparams.__sched_priority <=89~ failed

 

In the attachement i send the files mentioned include the core_dump file. We really need the help.

Crio 9039 RT Crashing Periodically problem

$
0
0

dear all

We have RT Crashing Periodically problem, we fail to solve the problem, try to find help from you.

 

LV version 2014 sp1 with some 2015 software package

run RT.rexe in Crio9039

#OSName: Linux#OSVers: 3.14.40-rt37-3.0.0f1#OSBuild: 200232#AppName: lvrt#Version: 14.0.1

 

During running the RT program in Crio9039 RT Crashing Periodically. The RT will restart automatically.

path: \var\volatile\log\auth.log file suggest the RT reboot crash and reboot cause of session closed for user lvuser

2018-02-10T21:35:01.000+08:00 NI-cRIO-9039-01B76F67 crond[23159]: pam_unix(crond:session): session opened for user root by (uid=0)2018-02-10T21:35:01.000+08:00 NI-cRIO-9039-01B76F67 CROND[23159]: pam_unix(crond:session): session closed for user root2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[1984]: pam_unix(su:session): session closed for user lvuser2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: Successful su for lvuser by admin2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: + ??? admin:lvuser2018-02-10T21:38:09.000+08:00 NI-cRIO-9039-01B76F67 su[23238]: pam_unix(su:session): session opened for user lvuser by (uid=0)2018-02-10T21:40:01.000+08:00 NI-cRIO-9039-01B76F67 crond[23531]: pam_unix(crond:session): session opened for user root by (uid=0)2018-02-10T21:40:01.000+08:00 NI-cRIO-9039-01B76F67 CROND[23531]: pam_unix(crond:session): session closed for user root

 

after reboot /var/local/natinst/log/lvrt_14.0.1_lvuser_cur.txt show some strange waring

InitExecSystem() call to GetCurrProcessNumProcessors() reports: 1 processorsInitExecSystem() call to GetNumProcessors()            reports: 4 processorsInitExecSystem()                                      will use: 1 processors <DEBUG_OUTPUT>02/10/18 下午 09时38分15.066秒DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality./builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $ </DEBUG_OUTPUT>*** Dumping Bread Crumb Stack ***#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"*** End Dump *** <DEBUG_OUTPUT>02/10/18 下午 09时38分15.066秒DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality./builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $ </DEBUG_OUTPUT>*** Dumping Bread Crumb Stack ***#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"*** End Dump *** <DEBUG_OUTPUT>02/10/18 下午 09时38分15.066秒DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality./builds/penguin/labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp(748) : DWarnInternal 0x00000000: CPU information collection failed! Assuming minimal functionality.$Id: //labview/components/CPUInfo/trunk/14.0/source/lib/CPUInfo.cpp#2 $ </DEBUG_OUTPUT>*** Dumping Bread Crumb Stack ***#** Loading: "/home/lvuser/natinst/bin/startup.rtexe/new_Crio9039 RT 4ch Program.vi"*** End Dump ***

 

also we find some warning on RT:

lvrt:/builds/penguin/labviewrt/Core/rt_exec/trunk/7.10/os_extensions/ 
lvalarms_linux/priorityMapper.cpp:255: void {anonymous}::adjustLinPriorities(const tLinThreadList&,int32_t):Assertion `tparams.__sched_priority >=30 && tparams.__sched_priority <=89~ failed

 

In the attachement i send the files mentioned include the core_dump file. We really need the help.

 

nilvaiu.dll - LabVIEW resource not found.

$
0
0

Hi all, 

I am trying to build an application and an installer to run on Windows 10 computers.  This application has to communicate with a USB 6008, which connects to the target PC. I used the recommended additional installers during the installer building process.  This executable run normally on the Windows 10 PC  that I used to build the application. However, once I install on the target machine and try to open the program, error message pops out.( nilvaiu.dll - LabVIEW resource not found). 

Windows 32 folder of the target PC has the nilvaiu.dll , but for some reason, LabVIEW does not see it. I have spent a lot of time, but no success yet. Can anyone guide me to a fix?  

thanks a lot

-Dan

Problem in changing states in state machine

$
0
0

I am using state machine to change in between states. I have got 10 states. From states 1-8, after each state, the program move to 9th state. By using shift register, we can get the previous state. But I am facing problem with how to go to the next state.

 

Say Ex: I complete the 1 state, after that it goes to he intermediate state i.e. 9 state. Now I want to go back to 2 stage. Similarly, after second state, again 9 state and then state 3 and so on.

File IO

$
0
0

Hi guys, 

I need your opinion on an File I/O operation that I need to do. ( Just to clarify - my code is working without any issue but seeking your opinion to see if there are better ways of doing this)

Here is what I need to do. 

I have a hex file and I need to append a new line to a line that starts with ":09000000". This line could be anywhere in the hex file. So, what I did was, I loop through the lines and till I find ":09000000" and breakout of the loop, offset the file pointer to the beginning of that line by providing the amount of offset bytes.

Then write to the file (based on the bytes). Code is below. 

Your feedback would be much appreciatedCapture.JPG

Thanks. 

 

 

 

File IO

$
0
0

Hi guys, 

I need your opinion on an File I/O operation that I need to do. ( Just to clarify - my code is working without any issue but seeking your opinion to see if there are better ways of doing this)

Here is what I need to do. 

I have a hex file and I need to append a new line to a line that starts with ":09000000". This line could be anywhere in the hex file. So, what I did was, I loop through the lines and till I find ":09000000" and breakout of the loop, offset the file pointer to the beginning of that line by providing the amount of offset bytes.

Then write to the file (based on the bytes). Code is below. 

Your feedback would be much appreciatedCapture.JPG

Thanks. 

 

 

 


IC-3173 FPGA Particle Analysis data transfer to Host

$
0
0

Hello,

 

I using Industrial Controller IC-3173. I have problems with transfer data of Particle Analysis back to Host machine. At first I grab the image, then I send image to FPGA. FPGA processing the picture and at the end do Particle Analysis. FPGA then send processing image back to host machine. I like to transfer Particle Analysis data back to host, but I don’t know how to do this. I have try with Front Panel Controls and Indicators but this did not work.

 

Front panel communication:

http://zone.ni.com/reference/en-XX/help/371599M-01/lvfpgaconcepts/pfi_data_transfer/

 

Maybe I must assembly the data of Particle Analysis before I send data back to host?

 

Unfortunately, I do not have much experience with LabView. If anyone knows how to do this, please let me know. Thank you!

 

Whole process:

  1. Generate the LabView code vith Vision Assistant.

Ass.jpg

 

  1. Host machine program

Host.jpg

 

  1. FPGA program

FPGA.jpgBest regards!

Can't Press Start Button (Control)

$
0
0

I feel pretty stupid for asking this question but I'm fed up with this sprinkler lol...

Can someone explain to me why I cannot press the "start" boolean control?

 

The sequence is supposed to be: Hit the Setup button> Hit the Start Button.

However I can't press the button, it's like the program froze?

 

Any help is appreciated

 

Thanks

XY Graph in Web VI

$
0
0

Hello NXG Users

I want to know if I can do the following in XY Graph that is used in a NXG 2 Web VI :

 

1. How to Invert Y-Axis (the same as choosing inverted in the properties of a graph in LabVIEW )

2. How to Programatically change Minimum and Maximum of Y-Scale.

 

Thanks in Advance.

How to use multiple DAQ Assistant with digital and analog signal input simultaneously for logging

$
0
0

Hi everyone,

 

I have been working on this and I cannot find a good example or topic related to the problem I am having.

 

My goal is to visualize digital and analog signals in real time with indicator, loggin at the same time a TDMS file and then open the log file at the end of the acquisition.

 

In version GEN v4 (Assistant): I have tried many ways but I always encounter a problem with the timing. The analog signal keeps the good timestamp but not the digital signal. I am using continuous sampling.  I have tried sample on demand but it doesn't work, the timing are all off.

 

In version GEN v5 (DAQmx): I begun working with DAQmx but I don't know how to merge the signal for logging. I am getting this error : File specified is already opened for output. NI-DAQmx requires exclusive write access.

 

I am joining my 2 vi projects so maybe someone could help me with this.

 

Thank you

 

GPS module L80 with myRIO

Viewing all 66699 articles
Browse latest View live


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