02-23-2009 11:44 AM - edited 02-23-2009 11:51 AM
Daer All,
I am wondering if one helps me.
I just bought NI USB-9472 to connect my program to a normally closed relay. Before connecting relay, I have to generate a signal (unde a condition which is in my program) in my program. I read some discussions but I am still confused. and almost all of the used a loop for DAQ assistant
I started with DAQ Assistant and put it on my program. the progrem is working in a while loop and continuously generates data. I have not connected the relay to USb 9472 to see my program is working well or not. whenever I click "run " "continuous sample in DAQ Assistan, DAQ Assistan Error will pop up. (Error -200077 occurred at DAQ Assistant
)
Should I put the DAQ Assistan in another while loop?
Could one help me how to get a signal for USB-9472
Regards,
Mehdi
02-24-2009 10:49 PM
Hi Neka,
I'm wondering if you could please post the full text of the error message you're getting, is it an error similar to the one listed in this KB?
Also, a good place to start would be to try running the example program Write Dig Chan.vi. This can be found by going to Help»Find Examples»Browse»Hardware Input and Output»DAQmx»Digital Generation. Though they don't use a DAQ assistant in this example, you'll be able to try it out, make sure you don't get errors, and see anothe way of accomplishing this. Please let me know about that error, and have a good day!
aNItaB
Applications Engineer
National Instruments
02-25-2009 09:54 AM
Hi ,
Thanks.
here is the error:
Error -200077 occurred at DAQ Assistant
Possible Reason(s):
Measurements: Requested value is not a supported value for this property.
Property: SampTimingType
You Have Requested: Sample Clock
You Can Select: On Demand
Please let me explain again what I am trying to do:
basically I want to control a circuit with a reraly based on temperature data which I am reading from my system.
I wrote a program in Labview and analyzed temperature data and calculated first derivative of temperature data.
I put a condition on the program is that as soon as first derivative reaches to a specific amount I want a signal goes to the relay through DAQ assistant.
I think the output after contional diagram is just a fasle or true output. I have to convert this on or off out put to a signal by DAQ assistant.
After talking to NI experts they recommended me USB-9472 to send signal to relay.
Now I have USB-9472, but the problem is that I dont know how to figure out this part in my program.
I added DAQ in the program right after that conditon.
My whole program is working in a while loop.
Do I need a seperate while loop for DAQ assistant?
Do I have to put DAQ out side of the while loop and biult a seperate while loop for DAQ?
Do I have to write a subVI and start DAQ on that program?
I am wondering if one helps me.
Regards,
Mehdi
02-25-2009 02:40 PM
02-25-2009 04:17 PM
Thanks,
I changed it to 1 samle on demand, there is no error.
I have not connect relay to the USB-terminal, how can be assure that usb will send a signal to relay whenever the condition satisfied?
I mean, can I see the signal which is going to the USB on a graph?
what will be the specification of signal?
02-25-2009 06:56 PM