LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read digital output after write task doesn't work?

Hi,

 

I create a simple Vi which aim is to create a digital output signal and read this signal.

 

To do this, i use a PXI6535 card (digital IO) and the following VI :

 

 

 

 

But, and even if i have no error, logfile is not created. It seems i'm doing wrong but as a new user of labview i don't know what.

 

Thanks for your help.

 

Mathieu.

 

 

 

0 Kudos
Message 1 of 12
(2,989 Views)

Hi mhed,

 

Welcome on National Instrument's forum.

 

I think there is a problem in your while loop :

There is no stop button to end the loop, so the only way to end the loop is getting an error.

 

You file isn't generated because your loop can't end. Please take a look on the attached picture, I hope this will help you.

 

Best Regards

0 Kudos
Message 2 of 12
(2,963 Views)

Hi

Thank you for your answer, but my problem is not solved.

 

 

Firstly you are right, i've forgotten to add an stop button to my loop. But, my problem is that no TDMS file are created after the write task.

0 Kudos
Message 3 of 12
(2,924 Views)

Two questions:

 

1. What is the 'logging mode' input set to?

2. Are there any errors after the Daqmx Logging vi?

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 4 of 12
(2,913 Views)

Well,

 

Logging mode input is set to "Log"

And no, there are no errors after le Logging task (and no before)

 

0 Kudos
Message 5 of 12
(2,908 Views)

Hi

 

I would suggest you post the vi as we can run it and try if there are any issues. I use LV 2010SP1.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 6 of 12
(2,860 Views)

Hi,

 

You're right, it's more easy if you can test directly the Vi.

I hope you'd can help me.

 

 

0 Kudos
Message 7 of 12
(2,847 Views)

HI

 

I wish to know if anyone here can inform if the PXI card used in having permissions to set the logging property during the task run-time.

We cannot usually set the DAQmx properties for a Static DIO card while the task in running. So, please clarify.

 

Apart from that, even I am not able to identify any issue behind the TDMS file not being created.

 

mhed,

 

I have slightly modified your code to look better and to be easy to grasp the wiring. Please do not mind.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 8 of 12
(2,835 Views)

Actually, I just made a sample AO and a sample AI operation and tried using Logging VI. Both the times, I ended up without a tdms file in my folder. There must be some correct way of doing this.

 

 

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 9 of 12
(2,831 Views)

i hope so, because i need to save the value of my output signal.

0 Kudos
Message 10 of 12
(2,826 Views)