C++ example of Using SCC-RLY01(relay) with NI-6062E?
Hello,
I would like to known where I can find examples of using SCC-RLY01(relay) with NI-6062E under DAQmx, C++ and Measurement Studio?
Thank you!
Hello Tom,
I also wonder if there is something like "timer" in DAQmx where I can wait for a certain milliseconds btw two DAQmxWriteDigitalScalarU32 events:
what I am doing now is split into two sections as following code
//NI trigger relay ON (Close)
if (UserHookDataPtr->ProcessedImageCount == 10)
{ DAQmxCreateTask("",&taskHandle);
DAQmxCreateDOChan(taskHandle,chan,"",DAQmx_Val_ChanForAllLines);
DAQmxStartTask(taskHandle);
DAQmxWriteDigitalScalarU32 (taskHandle, 1, 10.0, 1, NULL);
DAQmxClearTask(taskHandle); }
//NI trigger relay OFF (Open)
if (UserHookDataPtr->ProcessedImageCount == 40)
{ DAQmxCreateTask("",&taskHandle);
DAQmxCreateDOChan(taskHandle,chan,"",DAQmx_Val_ChanForAllLines);
DAQmxStartTask(taskHandle);
DAQmxWriteDigitalScalarU32 (taskHandle, 1, 10.0, 0, NULL);
DAQmxClearTask(taskHandle); }
Similar Messages
-
Can I use SCC-DI01 modules with a PCI-6533 device?
I am looking into performing buffered acquisition of various digital signals using a PCI-6533 device. Can I use SCC-DI01 modules with this device? If so, would this be via the SC-2345 Carrier? The manual seemed to suggest is was only compatible with E-series devices?
Basically, I want to monitor 32 digital channels and will have a mixture of 5V and 24V signals.
Many thanks,
DouglasHi Douglas
Could you please clarify where the manual suggests that the module is only compatible with an E series board (is it because only an E series board is referenced in the manual)?
I can't find any information stating which devices are/aren't supported by the SCC-DI01, but I will continue to investigate and keep you posted with my progress.
Kind Regards
Stuart R -
Examples of using SCXI-1160 Relay Card with Visual Basic 5.0.
I am starting to develop some VB 5.0 code that interfaces with a PXI/SCXI Chassis. One of the cards that I have to work with is the SCXI-1160.
At this point in time (5/14/01), I do not believe there are any pre-existing example programs developed in Visual Basic to control an SCXI-1160 switch module.
However, the process is very easy to explain. You will need to add the NI-SWITCH instrument driver as a DLL reference to your VB program. The DLL file is called niswitch_32.dll and is located at C:\VXIpnp\WinXX\Bin (WinXX = Win95 or WINNT).
Your program will begin with the niSwitch_init(...) function, and end with the niSwitch_close(...) function. The niSwitch_Connect(...) function can be used to actually make switch connections in your application. -
An example of using a graph library with JavaFX 2.0
Hi
I saw an example detailing how JavaFX 2.0 was used on-top of a graph library to visualize for example the java scene graph of a particular application.
I could drag nodes around and add or remove them.
I seem to have lost the link to that project and I just can't for the life of me find the website again....does anyone know the url to a project like described?
Cheers,
NuwandaThere has been a recent project using th Groovy JavaFX 2.0 bindings that combine JavaFX 2.0 and graphviz (a graphing library). Here are some links to that project:
Video demo: http://www.screenr.com/X7cs
Project source: https://bitbucket.org/bgoetzmann/grezi/wiki/Home
Cheers,
Jeff -
Examples of Using PHP to interact with R/3
Possible example:
For small businesses wanting to interract with an R/3 backend that my be run by a service provider, then they have a low cost alternative to Java development.
A simple example could be a small online reseller that does not maintain their own stock. By connecting their PHP based website to their suppliers R/3 system they can provide stock and price details to the customer.Just take a look at the weblogs listed in this thread
Weblogs related to PHP and SAP -
Scc-rly01 conditione​r compatabil​ity
background:
I bought eight(8) SCC-RLY01 relays based on reading an early version manual
for same. The early manual specified we could switch up to 250V AC using
the relays in our SCC-2345
I had planned on using it in our SCC-2345 to switch 110V AC(for a solenoid coil).
We received the relays but I began to have second thoughts about trying to
switch 110V AC using them in our SCC-2345. (We had originally telephoned NI
and they told us we _could_ use the relay modules with our SCC-2345 and that
it was an misprint in the manual.)
The _new_ manual for the SCC-RLY01 states I'm limited to 30V AC using the relays
in our SCC-2345. (The new manual also states if it is used with an SCC-68 the
relay _will_ handle up to 250V AC.)
Could someone confirm that we _can not_ use the relays with our SCC-2345 to
switch 110V?Hello anengineer,
You are correct that you should only use the SCC-RLY01 module in the SCC-68 to switch anything from 30V AC to 250V AC. As stated in the SCC-RLY01 Relay Module User Guide on page 5, the module was derated to 30 V maximum switching voltage in the SC-2345. The reason for this is that when used in the SC-2345, it doesn't meet Category II high voltage safety requirements. Also, as noted in the User Guide, you must use the high-voltage backshell when connecting signals > 60 V DC to the relay module.
I hope this information helps!
Best regards, -
Example of using model 2 architecture
hi,
could someone please direct me to a decend example of using model 2 architecture with jsp and servlets. i'm learning j2ee right now and my book has a simple example with one servlet and 2 jsp pages, are there any examples with more than 1 servlet and 2 jsp pages that are helpful?
Thank you.check out google.com for source code...
-
When replying to an ad, via email, posted on Craig's List , for example, it attempts to use my old email address I had with IE, then fails to connect with the ad's author. How do I get it to only use my gmail address with Firefox?
== This happened ==
Every time Firefox openedSee https://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox
-
How can I download itunes when I get the following errors ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
Any help greatly appreciated.
billymacGo to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
Remove all of these items in the following order:
iTunes
Apple Software Update
Apple Mobile Device Support (If this won't uninstall press on)
Bonjour
Apple Application Support
Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
C:\Program Files (x86)\Common Files\Apple\Apple Application Support
and paste into:
C:\Program Files (x86)\iTunes
The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
tt2 -
Req any examples of high to use midi controller/keyboards with Labview TIA
Req any examples of high to use midi controller/keyboards with Labview TIA
[email protected];
Check the following:
Communicating with a Windows MIDI Device in LabVIEW
Regards;
Enrique
www.vartortech.com -
SQL - JOIN using UNION ?? UNION using JOIN ?? with example!
I was asked this question during one of my interviews. Can you do JOIN using UNION keyword? Can you do UNION using JOIN keyword?
That is -
1. I should get same output as JOIN without using JOIN keyword, but using UNION Keyword?
2. I should get same output as UNION without using UNION keyword, but using JOIN Keyword?
Can you give me an example of how to do this if possible?Hi,
Welcome to the forum!
user13067794 wrote:
I was asked this question during one of my interviews. Can you do JOIN using UNION keyword? Can you do UNION using JOIN keyword?The correct answer to those questions is: Why would you want to? All versions of Oracle (and probably any other database product) provide JOIN to do certain things and UNION to do other things. Why not use those features the way they were designed to be used? Even if it is possible to do what you ask, it's going to be more complicated and less efficient.
If you really must:
That is -
1. I should get same output as JOIN without using JOIN keyword, but using UNION Keyword? You can select the relevant columns from each table, and NULLs for all the columns from other tables, in a UNION query. Then you can use GROUP BY or analytic functions to combine data from different rows. For example, this JOIN:
SELECT d.dname
, e.mgr
FROM scott.dept d
JOIN scott.emp e ON d.deptno = e.deptno
;could be written using UNION, but no JOIN, like this:
WITH union_data AS
SELECT deptno
, dname
, NULL AS empno
, NULL AS mgr
FROM scott.dept
UNION ALL
SELECT deptno
, NULL AS dname
, empno
, mgr
FROM scott.emp
, quasi_join AS
SELECT MAX (dname) OVER (PARTITION BY deptno) AS dname
, mgr
, empno
FROM union_data
SELECT dname
, mgr
FROM quasi_join
WHERE empno IS NOT NULL
;Depending on your tables and your requirements, you might be able to do something a little simpler.
2. I should get same output as UNION without using UNION keyword, but using JOIN Keyword?A FULL OUTER JOIN is similar to UNION.
This UNION query:
SELECT dname AS txt
FROM scott.dept
UNION
SELECT TO_CHAR (mgr) AS txt
FROM scott.emp
;Can be written like this, using JOIN but no UNION:
SELECT DISTINCT
NVL2 ( e.empno
, TO_CHAR (e.mgr)
, d.dname
) AS txt
FROM scott.dept d
FULL OUTER JOIN scott.emp e ON 1 = 2
user13067794 wrote:I too don't any example as such, but I am thinking on this line -
Select a.x, b.y
from a,b
where a.key=b.key and sal<5000
UNION
Select a.x, b.y
From a,b
Where a.key=b.key and sal>7000
can we get same result using JOIN?That's a very special case. You can get the same results without using UNION like this:
Select distinct
a.x
, b.y
from a
, b
where a.key = b.key
and ( sal < 5000
OR sal > 7000
Can we do something similar using UNION without using JOIN keyword??What you posted does not use the JOIN keyword.
To get the same results without using a join (either with or without the JOIN keyword), you can use UNION together with aggregate or analytic functions, as I showed earlier.
Edited by: Frank Kulash on Jul 5, 2011 9:01 PM -
Any Examples of using ActiveCollectionModelDecorator with POJO data control
Are there any Examples of using ActiveCollectionModelDecorator with POJO data control in any of the sample packs?
OK, here's an quick example. Create a new Windows Forms application and add a ScatterGraph and a Label to the form. Add a cursor to the ScatterGraph, then add the code below to the form. This generates 50 random data points when the form is loaded and plots them, then uses the cursor's AfterMove event to display the current X and Y positions in the label. Here's the code:
Private Sub OnFormLoad(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Const dataLength As Integer = 50
Dim xData(dataLength - 1) As Double
Dim yData(dataLength - 1) As Double
Dim rnd As Random = New Random
For i As Integer = 0 To dataLength - 1
xData(i) = i
yData(i) = rnd.NextDouble() * 10
Next
ScatterGraph1.PlotXY(xData, yData)
End Sub
Private Sub OnAfterMoveXYCursor(ByVal sender As Object, ByVal e As NationalInstruments.UI.AfterMoveXYCursorEventArgs) Handles XyCursor1.AfterMove
Label1.Text = String.Format("({0}, {1})", e.XPosition, e.YPosition)
End Sub
Hope this helps.
- Elton -
i need to know also how to represent this transfer function in labview, try to send me example. answer me at my mail
"st" wrote:
> answer me at my mail
give a valid e-mail first, and your name, we don't like to help anonymous
people
> try to send me example.
how much do you pay ?
> i have transefer function like (1/(s^2+s+5)) and i have a square wave
> input , i want to use this transfer function with this input to see
> the output , how can i do that
First you have to know what you are doing, like an engineer : you have a
Laplace, continuous time transfer function but LabView handles discrete
signals only. Use matlab/simulink if you want to simulate continuous time
systems easily...
If you definitely want to use LabView, the first step is to discretize your
continuous-time transfer function, i.e. decide a sampling rate and convert
it to a "z transfor
m". Then you can directly use the "IIR Filter.vi" as I
said earlier.
Philippe Guglielmetti - www.dynabits.com me at my mail -
Examples of using phpbb forum with iWeb site?
I'm in the process of converting my site to iWeb using a non .mac host and I'd love to see some examples of anyone using a phpbb forum with their site.
Thanks in advance!Hi Mireille,
I know that iWeb won't support the forum per say but I should be able just have that specific page of my site point to the forum (not using iweb). I was just curious if anyone has done this and if they had any advice. Hopefully someday iweb will support forums as its a large part of sites like mine. I remember reading about the iframe so I'll look into that too. Thanks!
Chris -
Can anybody provide me with an example about using CSS to ADF Application ?
Hi all
can anybody provide me with a simple example about using CSS to ADF Application ?
regardshttp://biemond.blogspot.com/2009/01/adf-skinning-in-jdeveloper-11g.html
Maybe you are looking for
-
My Messages and Facetime applications say my apple ID or password is incorrect when it works for other applications including icloud, and works on the apple id website. I have reinstalled Mountain Lion upon request of an apple advisor but there is st
-
Problem in installing "audio device on high definition audio bus"
i have cq40 144tu laptop i downgrade to XP with the nice tutorial posted on this forum. my laptop S/N - [text removed for privacy] P/N FZ736PA#ACJ I M GETTING PROBLEM IN INSTALLING AUDIO DEVICE ON HIGH DEFINITION AUDIO BUS i have tried sp39671 which
-
HT2534 do you have to pay for an itunes account ?
Can any one tell me if you need to pay for an i tunes accout like do they send you a bill to pay yes or no
-
Floating point problem in method
When I got a method, like moveTo(float,float), originally, it should be, for example moveTo(30.45f,100.894f). But if I passed an array which id of type float but don't have the 'f' at the back. Does this matter? An Example: float x1Points[]=new float
-
I'm getting an error message trying to upload a small Flash video to Facebook
I'm uploading to a personal page. My video is 954K, and sized to the large rectangle format (336 x 280). It has a few simple animations, and a link button at the end. When I try to upload, I'm getting this error from Facebook: Any thoughts? Also, doe