Discussion:
What type of signal do I send to a SCC-RLY01?
(too old to reply)
jrj626
2008-07-17 20:10:06 UTC
Permalink
I am very new to Labview and using version 8.5.  I am trying to control a SCC-RLY01 module for later use with a heater.  I set up the DAQ assistant to control the relay, however it says that it needs a 1-d array of a digital waveform.  I have found how to convert an analog signal to digital waveform and then to a 1-d array, but what I don't know is what type of signal do I put into the AtoD converter? My thought was that it would be a boolean, but that won't work. Anybody know or have some type of example about how to control this relay module?
jrj626
2008-07-17 20:10:07 UTC
Permalink
Here is a very simplistic version of my problem.


Relay.vi:
http://forums.ni.com/attachments/ni/70/9205/1/Relay.vi
Corby_B
2008-07-18 17:40:10 UTC
Permalink
Hello jrj626, Thanks for your post!I see that you are controlling a relay module with a digital line. If you just want to set up your line to just be on or off at a certain moment in time I would change your Daq assistant to do one sample on demand. Just double click on the daq assistant and you can change the option at the bottom of the window. You have it for continuous mode at the moment which will send as many samples as you specify. So if you have it sent for 100 samples then that is how many will be sent. Since you are controlling a switch my assumption will be that you just want it to be on or off at a given moment in time. You can also use the lower level VI's to program your digital output port. It also looks like the Daq assistant always needs an array of values so just simply build an array of one element so that the input will be satisfied. See the attached picture that shows how to do this on the daq assistant and how to do the same thing in the lower level VI's. I see that you are also new to labVIEW. LabVIEW comes with a great veriety of example programs that you can find by going to Help &gt;&gt; Find Examples.&nbsp; Also I would like to point you to a great devzone article that talks about using DAQmx functions<a href="http://zone.ni.com/devzone/cda/tut/p/id/2835" target="_blank"> Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications</a> Let us know if any of this information helps you along with your application and I wish you the best of luck!Cheers!Corby_Bhttp://www.ni.com/support


digital output.JPG:
http://forums.ni.com/attachments/ni/70/9211/1/digital output.JPG
jrj626
2008-07-18 18:10:08 UTC
Permalink
Yes, that did it! I have only worked with a feedthrough module before this, so I was just use to continuous.&nbsp; It definitely makes sense, though, to do just 1 sample. Thank you!
Corby_B
2008-07-21 13:40:07 UTC
Permalink
Hello jrj626, Glad to hear that worked for you and Best of luck to you on your applications!Cheers!Corby_Bhttp://www.ni.com/support
Loading...