When using the analog inputs and analog outputs of the PCI-7344, what is the conversion between the voltage entering the card to counts? Similarly, what is the conversion between counts to voltage at the output of the card?
I am using the PCI-7344 to control my system. The analog inputs are connected to the output of my system while the analog outputs serve as feedback to the system. The system is a servo. I want to know what is the conversion between the voltage read at the input, to card counts, and finally to the voltage output to the system.
Carole,
If you are trying to do analog feedback with a servo motor, Chapter 14 of the manual talks about how to set up the torque feedback. Also linked below is a LabVIEW example of analog feedback.
Chapter 14
NI-Motion User Manual
Automatic Analog Feedback with FlexMotion example
A. Talley
National Instruments
Similar Messages
-
How to combine the analog input and analog output vi's
Hi !
I have a perfectly running triggered analog input acquisition vi. I have a seperate vi for analog output that's running perfectly too. Can someone tell me how to combine these two operations so that I could get a vi that does simulataneous AI and AO without missing triggers. I have tried all the different kinds of configurations suggested by NI support but nothing seems to work. Can someone help ?
thanks,
Shiva
Attachments:
dac_good.vi 77 KB
adc_good_fw.vi 124 KBShiva;
I'm attaching a good Application Notes that shows how to synchronize multiple DAQ tasks, in Labview.
Hope this helps.
Filipe
Attachments:
Advanced_Sync_Techniques_for_DAQ.zip 166 KB -
Difference in analog input and analog output values
i am using 6014 DAQ card for providing motor speed reference voltage to Driver and reading back speed
feedback voltage using LabVIEW 6.0. For this i have used AO Single Update and AI Single scan. Both are in the same while
loop.The loop has a Wait timer of 50ms. When i take a plot of Analog o/p and input, i get a shift
between input and output. Why is the shift or the time not synchrnised..please help..When the while loop wait timer is 200ms instead of 50ms, the shift is not there.I believe the problem is 2 fold. First if you are using traditional DAQ, or DAQ 6.9.3 or before, the driver is single threaded. Therefore the 2 VIs will not run simultaneous. Try DAQmx and you may be more successful.
The other is that you are using higher level 1 point VIs. In general they are not the best to use in a time sensitive loop. You are better off using hardware timing, rather than software timing. With hardware timing you have more control over the synchronization of the 2. -
Simultaneous Analog In and Analog Out
How to Output on Analog Out and read Analog In at the same time.
I am using a VC++, NIDAQ 7.01.
No LabView.Greetings,
The following example demonstrates how to perform synchronized analog input and analog output:
Synchronizing Analog Input and Output
The example was written in CVI, but modifying it for use in VC++ is fairly straightforward and documented within the code.
Good luck with your application.
Spencer S. -
Data types used in a sub VI - selecting the correct input and output types?
data types used in a sub VI - selecting the correct input and output types?
I can never work out how to choose an input or output format for Subvi's.
I want to create a SubVI for the code in red. I needs an VI Server Reference compatible input and an output that goes to a waveform.
Thanks in advance.
Attachments:
data types.PNG 11 KBGerdW,
I realise now I have taken us in the wrong direction. apologies for that.
History, this is not my code and I do not own the process and NOT my preferred method of using it. I was looking for a simple way to make subtle changes.
What we do - We use these programs to collect data from typically 6 pressures and 6 temperature probes and capture RS232 / USB VISA strings from sensors.
So every few weeks / months or up to a year we rearrange each sensor location to suit the new process. I did not write the code. I cannot change the procedure too much without resistance.
So headers in the CSV file have the DaqMX string passed through the code. Great.
Other data to the CSV file comes from calculations or extracted from the VISA string. Hence why we have headers with "Untitled 1 ()". These values also go to a History Chart.
So I was looking for a simple way to read the the local variable label as it is always linked to the front page indicator. People can cope with editing the indicator label, save the VI and hit run.
TL;DR - GerdW is now a psychologist.
Attachments:
data to csv and history chart.png 1043 KB -
Analog Input and Output in One Single VI
I need help in setting both analog input and output in one single VI. How do I assign channels to be either input or output? How do I simultaneously uses both in one single VI with a while loop structure?? Which AO am I suppose to use to obtain signal from the function generator I have built to feed into the DAQCard-1200?? Help!!
Attachments:
Test1.vi 48 KBOne thing you'll need to be aware of is that you will need to DMA lines: one for AI and one for AO. If you don't, then you can configure the DAQCard to do without DMA using the Config VI. But you certainly can do this.
As far as your function generator, you will want to do a buffered analog output. You will write your buffer of points to the buffer, and then tell NI-DAQ how fast to update your analog output channel with these values.
So, you can be reading from AI and checking the AO process in the same while loop. Just make sure you handle the while loop execution (the wait it exits) correctly. This can get tricky when you're doing two types of measurements.
J.R. Allen -
How to synchronize analog input and output from two different USB daq boards
Hi all,
I have two very differnt USB boards the NI USB 6008, which I am using to acquire the data (Analog Input) and a NI USB 9263, it is an Analog Output only board that I am using to deliver a signal (in this case a square pulse). The reason why I am not using the 6008 Analog Ouputs is because I need to deliver negative voltages and need the full +/-10V range.
Looking at similar posts I am pretty sure that I can't use an external trigger or a shared clock, I also tried to use the synchronization of timed structures but no cigar.
I am including a quick vi that I whipped out showing how the signal jitters due to the lack of synchronization. The AO from the 9263 connects to the AI in the 6008 in this example.
Solved!
Go to Solution.
Attachments:
Test Pulse.vi 117 KBI talked to a specialist in the phone and tols me that it is not possible.
-
Hi everyone,
I am doing simple task in Visual C++ and I am using PCI-6221(37 pin).
Basically, I want to send same signal from 'analog input' to 'analog output'
at the same time (almost), to make it real-time application.
Can someone please provide me sample program.
I would appreciate if you could provide me with the good tutorial which explains
step by step everything about programing NI-DAQmx for C/C++.
Best Regards,
Khassan
Solved!
Go to Solution.This is my code in C++, you can optimize it if it looks too messy. This code reads signal from analog input and outputs it through analog output.
To make this code work additional include directories and library directories must be added from NI.
I hope it helps someone.
#include <stdio.h>
#include <conio.h>
#include "NIDAQmx.h"
#include <math.h>
#define DAQmxErrChk(functionCall) { if( DAQmxFailed(error=(functionCall)) ) { goto Error; } }
int main(int argc, char *argv[])
int32 error=0;
TaskHandle taskHandleRead=0,taskHandleWrite=0;
int32 read=0;
float64 dataRead[1000];
char errBuffRead[2048]={'\0'};
char errBuffWrite[2048]={'\0'};
bool32 done=0;
int32 written;
DAQmxErrChk (DAQmxCreateTask("",&taskHandleRead));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskHandleRead,"Dev1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleRead,"",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,0));
DAQmxErrChk (DAQmxCreateTask("",&taskHandleWrite));
DAQmxErrChk (DAQmxCreateAOVoltageChan(taskHandleWrite,"Dev1/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleWrite,"ai/SampleClock",100.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));
DAQmxErrChk (DAQmxStartTask(taskHandleRead));
DAQmxErrChk (DAQmxStartTask(taskHandleWrite));
while( !done && !_kbhit() )
DAQmxErrChk (DAQmxReadAnalogF64(taskHandleRead,1,10,DAQmx_Val_GroupByScanNumber,dataRead,1000,&read,NULL));
DAQmxErrChk (DAQmxWriteAnalogF64(taskHandleWrite,read,0,10.0,DAQmx_Val_GroupByChannel,dataRead,&written,NULL));
_getch();
Error:
if( DAQmxFailed(error) )
DAQmxGetExtendedErrorInfo(errBuffRead,2048);
DAQmxGetExtendedErrorInfo(errBuffWrite,2048);
if( taskHandleRead!=0 )
DAQmxStopTask(taskHandleRead);
DAQmxClearTask(taskHandleRead);
if( taskHandleWrite!=0 )
DAQmxStopTask(taskHandleWrite);
DAQmxClearTask(taskHandleWrite);
if( DAQmxFailed(error) ){
printf("DAQmx Error: %s\n",errBuffRead);
printf("DAQmx Error: %s\n",errBuffWrite);
printf("End of program, press Enter key to quit\n");
getchar();
return 0; -
Can we acquire the Analog input and Digital Input at
Can we acquire the Analog input and Digital Input at
the same time? My sensor data include Analog and
digital signals.Hi Chenchen,
It usually simplifies things greatly if you use analog inputs to monitor both the analog signals AND the digital signals.
If you abosulutely HAVE to use digital lines, then the answer is, DEPENDS....
With the correct hardware and depending on how fast you want to collect data and how closely the measurements have to be syncronized in time, it can be done.
But first, concider using analog inputs to monitor all signals.
If you need to move forward with both analog and digital acquisitions, then post a new quesion and give us details on the hardware you are using and the other details we will need to advise you.
Trying to help,
Ben
Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
I have a 2007 iMac connected via WiFi. It has been working fine until I turned it on after a recent vacation. Network Preferences indicates that it is correctly connected to my WiFI system but the data input and output rate is virtually zero. I know that the WiFI signal is reaching the iMac since both my iPhone and iPad are working perfectly at that location. I have rebooted the router and the iMac to no avail. Any suggestions would be greatly appreciated. Thank you very much. Geoff
Hi Geoff,
Hi, this has worked for a few...
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
10.7 & 10.8…
System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
10.5.x/10.6.x/10.7.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
10.4 instructions...
Is that Interface dragged to the top of Network>Show:>Network Port Configurations.
If using Wifi/Airport...
Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
208.67.222.222
208.67.220.220
Click OK. -
Revision: 2692
Author: [email protected]
Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
Log Message:
Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
QA: Yes
Doc: No
Checkintests: Pass
Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-227
Modified Paths:
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
blazeds/branches/3.0.x/qa/build.xmlRevision: 2692
Author: [email protected]
Date: 2008-07-31 13:05:35 -0700 (Thu, 31 Jul 2008)
Log Message:
Bug: BLZ-227 - When using JMS Destination, MessageClient and FlexClient not released from memory when the session times out.
QA: Yes
Doc: No
Checkintests: Pass
Details: Fixed a memory leak with JMS adapter. Also a minor tweak to QA build file to not to start the server if the server is already running.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-227
Modified Paths:
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/adapters/J MSAdapter.java
blazeds/branches/3.0.x/qa/build.xml -
Question about the CSS behavior when using layer 3 sticky and sticky table
Hi everyone,
I have a question about the CSS behavior when using layer 3 sticky and sticky table is full.
If I configure layer 3 sticky and specify the inactivity timeout as below, how does the CSS
handle subsequent needed sticky requests ?
advanced-balance sticky-srcip
sticky-inact-timeout 30
CSS document says that
Note:
If you use the sticky-inact-timeout command to specify the inactivity timeout
period on a sticky connection, when the sticky table becomes full and none of
the entries have expired from the sticky table, the CSS rejects subsequent
needed sticky requests.
My question is what is the next reaction by doing the CSS if the CSS is in the
following condition:
when the sticky table becomes full and none of the entries have expired from
the sticky table, the CSS rejects subsequent needed sticky requests
Does CSS just rejects/drops subsequent needed sticky requests ?
or
Does CSS does not stick subsequence requests to particular service but CSS forward
subsequence requests with round-robin basis ? which means if the sticky table is full,
the CSS just works round-robin load balancing fashion for subsequence requests ?
Your information would be appreciated.
Best regards,Hello,
There is a good document explaining this on Cisco web site
http://www.cisco.com/en/US/products/hw/contnetw/ps789/products_tech_note09186a0080094b4b.shtml
It depends if the sticky-inact-timeout is used or not. If not, it's FIFO (the oldest entry in the sticky table is removed). If yes, the CSS will reject the next sticky request.
Rgds,
Gaetan
Rgds
Gaetan -
I am getting a lot of static when using Brookstone wireless headphones and watching movies on the Apple TV. I know it is not headphones, because they work fine when I switch it to cable TV, then the sound is clear with no static. Any suggestions? Which wireless headphones work best with the apple TV?
Ok so I've been doing more testing. It's all videos on the iTunes store. Anytime I try to download a podcast or stream it or anything it's super slow. To download an episode of Diggnation it tells me over 2 hours to download but the time keeps climbing and I just stop the transfer.
Some people said it's an Open DNS thing? Maybe it is but it's not computer specific and I couldn't find a way to change the DNS settings in my Airport, only on each computer. I tried deleting PLists and restoring my Apple TV and restoring my Airport and nothing is working.
I don't know if it an issue with me, my ISP or Apple. Anyone else experiencing this problem? -
when using firefox on yahoo and opening my mail it says Not Found The requested URL /dc/launch was not found on this server. How can this be fixed?
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode -
how do i engage my 8 core mac pro to use all it's cores when using final cut pro and other applications that need processing power? at the moment they seem to be idle...
First, did you use Setup or Migration Assistant? That can happen when coming from a PowerMac or sometimes even from another (Intel) Mac.
Second, wait for the next version of Final Cut due very soon to ship (may have to wait for the ".1" of course to clean up any early issues.
Final Cut Pro - Wikipedia
There are a few apps that are better. I think you can run multiple instances of Handbrake for one.
I've read about and wanted to try PowerDirector 9 (Windows)
PowerDirector 9 video software
video editing software Wiki
Maybe you are looking for
-
Can I create a JSP component library
I hope I make some sense here: Instead of creating a tag library which contains compiled code (and in my case HTML, which I am trying to avoid), I would like to create a library of JSP files that contain small snippets of HTML/JSP to be included in J
-
After restoring BIOS from USB still HP BIOS Utility starts
Hi guys, after a BIOS update my HP Pavilion 15-e026sl not boot anymore, it does the following scheme: I press the power button Power, Bloc Maiusc and wifi lights and fan on but dark screen 2/3 seconds and everything shut down The pc automatically reb
-
Earphones with Mic volume doesn't work
I was playing with the iPhone 3GS at Best Buy with my Apple Earphones with Remote and Mic and I wasn't able to adjust the volume with the earphones. It does work however with the Nano, so what's the dealio? Does that function not work with the iPhone
-
Saved Shopping Cart Display/Edit functions are not working
Hello SRM experts, The problem that I have is that the buttons like Display, Edit, etc are not working on a saved Shopping Cart. What is the best way to debug this problem? How would I find out what methods are being called on the SRM system or if so
-
Windows Fabric Warning messages and node failure
Hi , We have a service bus farm with 3 servers and sql installed in separate alwaysOn Instance. we are seeing some warning messages in Event Viewer: failed to send message Activate to node d917cb318cf36c4ce0867df57f2b57:130630848896673695 with error