LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time Coded Analog SIgnal

Hello Alipio,

I wired the origional version to my DAQ device, it worked but the trigger would not reset some some readings were inaccurate.  Also, I have two devices with this signal on two seperate channels on my DAQ.  I will wire in this new code to the DAQ and give it a test run.

 

Thanks,

Brian

0 Kudos
Message 11 of 19
(1,596 Views)

Hello Alipio,

 

I used the updated code, much better.  Thanks this is fantastic!  I scaled the anolg signal output signals to their respective values and the reluslt are good so far. I have a  question.  What is the best way to run two sets of these loops (the Producer Loop and Consumer Loop)?  I used the code for both devices and since they basically gave the same signal, differing only in amplituce for the 5 signals, the results were the same-it worked.  Thank you for your help with this project.

 

Thanks,

Brian

0 Kudos
Message 12 of 19
(1,578 Views)

Hello.

Probably, you will need only a producer loop adquirig 2 channel simultaneously. Then, separate the channels to  fill 2 different queues.

In that way, you will need to duplicate the consumer loop to have the tu signals processed. To avoif  probelm wiht subvis, make a copy of every subvi and rename it or try to make then reentrant.

If have problems, Next week iI will try to make it for you.

 

Cheers

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 13 of 19
(1,566 Views)

Hello Alipio,

 

I have not had time lately to try your suggestion for using two different "time coded" signals in one LabVIEW program; shift in projects.  I am now back to continue and finish this project so I should be able to attempt it later today or tomorrow.  Thanks again for your help.

 

Brian

0 Kudos
Message 14 of 19
(1,522 Views)

 

 

Hello Alipio,

 

The code works for the two devices that have this signal, perfect.  Now I need to develope a program that can incorporate at least two such deivces with this signal pattern.  I tried to make a sub vi on the code you had written but no luck.  I made a simple program with a DAQ assistant to bring in data then connnect the data to my a signal in terminal on the sub vi.  How can I make the code work so I have a sub vi, or is it easiser to modify the current code to accept two such signals.  I am pushing for the sub vi because I have several 4-20mA analog signals in the program (temperature, pressure etc).

 

Thank you for your help!

 

Brian

0 Kudos
Message 15 of 19
(1,418 Views)
Here is the sample code.
0 Kudos
Message 16 of 19
(1,417 Views)

Hello.

 

No problem to use the code for various channels. You have to code the processing part as a subvi and make it reentrant.

 

I have no Labview on hand right now, so I will try to look yor code in 2 or 3 days.

 

Will post back when solved.

 

Cheers

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 17 of 19
(1,408 Views)

Alipio,

 

Nice, thank you for your help.

 

Cheers and have a good weekend,

Brian

0 Kudos
Message 18 of 19
(1,342 Views)

Hello.

I have no labview.

I will try to get one as soon as posible.

 

In the meanwhile, you can try to make a subvi of processing part and make it reentrant.

 

 

Cheers

Alipio

Mensaje editado por alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 19 of 19
(1,332 Views)