Jump to content

smm

Members
  • Posts

    1
  • Joined

  • Last visited

    Never

smm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have written a program in LabVIEW 8.5 to test thermostats. I had initially written the code for testing 1 thermostat, now I have modified it to test 6 thermostats in parallel. I'm going to be using a PCI 6515 DAQ unit by NI and Labview 8.5. The code is done in the State machine form.The thermostat has 4 outputs (W, Y, GH, Gl) which are inputs to the DAQ since I want to read the signals. The inputs to the thermostat are power and temperature control which are outputs from the DAQ. So I basically write to these lines.Now the problem is I'm writing to port 4 lines 0-5 and port 5 lines 0-5. Port 5 lines 0-5 are for power for every thermostat i.e Port 5 line 0 for T'stat 1, line 1 for t'stat 2, line 3 for tstat 3 so on and so forth till t'stat 6. I want to turn the power on after the state named dialog1 and then I want these lines to be turned high till the end.Port 4 is for temperature control. line 0 for t'stat 1, line 1 for t'stat 2 so on till t'stat 6.Port 4 lines 0-4 are manipulated in most states. Sometimes turned on, sometimes off.I want to know how to handle the daqmx write VIs. Like do I need to incorporate multiple create channels for every write VIs sor can I work with one create channel annd somehow be able to spilt lines I write to. This question might be confusing. I have attached the code here. I know for a fact that I am handling the write VIs incorrectly. It's only edited for the 1st case structure.All other case structures are replicas because they represent every thermostat.I fogot to add the VI in my previous post. This is it
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.