06-17-2014 06:38 PM
Hi forum,
i am looking for a task where i could initalisize my analog input channels. I am using a Ni9220 with 16 analog input channels for power lines L1, L2, L3, N but it could be also possible to just have L1 and N so i would like to set my application so it detect what case i want to record automatically.
Right now i use a case structure for the different cases and i have to select manual what i am using (1xVoltage+1Current line or 3xVoltage and 3 Current lines), depending on which wiring is selected it uses just this analog input channels see attachment for (1U and 1I).
Would be nice if someone has a idea.
Thanks a lot
Martin
06-18-2014 08:30 AM
How do you suggest detecting which mode you want to be in? I'd still recommend keeping the case structure and enum, but it sounds like you want it to pick which mode it is in, and to do that we would need to know more about the system. Can you setup a task to read all the channels, and if the L2 and L3 are 0 then assume you are only using L1 and N?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-18-2014 08:43 AM
Hello Matrin,
I'm Dominik and attateched i send an example which can help you. You can also find this example in LabVIEW under Help -> Find Example.
I hope i could help you. If not you can post in this forum and i will try to help you as far as i could.
Have a nice day.
Best regards
Dominik
06-18-2014 11:18 AM
Hi,
thanks for your reply and help. I am using a state machine for the acuisition. There are four states 1. Start (Default getting info system starts up) 2. not connected no cable plugt in, 3. connected but still sees no voltage, 4daq( trigger for all lines, rms callculation, thd, callculation), 5, generation report, 6 stop.
So i will need to detect if there is a voltage in state 4 before the daq, so i was thinking to use a squence that only run once a certain time ( first call function) and defines the lines whith voltage. Its callculating the rms over the 3 voltage lines and if it reaches a defined value for example 5rms, with this information turn on or off trigger or other callculations.
Would be great if you could help
THanks
Martin
06-25-2014 09:37 AM
Hi Martin,
So if i understand you want to build a state machine 6 states. Attachted i send you a good example how to realize it best.
I hope it helps you. If you have any specific questions, let me know.
Best regards,
Dominik